Q> How to disable @go command for novice

mybitch

New member
Messages
291
Points
0
Location
Prontera
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.

Code:
If novice is level 14 above, he/she can use @go, if not then @go is denied"
 
Last edited by a moderator:
Code:
if ( !Class && BaseLevel < 14 ) { // not allowed show some message or end the script }
 
atcommand.c

Code:
        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;                }        }
 
Last edited by a moderator:
Back
Top