mybitch 9 Posted January 12, 2014 (edited) 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 January 12, 2014 by mybitch Quote Share this post Link to post Share on other sites
0 Mhalicot 392 Posted January 12, 2014 Maybe this Utility can do. Utility @go Command 2 Mumbles and karazu reacted to this Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted January 12, 2014 if ( !Class && BaseLevel < 14 ) { // not allowed show some message or end the script } Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted January 12, 2014 (edited) 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 January 12, 2014 by AnnieRuru 1 mybitch reacted to this Quote Share this post Link to post Share on other sites
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.
Share this post
Link to post
Share on other sites