Hello!
I have a problem with this script.Item that I use on the body does not eliminate it and not turning into another object. Can someone explain to me what is wrong and correct it for me? I would like to object to the use of the body and remove body disappeared giving us a new item.
I have a problem with this script.Item that I use on the body does not eliminate it and not turning into another object. Can someone explain to me what is wrong and correct it for me? I would like to object to the use of the body and remove body disappeared giving us a new item.
Code:
<action itemid="7532" script="tools/deadly.lua"/>
Code:
function onUse(cid, item, frompos, item2, topos)
local los = math.random(1, 1000)
if item.itemid == 2848 and item.itemid == 7532 and (los >500) then
doPlayerAddItem(cid,7533,1) --new item
doRemoveItem(item.uid,7532) -- corpse remover
doRemoveItem(item.uid,2848) -- corpse id
else
doPlayerSendTextMessage(cid, 22, "Maybe next time...")
end
return true
end