Log in

View Full Version : how to set default level to 50 when craete new charactor?


yingyugang01
04-20-2012, 02:59 PM
I have searched the forum , all the level questions are about Level cap. angone can tell me how to set default level to 50 when craete new charactor?
kindly seek your advice.:cool:

Akkadius
04-20-2012, 03:55 PM
I have searched the forum , all the level questions are about Level cap. angone can tell me how to set default level to 50 when craete new charactor?
kindly seek your advice.:cool:

In the player.pl of the starting zone:

sub EVENT_ENTERZONE{
if($ulevel <= 50){ quest::level(50); }
}

joligario
04-20-2012, 04:08 PM
I would do < rather than <= so it doesn't reset xp if they haven't hit 51 yet.

Akkadius
04-20-2012, 04:16 PM
I would do < rather than <= so it doesn't reset xp if they haven't hit 51 yet.

Yeah, I pasted that in really quick while working on 5 different things at work, gives a rough idea.

I would even set some sort of flag (qglobal) on that actually instead so it doesn't happen again period.