The Dink Network

Reply to Re: How do i make it so i can pick up gold

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:
 
 
October 12th 2005, 04:20 PM
pillbug.gif
XXhex
Peasant He/Him
 
I suggest you download a source file dude..
------------------------------------------------------------------------------------------------
script for 200 gold
------------------------------------------------------------------------------------------------/200 gold

void main( )
{
sp_pseq(&current_sprite, 178);
sp_frame(&current_sprite, 4);
// sp_brain(&current_sprite, 6);
sp_touch_damage(&current_sprite, -1);
sp_nohit(&current_sprite, 1);
}

void touch( void )
{
&gold +=200;
say("Where could I spend this?",1);
sp_brain_parm(&current_sprite, 10);
sp_brain(&current_sprite, 12);
sp_touch_damage(&current_sprite, 0);
sp_timing(&current_sprite, 0);

//kill this item so it doesn't show up again for this player
int &hold = sp_editor_num(&current_sprite);
if (&hold != 0)
editor_type(&hold, 1);

}