• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Delete item with description

pucus78

Cookie Monster
Joined
Jul 4, 2008
Messages
40
Reaction score
0
Hi,
I have item with special description, and now player come to the npc and he remove item and give reward. How to find item with description ind the bag and remove it?

Thx
 
It's not possible to remove items with specific attributes.

Item subtype (for example vial of water/bottle of wine) is an exception:
Lua:
doPlayerRemoveItem(cid, 2006, 1, 2)
This would remove a vial of blood from player's backpack.
 
It's not possible to remove items with specific attributes.

Item subtype (for example vial of water/bottle of wine) is an exception:
Lua:
doPlayerRemoveItem(cid, 2006, 1, 2)
This would remove a vial of blood from player's backpack.

It's possible... if I check every item in backpack and his engraved description i can then remove them but can you help me to code that count items in backpack and then call in loop checking every item only that want :)
 
Back
Top