Shadow Dan
Sh4dowDan
Code:
function onAdvance(cid, type, oldlevel, newlevel)
if (oldlevel ~= newlevel and type == SKILL__LEVEL) then
Code:
if (oldlevel ~= newlevel and type == SKILL__LEVEL) then
Its from old script and i can't find how to make it working.
Code:
if (oldlevel ~= newlevel and type == SKILL__LEVEL) then
if (newlevel >= 20 and getPlayerStorageValue(cid, 70580) == -1) then
if isPlayer(cid) == TRUE then
doPlayerAddItem(cid,2152,20)
doPlayerSendTextMessage(cid, 19, 'You gain 20 platinum coins, reward for the level of experience gained.')
setPlayerStorageValue(cid, 70580, 1)
end
end
end
#edit
i found this:
Code:
if skill ~= 8 or newLevel <= oldLevel then
return true
end
Last edited: