Anna Posted May 28, 2012 Share Posted May 28, 2012 is there a posible way to disable @changegm during woe? ive also try researching but i couldnt find what ive been looking for Quote Link to comment Share on other sites More sharing options...
Mystery Posted May 28, 2012 Share Posted May 28, 2012 (edited) Also to add: if you only need to disable guild creation on 1 map (like for an event), you can use the guildlock mapflag. Mapflag#guildlock This will block changes to guild: /guild, invite, leave, expel, add/delete Alliance/Opposition, @changegm and /breakguild. Basically, add the mapflag guildlock in the WoE Castles o-O Edited May 28, 2012 by Mysterious Quote Link to comment Share on other sites More sharing options...
Brian Posted May 28, 2012 Share Posted May 28, 2012 ^ but then the GM could just go back to town and @changegm You could edit the source code (trunk/src/map/atcommand.c) and add a check "if WoE is on, don't allow @changegm". Index: src/map/atcommand.c =================================================================== --- src/map/atcommand.c (revision 16159) +++ src/map/atcommand.c (working copy) @@ -5694,6 +5694,12 @@ return -1; } + if (agit_flag || agit2_flag) + { + clif_displaymessage(fd, "You can not change Guild Master during WoE."); + return -1; + } + if( !message[0] ) { clif_displaymessage(fd, "Command usage: @changegm <guildmember name>"); return -1; Quote Link to comment Share on other sites More sharing options...
quesoph Posted May 28, 2012 Share Posted May 28, 2012 (edited) /*========================================== * @changegm by durf (changed by Lupus) * Changes Master of your Guild to a specified guild member *------------------------------------------*/ ACMD_FUNC(changegm) { struct guild *g; struct map_session_data *pl_sd; nullpo_retr(-1, sd); if (agit_flag == 1) { clif_displaymessage(fd, "You cannot use this command when woe is in progress."); return -1; } if (sd->status.guild_id == 0 || (g = guild_search(sd->status.guild_id)) == NULL || strcmp(g->master,sd->status.name)) { clif_displaymessage(fd, "You need to be a Guild Master to use this command."); return -1; } if( map[sd->bl.m].flag.guildlock ) { clif_displaymessage(fd, "You cannot change guild leaders on this map."); return -1; } if( !message[0] ) { clif_displaymessage(fd, "Command usage: @changegm <guildmember name>"); return -1; } if((pl_sd=map_nick2sd((char *) message)) == NULL || pl_sd->status.guild_id != sd->status.guild_id) { clif_displaymessage(fd, "Target character must be online and be a guildmate."); return -1; } guild_gm_change(sd->status.guild_id, pl_sd); return 0; } Edited May 28, 2012 by quesoph Quote Link to comment Share on other sites More sharing options...
Mystery Posted May 28, 2012 Share Posted May 28, 2012 @Brian, I saw that change somewhere but I couldn't find it again =/ Quote Link to comment Share on other sites More sharing options...
Brian Posted May 29, 2012 Share Posted May 29, 2012 Was this where you saw it? http://trac.assembla.com/raijero/search?q=changegm Quote Link to comment Share on other sites More sharing options...
Anna Posted June 4, 2012 Author Share Posted June 4, 2012 thnk you much!!!!!!! :DDDDDDDDDDDDDDDDDDDDDDDDDDDDD Quote Link to comment Share on other sites More sharing options...
is there a posible way to disable @changegm during woe? ive also try researching but i couldnt find what ive been looking for
Link to comment
Share on other sites