Nightimarez
New Member
- Joined
- Jul 24, 2008
- Messages
- 287
- Reaction score
- 2
I need a script that broadcasts when players get lvl 210, 220, 230.
local storage = 100
function onAdvance(cid, skill, oldLevel, newLevel)
if skill == SKILL__LEVEL and newLevel > oldLevel and isInArray({210,220,230}, newLevel) and getPlayerStorageValue(cid, storage) < newLevel then
setPlayerStorageValue(cid, storage, newLevel)
doBroadcastMessage(getCreatureName(cid) .. ' has reached Level ' .. newLevel .. ', congratulations!')
end
return true
end
function onAdvance(cid, skill, oldLevel, newLevel)
if skill == SKILL__LEVEL and newLevel > oldLevel and isInArray({210,220,230}, newLevel) then
doBroadcastMessage(getCreatureName(cid) .. ' has reached Level ' .. newLevel .. ', congratulations!')
end
return true
end
<event type="advance" name="Advance" event="script" value="advance.lua"/>
registerCreatureEvent(cid, 'Advance')
Hey, I messed up in items.xml and when I turn on the server, it says its in line 17760. Do you know how I can jump to that line?