• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

When level 200 get MSG.

Likeee

Mappah!
Joined
Apr 15, 2009
Messages
40
Reaction score
0
Location
Under your bed.
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!
 
Creaturescript.
Lua:
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
 
Here you go, requested it before you and some guy scripted it for me.

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" />
 
Back
Top