Jump to content
  • 0
Sign in to follow this  
mybitch

Q> How to disable @go command for novice

Question

Anyone who can teach me how to disable @go command for novice with below level 14. All other job can use it except novice class/job. Thanks in advance!

 

E.G.

 

 

If novice is level 14 above, he/she can use @go, if not then @go is denied"
Edited by mybitch

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
if ( !Class && BaseLevel < 14 ) { // not allowed show some message or end the script }

Share this post


Link to post
Share on other sites
  • 0

atcommand.c

        if (town >= 0 && town < ARRAYLENGTH(data)) {                m = map->mapname2mapid(data[town].map);                if (m >= 0 && map->list[m].flag.nowarpto && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) {                        clif->message(fd, msg_txt(247));                        return false;                }                if (sd->bl.m >= 0 && map->list[sd->bl.m].flag.nowarp && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) {                        clif->message(fd, msg_txt(248));                        return false;                }		if ( sd->status.class_ == JOB_NOVICE && sd->status.base_level < 14 ) {			clif->message( fd, "You can't use @go while you are still a novice below base level 14" );			return false;		}                if (pc->setpos(sd, mapindex->name2id(data[town].map), data[town].x, data[town].y, CLR_TELEPORT) == 0) {                        clif->message(fd, msg_txt(0)); // Warped.                } else {                        clif->message(fd, msg_txt(1)); // Map not found.                        return false;                }        }
Edited by AnnieRuru

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.