The Dink Network

Reply to Re: help wanted: script bug

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:
 
 
January 13th 2009, 04:53 PM
dinkdead.gif
Yeah... ignore me. Sorry.

Anyway, I did better this time! You need to add to &duck otherwise get_next_sprite_with_this_brain is checking the same duck each time.

This works (I tested):

reduck:
wait(25);
&duck = get_next_sprite_with_this_brain(9,0,&duck);
if (sp_target(&duck,-1) == &current_sprite)
{
//Target feed? It's a duck!
sp_brain(&duck,3);
//say("imaduck",&duck);
}
if (&duck > 0)
{
&duck += 1;

goto reduck;
}