function onUse(cid, item, frompos, item2, topos)
if item.uid == 4003 then -- unique id skrzynki
local queststatus = getPlayerStorageValue(cid,1234) --storage value questa
if queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,22,"You got a Demon Shield.") --napis po otrzymaniu nagrody
doPlayerAddItem(cid,2520,1) --2520 to id itemka jaki sie dostaje
setPlayerStorageValue(cid,1234,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
<action uniqueid="1234" script="xxxx.lua" />
http://forum.otsoft.pl/showthread.php?t=2671
http://tibia.net.pl/lua-xml/9461-8-1-jak-zrobic-quest.html <--- mo?e Ci si? z tym uda zrobi?... (;