ib0w
teamfiveporject
Monster corpse:
<look type="306" corpse="12573"/>
when monster dies, corpse="12573", when u use the first time u get the reward, when u use it again it debugg the client :s
<action itemid="12573" event="script" value="bosscorpse1.lua"/>
local storage = 35000
local aid = 5681
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,storage) == 19873 then
setPlayerStorageValue(cid,storage,19873)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You have found a silver key")
doItemSetAttribute(doPlayerAddItem(cid,2091,1), 'aid', aid)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_dESCR,"It is empty")
end
return true
end
im using tfs 0.3.6
<look type="306" corpse="12573"/>
when monster dies, corpse="12573", when u use the first time u get the reward, when u use it again it debugg the client :s
<action itemid="12573" event="script" value="bosscorpse1.lua"/>
local storage = 35000
local aid = 5681
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,storage) == 19873 then
setPlayerStorageValue(cid,storage,19873)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You have found a silver key")
doItemSetAttribute(doPlayerAddItem(cid,2091,1), 'aid', aid)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_dESCR,"It is empty")
end
return true
end
im using tfs 0.3.6