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.
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...
//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...






