Witam wszystkich!
Dzi? przygotowoa?em dla was voc chesta. Czyli na styart ka?dy bierze z 1 skrzynki questa lecz mo?na go wzi??? tylko raz i na dodatek, dla ka?dej profesij przykotowane eq,bp, bro? i aol
w data\actions\actions.xml
dadaj linijk?:
w data\actions\scripts
zr?b plik lua i wklej to do niego : \/
Pozdrawiam!!:lol:
Dzi? przygotowoa?em dla was voc chesta. Czyli na styart ka?dy bierze z 1 skrzynki questa lecz mo?na go wzi??? tylko raz i na dodatek, dla ka?dej profesij przykotowane eq,bp, bro? i aol

w data\actions\actions.xml
dadaj linijk?:
Kod:
<!-- Vocation Chests -->
<action uniqueid="3540" script="vochest.lua"/>
w data\actions\scripts
zr?b plik lua i wklej to do niego : \/
PHP:
function onUse(cid, item, frompos, item2, topos)
voc = getPlayerVocation(cid)
queststatus = getPlayerStorageValue(cid,11554)
if voc == 1 then
if queststatus == -1 then
doPlayerAddItem(cid,1998,1)
doPlayerAddItem(cid,2152,100)
doPlayerAddItem(cid,8820,1)
doPlayerAddItem(cid,8819,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2190,1)
doPlayerAddItem(cid,2175,1)
doPlayerAddItem(cid,2173,1)
setPlayerStorageValue(cid,11554,1)
else
doPlayerSendTextMessage(cid,22,"Voc? j? pegou o seu pr?mio.")
end
elseif voc == 2 then
if queststatus == -1 then
doPlayerAddItem(cid,1998,1)
doPlayerAddItem(cid,2152,100)
doPlayerAddItem(cid,8820,1)
doPlayerAddItem(cid,8819,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2175,1)
doPlayerAddItem(cid,2182,1)
doPlayerAddItem(cid,2173,1)
setPlayerStorageValue(cid,11554,1)
else
doPlayerSendTextMessage(cid,22,"Voc? j? pegou o seu pr?mio.")
end
elseif voc == 3 then
if queststatus == -1 then
doPlayerAddItem(cid,1998,1)
doPlayerAddItem(cid,2152,100)
doPlayerAddItem(cid,8872,1)
doPlayerAddItem(cid,2457,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2525,1)
doPlayerAddItem(cid,2389,1)
doPlayerAddItem(cid,2173,1)
setPlayerStorageValue(cid,11554,1)
else
doPlayerSendTextMessage(cid,22,"Voc? j? pegou o seu pr?mio.")
end
elseif voc == 4 then
if queststatus == -1 then
doPlayerAddItem(cid,1998,1)
doPlayerAddItem(cid,2152,100)
doPlayerAddItem(cid,2457,1)
doPlayerAddItem(cid,2463,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2525,1)
doPlayerAddItem(cid,2428,1)
doPlayerAddItem(cid,2417,1)
doPlayerAddItem(cid,3963,1)
doPlayerAddItem(cid,2173,1)
setPlayerStorageValue(cid,11554,1) else
doPlayerSendTextMessage(cid,22,"Voc? j? pegou o seu pr?mio.")
end
else
return 0
end
return 1
end
| Notka moderatorska: |
| Skrypt dzia?a, ale jest skopiowany ?ywcem z brazylijskiego OTServa./Reverse |
Pozdrawiam!!:lol:
