The Dink Network

Reply to Script Problem?

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:
 
 
July 5th 2008, 07:33 AM
boncag.gif
Znex
Peasant He/Him Australia
Oh hey. 
Hey guys. I've been noticing that one of my scripts doesn't appear to be working. This also seems to be happening with another script as one of the knights I've got can't even attack with its axe and instead I have to run into it. Could someone help? Try this one:

//item fists

void use(void)
{
//disallow diagonal punches

if (sp_dir(1, -1) == 1) sp_dir(1, 2);
if (sp_dir(1, -1) == 3) sp_dir(1, 2);
if (sp_dir(1, -1) == 7) sp_dir(1, 8);
if (sp_dir(1, -1) == 9) sp_dir(1, 8);

&basehit = sp_dir(1, -1);
&basehit += 540; //100 is the 'base' for the hit animations, we just add
//the direction
sp_seq(1, &basehit);
sp_frame(1, 1); //reset seq to 1st frame
sp_kill_wait(1); //make sure dink will punch right away
sp_nocontrol(1, 1); //dink can't move until anim is done!
wait(1);
playsound(15,8000,0,0,0);

}

void disarm(void)
{
debug("Killed fists");

kill_this_task();
}

void arm(void)
{

load_sequence graphics\foes\bonca\attack\f03a2- 544 75 70 65 -21 -11 21 14
load_sequence graphics\foes\bonca\attack\f03a4- 548 75 70 64 -32 -8 32 17
load_sequence graphics\foes\bonca\attack\f03a6- 542 75 65 66 -24 -12 24 16
load_sequence graphics\foes\bonca\attack\f03a8- 546 75 68 65 -21 -11 21 11
int &basehit;

debug("fists armed");
}

int &basehit;
}

void pickup(void)
{
Debug("Player now owns this item.");
kill_this_task();
}

void drop(void)
{
Debug("Item dropped.");
kill_this_task();
}

Hmmm...?