GOD Fito
Member
- Joined
- Oct 3, 2008
- Messages
- 97
- Solutions
- 1
- Reaction score
- 9
Hello
someone can edit this for remove 2 items with different id's
Here
I try with
But if you have only 1 item and no 2, The item deleted and not received anything
someone can edit this for remove 2 items with different id's
Here
Lua:
if doPlayerRemoveItem(cid, 2157, 50) == TRUE then
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if doPlayerRemoveItem(cid, 2157, 50) == TRUE then
doPlayerAddItem(cid,2195,1)
doSendMagicEffect(fromPosition,14)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Thanks")
else
doPlayerSendCancel(cid, "You don't have the item.")
end
return true
end
I try with
Lua:
if doPlayerRemoveItem(cid, 2157, 1) and doPlayerRemoveItem(cid, 2160, 1) == TRUE then
But if you have only 1 item and no 2, The item deleted and not received anything