Hokku
Member
Hello!
Im trying to do a quest script, when use a crowbar on item with uid, set storage value, here's the script.
fixed by Peonso down.
crossbar id: 2416
itemid 9347, itemuid 3074
storage:12251
using TFS 1.1.
Thanks!
Im trying to do a quest script, when use a crowbar on item with uid, set storage value, here's the script.
fixed by Peonso down.
crossbar id: 2416
itemid 9347, itemuid 3074
storage:12251
Code:
<action itemid="2416" script="quests/in service of yalahar/crowbar.lua"/>
Code:
local key = 12251
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid == 9347 and itemEx.uniqueid == 3074 then
if getCreatureStorage(cid, key) == -1 then
doCreatureSetStorage(cid, key, 1)
doCreatureSay(cid, 'Success', TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, 'Failure', TALKTYPE_ORANGE_1)
end
end
return true
end
using TFS 1.1.
Thanks!
Last edited: