The Dink Network

Reply to Re: Stupid boots.

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:
 
 
April 18th 2010, 06:38 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
It's for a savebot that checks for the boots:

void main( void )
{
sp_seq(&current_sprite, 449);
sp_sound(&current_sprite, 34);
sp_brain(&current_sprite, 6);
sp_hitpoints(&current_sprite, 0);
int &log = count_item("item-l");
if (&log > 0)
{
int &boo;
&boo = count_item("boots-s1");
if (&boo > 0)
{
// If (&cur_weapon == "boots-s1")
//{
set_dink_speed(2);
}
else
{
set_dink_speed(4);
}
}
//}
int &whe = count_item("item-l");
if (&whe > 0)
{
int &boo;
&boo = count_item("boots-s1");
if (&boo > 0)
{
// If (&cur_weapon == "boots-s1")
//{
set_dink_speed(2);
}
else
{
set_dink_speed(4);
}
}
}
//}

void hit( void )
{
 say("Die, strange machine that doesn't belong here!", 1);
}


If Dink is on the same screen as the savebot, when I equip the boots Dink speed will be set to fast. If I unequip them Dink's speed will still be fast even when he got his fists equipped. &whe and &log are heavy items that slows Dink down and &boo are the boots.