Strashni
minera.servegame.com
Can someone fix this bugged script
Code:
function onAdvance(cid, skill, oldlevel, newlevel)
local config = {
levelReach = 45,
item = 2160,
count = 6
}
if(skill == SKILL__LEVEL and newlevel >= config.levelReach and getPlayerStorageValue(cid, 9899) ~= 1) then
setPlayerStorageValue(cid, 9899, 1)
doPlayerAddItem(cid, config.item, config.count)
end
return TRUE
end