View Single Post
  #1  
Old 05-18-2008, 10:12 PM
Stryke Stryke is offline
Scripter
Join Date: Apr 2008
Posts: 157
Stryke is an unknown quantity at this point
Questions about an Inventory

1. For dropping items, how would I drop an item in the Weapon List?
Something like this?
PHP Code:
putnpc2(playerx,playery,findNPC("Weapons/Sword of Heavens"));
Didn't work for me,. 
2. This is what my GUI displays:
PHP Code:
showimg(221,player.weapons[selectedweapon].image,14,85);
changeimgvis(221,7); 
But, when I am using my custom inventory, the image won't change.
It only works when I'm using a default inventory.
This is what I use to select items in my inventory:
PHP Code:
for(temp.i=0;temp.i<player.weapons.size();temp.i++;)
{
  if(
player.weapons[temp.i].name == obj.itemName)
  {
    
player.selectedweapon temp.i;
    return;
  }

Should I just use a custom "clientr.itemselected" variable?
Reply With Quote