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.
?e? dojeba?.By?o tak odrazu
Wystarczy prosty skrypcik kt?ry pobiera id gracza z bazy
function onAdvance(cid, skill, oldLevel, newLevel) -- Gdy gracza po?iom/skill si? zmieni.
local CrystalCoins = 3043
if getCreatureStorage(cid, Advance) == 0 && oldLevel == 24 && newLevel >= 25 then
doCreatureSetStorage(cid, Advance, 1)
doPlayerAddItem(cid, CrystalCoins, 1)
doPlayerSendTextMessage(cid,22,"Uda?o ci si? zdobyc poziom 25. Jako twoje wynagrodzenie otrzyma?e? 1cc.")
elseif getCreatureStorage(cid, Advance) == 1 && oldLevel == 49 && newLevel >= 50 then
doCreatureSetStorage(cid, Advance, 2)
doPlayerAddItem(cid, CrystalCoins, 3)
doPlayerSendTextMessage(cid,22,"Uda?o ci si? zdobyc poziom 50. Jako twoje wynagrodzenie otrzyma?e? 3cc.")
elseif getCreatureStorage(cid, Advance) == 2 && oldLevel == 74 && newLevel >= 75 then
doCreatureSetStorage(cid, Advance, 3)
doPlayerAddItem(cid, CrystalCoins, 5)
doPlayerSendTextMessage(cid,22,"Uda?o ci si? zdobyc poziom 75. Jako twoje wynagrodzenie otrzyma?e? 5cc.")
elseif getCreatureStorage(cid, Advance) == 3 && oldLevel == 99 && newLevel >= 100 then
doCreatureSetStorage(cid, Advance, 4)
doPlayerAddItem(cid, CrystalCoins, 7)
doPlayerSendTextMessage(cid,22,"Uda?o ci si? zdobyc poziom 100. Jako twoje wynagrodzenie otrzyma?e? 7cc.")
elseif getCreatureStorage(cid, Advance) == 4 && oldLevel == 149 && newLevel >= 150 then
doCreatureSetStorage(cid, Advance, 5)
doPlayerAddItem(cid, CrystalCoins, 9)
doPlayerSendTextMessage(cid,22,"Uda?o ci si? zdobyc poziom 150. Jako twoje wynagrodzenie otrzyma?e? 9cc.")
elseif getCreatureStorage(cid, Advance) == 5 && oldLevel == 199 && newLevel >= 200 then
doCreatureSetStorage(cid, Advance, 6)
doPlayerAddItem(cid, CrystalCoins, 10)
doPlayerSendTextMessage(cid,22,"Uda?o ci si? zdobyc poziom 200. Jako twoje wynagrodzenie otrzyma?e? 10cc.")
end
end
.