Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
w actions.xml dodaj linijk?:function onUse(cid, item, frompos, item2, topos)
if item.uid == 1002 then <- tu uid skrzynki ktore dales na map edytorze
queststatus = getPlayerStorageValue(cid,1002)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Znalazles 50 cc.")
doPlayerAddItem(cid,2160,50) <-- jaki przedmiot lub przedmioty dostajesz
doSendMagicEffect(topos,55)
setPlayerStorageValue(cid,1002,1)
else
doPlayerSendTextMessage(cid,22,"Ta skrzynia jest pusta.")
end
else
return 0
end
return 1
end
Nast?pnie w map edytor ustawiasz skrzynce takie uid jak 1002 lub inne, zale?y jakie wpisa?e? w tej linijce:<action uniqueid="1002" script="quest50cc.lua"/>