Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex

Members: 0
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
622
ignatius
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Levelup command
Forum Rules | Mark all | Recent Posts

Levelup command
< Newer Topic :: Older Topic > Little Trick past level 115

Pages:<< prev 1 next >>
Post is unread #1 Jun 1, 2005, 3:08 am   Last edited Jun 1, 2005, 4:09 am by RapidRunner
Go to the top of the page
Go to the bottom of the page

RapidRunner

GroupMembers
Posts72
JoinedDec 4, 2003

Heres two checks that seem to be missing from levelup

   if( ch->level == LEVEL_AVATAR )
   {
   ch_printf(ch, "&RYou cannot go past level &B%d&D.\n\r", LEVEL_AVATAR );
   return;
   }

   if( ch->level == MAX_LEVEL )
   {
   ch_printf(ch, "&RLevel &B%d&R is the highest you can get&D.\n\r", MAX_LEVEL );
   return;
   }


This may not be needed, but i find it to be a good safty feature to have put in levelup so if a imm gives a player too much exp, they can't get a immortal character with using levelup. I'm sure most wouldn't use mset exp on players, but theres sometimes it happens, then theres no restriction on it.

Peace.
       
Pages:<< prev 1 next >>