The Dink Network

Reply to Re: Scripting help needed

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:
 
 
February 4th 2007, 04:31 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Here's basically how you would use inside_box(); for your bomb item. If you are really determined to use your method, you could at least have a script attached to the screen or something making Dink say something like "I could use that bomb on that object." or something along those lines. Just try these lines right at the beginning of your use procedure. Just replace the left, right, top, bottom variables with the coordinates you need to use.

//check for correct screen
if (&player_map != 450)
{
//Dink isn't on the correct screen
say("Not here!", 1);
return();
}

//check if dink is in the correct area to place bomb
int &dink_x = sp_x(1, -1);
int &dink_y = sp_y(1, -1);

int &in_box = inside_box(&dink_x,&dink_y, &left_x, &top_y, &right_x, &bottom_y);

if (&in_box != 1)
{
//Dink isn't in the box
say("I am not close enough!", 1);
return();
}