Jagkanprata
Banned User
- Joined
- Jul 6, 2007
- Messages
- 893
- Reaction score
- 1
If player get lvl 100, broadcast: Congratulations PLAYER, for level 100!
function onAdvance(cid, skill, oldlevel, newlevel)
local name = getCreatureName(cid)
if skill == SKILL_LEVEL and oldlevel < 100 and newlevel > 99 then
doBroadcastMessage("Congratulations " .. name .. " on level 100!", MESSAGE_STATUS_CONSOLE_RED)
end
return TRUE
end
registerCreatureEvent(cid, "Level100")
<event type="advance" name="Level100" script="level100.lua"/>
function onAdvance(cid, skill, oldlevel, newlevel)
local name = getCreatureName(cid)
if skill == SKILL_LEVEL and oldlevel < 100 and newlevel > 99 then
doBroadcastMessage("Congratulations " .. name .. " on level 100!", MESSAGE_STATUS_CONSOLE_RED)
end
return TRUE
end
registerCreatureEvent(cid, "Level100")
<event type="advance" name="Level100" script="level100.lua"/>