The Dink Network

Reply to Re: How to make Dink to take a sword(as example) only once???

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 12th 2009, 01:52 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Something like this should work:

//First check if there's any room in the inventory:
int &var1 = free_items();
if (&var1 > 0)
{
//Now let's see if the player already has the sword:
&var1 = count_item("sword");
if (&var1 == 0)
{
//Now add the item:
add_item("sword",438,7); }
}

EDIT: Ofcourse, sword is the name of the script, this could be different for your sword. The same applies to the seq and frame values in the add_item command...