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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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