Jump to content
Sign in to follow this  
lipitb

GM_cant_drop_items groups

Recommended Posts

Good night!
I apologize if you're posting in the wrong session, and if the translation is not good. I am Brazilian.
I share with you my modification in source.
 
In my hercules emulator upgraded in its latest version, GMs can drop items regardless of the option in can_trade groups.conf.
 
solution:
 
src/map/battle.c
Find
{ "client_accept_chatdori",             &battle_config.client_accept_chatdori,          0,      0,      INT_MAX, },
Paste before
//MODIFICATIONS
{ "gm_cant_drop_min",             &battle_config.gm_cant_drop_min,          10,      0,      99, },
{ "gm_cant_drop_max",             &battle_config.gm_cant_drop_max,          98,      0,      99, },
src/map/battle.h
Find
int gm_ignore_warpable_area;
int client_accept_chatdori; // [Ai4rei/Mirei]
Paste before
//MODIFICATIONS
int gm_cant_drop_min;
int gm_cant_drop_max;
src/map/pc.c
Find
if( !pc->can_give_items(sd) ) //check if this GM level can drop items
return 0;
Paste before
//MODIFICATIONS
if ( battle_config.gm_cant_drop_min != 0 && battle_config.gm_cant_drop_max != 0) {
if ( pc_get_group_level(sd) >= battle_config.gm_cant_drop_min && pc_get_group_level(sd) <= battle_config.gm_cant_drop_max ){ // your group you want to disable
clif->message(sd->fd, msg_txt(246));
return 0;
}}
 
insert into Battle_conf.txt
 
gm_cant_drop_min: 10 //This level until the low, GMs cant drop items.
gm_cant_drop_max: 98

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
Reply to this topic...

×   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.