axas
Well-Known Member
- Joined
- Feb 23, 2008
- Messages
- 870
- Reaction score
- 94
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1054 then
doPlayerAddItem(cid,2173,1)
else
doPlayerSendTextMessage(cid,22,"You can't mine this.")
return TRUE
end
I want it to give player 2173 item id when you use a pick on 1054 item id.
Also would be good if it removed the 2173 and respawned it at the same spot in 120 seconds.