summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorcookiecrumbs <cookiecrumbs@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-18 20:06:54 +0000
committercookiecrumbs <cookiecrumbs@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-18 20:06:54 +0000
commitd049046dc121866bc7c2d62bf5773adf05335870 (patch)
tree4f6904263c495711e661d07850664d271bd511fa /src/map/atcommand.c
parent9fa4acce4a3fd134993a5cfe18506392dbfa5555 (diff)
downloadhercules-d049046dc121866bc7c2d62bf5773adf05335870.tar.gz
hercules-d049046dc121866bc7c2d62bf5773adf05335870.tar.bz2
hercules-d049046dc121866bc7c2d62bf5773adf05335870.tar.xz
hercules-d049046dc121866bc7c2d62bf5773adf05335870.zip
New permissions added for groups: show_bossmobs, disable_pvm and disable_pvp; documented usage in permissions.txt
Fixed a typo in monster.conf. Removed old functionality from showmobs command to make room for show_bossmobs. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16445 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 9586d5a24..8e199ca73 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -6790,15 +6790,13 @@ ACMD_FUNC(showmobs)
clif_displaymessage(fd, atcmd_output);
return 0;
}
-// Uncomment the following line to show mini-bosses & MVP.
-//#define SHOW_MVP
-#ifndef SHOW_MVP
- if(mob_db(mob_id)->status.mode&MD_BOSS){
+
+ if(mob_db(mob_id)->status.mode&MD_BOSS && !pc_has_permission(sd, PC_PERM_SHOW_BOSS)){ // If player group does not have access to boss mobs.
snprintf(atcmd_output, sizeof atcmd_output, "Can't show Boss mobs!");
clif_displaymessage(fd, atcmd_output);
return 0;
}
-#endif
+
if(mob_id == atoi(mob_name) && mob_db(mob_id)->jname)
strcpy(mob_name,mob_db(mob_id)->jname); // --ja--
//strcpy(mob_name,mob_db(mob_id)->name); // --en--