Likeee
Mappah!
I want a script that Send you a msg like "Congratulation! Now when you are 200 you can start to PVP!" This msg will be showed when you advance to level 200.
Thanks in advice!
Thanks in advice!
I want a script that Send you a msg like "Congratulation! Now when you are 200 you can start to PVP!" This msg will be showed when you advance to level 200.
Thanks in advice!
function onAdvance(cid, skill, oldlevel, newlevel)
if newlevel == 200 then
doPlayerSendTextMessage(cid, 17, "Congratulation! Now you are 200, you can start to PVP!")
end
return TRUE
end
You need to add a registerEvent to your login.lua!
The file adv_level8.LUA:
Code:function onAdvance(cid, skill, oldlevel, newlevel) if ((newlevel == 8) and (oldlevel == 7)) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, "Gratz!") end return TRUE end
Now you need add this line on the login.LUA script:
Code:registerCreatureEvent(cid, "AdvanceTo8")
...and in the creaturescripts.XML you need add:
Code:<event type="advance" name="AdvanceTo8" event="script" value="adv_level8.lua" />