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?