Welcome to the Builder Academy

Question Can this be done, zone restrictions based on character level.

More
Yesterday 06:09 #11022 by wlessard1
I am looking to try and figure out how to make a zone restriction based on a specific level.

I know we can set the suggested zone levels but that doesn't restrict someone from going in.

Or if someone has a better idea to restrict zones by level.

Thanks for any suggestions.

Just a guy coding a mud at home for no reason but the challenge.

Please Log in or Create an account to join the conversation.

More
Yesterday 20:58 - Yesterday 20:58 #11023 by thomas
It should be relatively easy.
github.com/tbamud/tbamud/blob/a049fddcea.../act.movement.c#L218 has a message that could be turned into a blocking.

Code:
/* Check zone level recommendations */   if ((ZONE_MINLVL(GET_ROOM_ZONE(going_to)) != -1) && ZONE_MINLVL(GET_ROOM_ZONE(going_to)) > GET_LEVEL(ch) && (GET_LEVEL(ch) < LVL_IMMORT || (!IS_NPC(ch) && !PRF_FLAGGED(ch, PRF_NOHASSLE)))) {     send_to_char(ch, "This zone is above your recommended level.\r\n");     return (0);   }
Last edit: Yesterday 20:58 by thomas. Reason: format

Please Log in or Create an account to join the conversation.

Time to create page: 0.190 seconds