zxzxzx
New Member
- Joined
- Mar 12, 2011
- Messages
- 334
- Reaction score
- 3
Hello! I have script which change item 2191 to item 8921 when I use item id 10305 and then items id 2191 and 10305 remove - this is ok but when I use item 10305 on the ground (not backpack) item 10305 not remove and this is the problem..
Help me to make item 10305 remove when it is on the ground too!
Thanks for help!++
code:
Help me to make item 10305 remove when it is on the ground too!
Thanks for help!++
code:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 10305 then
if doPlayerRemoveItem(cid,2191,1) == true then
doPlayerAddItem(cid,8921,1)
doPlayerRemoveItem(cid,10305,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
end
else
doPlayerSendCancel(cid, "You do not have any pro items to uprgade!")
end
return true
end