Jump to content
  • 0

Disable GM monster drop


GM Takumirai

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

Introduction
If your server has several GMs, it may be wise to disable monsters dropping items should they attack them. If you feel insecure about your GMs, it might be wise to implement this modification in order to limit how far they can use their GM abilities.
GMs may be able to warp to dungeons and warp around to actively seek MvPs, or may be able to cast many skills with few limitations. The optimum idea would be to disable them from doing this completely, however it restricts the commands the GMs can use. Instead, we can set a limit on what level GMs must be in order to receive drops.
Open /src/map/battle.h
Find:
int bg_flee_penalty;
'Below add:
int gm_monsterdrop_lv;
Open /src/map/battle.c
Find:
{ "bg_flee_penalty",				    &battle_config.bg_flee_penalty,				 20,	 0,	  INT_MAX,	    },
Below add:
{ "gm_monsterdrop_lv",				  &battle_config.gm_monsterdrop_lv,			    0,	 0,	  99,	    },
Open /src/map/mob.c
Scroll to or find the function mob_db
Find:
if(src && src->type == BL_MOB)
 mob_unlocktarget((struct mob_data *)src,tick);
Below add:
if( (mvp_sd && pc_isGM(mvp_sd)) || (sd && pc_isGM(sd)) )
{
 if( mvp_sd && pc_isGM(mvp_sd) < battle_config.gm_monsterdrop_lv )
  type |= 1;
 else if( sd && pc_isGM(sd) < battle_config.gm_monsterdrop_lv )
  type |= 1;
}
Open /conf/battle/gm.conf
Find:
// [GM] Can't be kicked from a chat? (No or mimimum GM level)
gm_kick_chat: no
Below add:
// [GM] Minimum GM level to receive drops from monsters (0 = disabled.)
gm_monsterdrop_lv: 40

Original Post http://www.eathena.ws/wiki/index.php?title=Disable_GM_monster_drops

- my problem is how can i enable it in rAthena?? with GM level as a Group ID???

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   39
  • Joined:  01/13/12
  • Last Seen:  

Introduction
If your server has several GMs, it may be wise to disable monsters dropping items should they attack them. If you feel insecure about your GMs, it might be wise to implement this modification in order to limit how far they can use their GM abilities.
GMs may be able to warp to dungeons and warp around to actively seek MvPs, or may be able to cast many skills with few limitations. The optimum idea would be to disable them from doing this completely, however it restricts the commands the GMs can use. Instead, we can set a limit on what level GMs must be in order to receive drops.
Open /src/map/battle.h
Find:
int bg_flee_penalty;
'Below add:
int gm_monsterdrop_lv;
Open /src/map/battle.c
Find:
{ "bg_flee_penalty",					&battle_config.bg_flee_penalty,				 20,	 0,	  INT_MAX,		},
Below add:
{ "gm_monsterdrop_lv",				  &battle_config.gm_monsterdrop_lv,				0,	 0,	  99,		},
Open /src/map/mob.c
Scroll to or find the function mob_db
Find:
if(src && src->type == BL_MOB)
 mob_unlocktarget((struct mob_data *)src,tick);
Below add:
if( (mvp_sd && pc_isGM(mvp_sd)) || (sd && pc_isGM(sd)) )
{
 if( mvp_sd && pc_isGM(mvp_sd) < battle_config.gm_monsterdrop_lv )
  type |= 1;
 else if( sd && pc_isGM(sd) < battle_config.gm_monsterdrop_lv )
  type |= 1;
}
Open /conf/battle/gm.conf
Find:
// [GM] Can't be kicked from a chat? (No or mimimum GM level)
gm_kick_chat: no
Below add:
// [GM] Minimum GM level to receive drops from monsters (0 = disabled.)
gm_monsterdrop_lv: 40

Original Post http://www.eathena.w...M_monster_drops

- my problem is how can i enable it in rAthena?? with GM level as a Group ID???

Only replace 'pc_isGM(sd)' by 'pc_get_group_level(sd)'.

Not tested, but should work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

@ Cretino?

- is it ok to replace only one?..

- im not going to replace others?

[error on compiling]

- can someone fix this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   39
  • Joined:  01/13/12
  • Last Seen:  

@ Cretino?

- is it ok to replace only one?..

- im not going to replace others?

[error on compiling]

- can someone fix this?

Have to replace all modified to handle this here:

Open /src/map/battle.h

Find:

int bg_flee_penalty;

Below add:

int gm_monsterdrop_lv;

Open /src/map/battle.c

Find:

{ "bg_flee_penalty",                    &battle_config.bg_flee_penalty,                 20,     0,      INT_MAX,        },

Below add:

{ "gm_monsterdrop_lv",                  &battle_config.gm_monsterdrop_lv,                0,     0,      99,        },

Open /src/map/mob.c

Scroll to or find the function mob_db

Find:

if(src && src->type == BL_MOB)
	mob_unlocktarget((struct mob_data *)src,tick);

Below add:

if( (mvp_sd && pc_get_group_level(mvp_sd)) || (sd && pc_get_group_level(sd)) )
{
	if( mvp_sd && pc_get_group_level(mvp_sd) < battle_config.gm_monsterdrop_lv )
		type |= 1;
	else if( sd && pc_get_group_level(sd) < battle_config.gm_monsterdrop_lv )
		type |= 1;
}

Open /conf/battle/gm.conf

Find:

// [GM] Can't be kicked from a chat? (No or mimimum GM level)
gm_kick_chat: no

Below add:

// [GM] Minimum GM level to receive drops from monsters (0 = disabled.)
gm_monsterdrop_lv: 40

Edited by Cretino
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

Hi Cretino

i got some error as per below pls advise thanks

59e4v26ik7.jpg

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...