The Dink Network

Reply to Re: Savebot script

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 29th 2011, 03:32 AM
duckdie.gif
Scripts working fine now, but now because I couldn't put it's properties in the editor I put them in scripts. The problem is:
It's not moving.
When I hit it it just stands there, with no head falling off, no blood.
It makes enough noise for a million ducks, not 1.
here are the two scripts. One is attached to a sack near the house where the guy to shout at Dink will appear, the other will be attached to the duck.
Sack script:
void main(void)
{
if(&duck == 0)
{
int &duck = create_sprite(289, 220, 3, 21, 1);
sp_script(&duck, "duck1");
}
if(&duck > 0)
{
return;
}


Duck script
void main(void)
{
sp_speed(&duck, 1);
sp_hitpoints(&duck, 10);
say("Finally, a duck to behead!", 1);
}
void hit(void)
{
//sneaky peek: using the pirate from joshriot's GRRRaphics, dialogue taken out though
int &pirate;
&pirate = create_sprite(443, 207, 0, 844, 7);
freeze(1);
say_stop("`4!", &pirate);
wait(100);
say("", 1);
wait(500);
say_stop("`4!", &pirate);
wait(50);
say_stop("`4bla", &pirate);
wait(50);
say_stop("`4bla!", &pirate);
wait(50);
say_stop("", 1);
wait(50);
&gold -= 50;
wait(1000);
say_stop("`4bla.", &pirate);
&gold += 50;
wait(50);
say_stop("`4bla", &pirate);
wait(50);
sp_kill(&pirate, 1);
say_stop("bla", 1);
&duck = 1;
unfreeze(1);
}