noobzter003 3 Posted April 23, 2018 7 minutes ago, Cabrera said: Use the hBG.c from this link: https://github.com/lucaslsb/HerculesBG/blob/50a1a3963fe2590a787aab27b27fa2faf9e1f277/src/plugins/hBG.c and then compile. It has the updated hBG.c bro still the same error Quote Share this post Link to post Share on other sites
noobzter003 3 Posted April 23, 2018 3 hours ago, noobzter003 said: bro still the same error its Working now Quote Share this post Link to post Share on other sites
noobzter003 3 Posted April 27, 2018 please help me! with this bug. after i choose battleggroundmode using @bgmode commands all the battleground modes isgoiing to start after i use @bgstart commands . my problem is i cannot choose whch bgmodes i want to start.. @bgmode is not working. still all the modes ar going to start after i use @bgstart i hope you guys understand what i mean.. sorry for my bad english Quote Share this post Link to post Share on other sites
noobzter003 3 Posted April 27, 2018 Just now, noobzter003 said: please help me! with this bug. after i choose battleggroundmode using @bgmode commands all the battleground modes isgoiing to start after i use @bgstart commands . my problem is i cannot choose whch bgmodes i want to start.. @bgmode is not working. still all the modes ar going to start after i use @bgstart i hope you guys understand what i mean.. sorry for my bad english Example i use @bgmode 9 ( i choose Battleground RUSH mode ) but after i activate that mode using @bgstart all the modes are activating should be Battleground Rush mode only Quote Share this post Link to post Share on other sites
Rebel 23 Posted April 27, 2018 Make sure battleground queue is running before using @bgmode. If you want to run only BG Rush mode.. check your script and just enable the BG Rush mode. Quote Share this post Link to post Share on other sites
caspe 16 Posted April 28, 2018 Just a small advice if you are developer & know what ur doing then use this plugin. This plugin is not complete & does not suit for live server, if you are thinking of using it on live server & don't know about Source editing & other stuff, just don't go with this plugin. If u just want to test it, then i should be fine. Quote Share this post Link to post Share on other sites
noobzter003 3 Posted April 29, 2018 On 4/27/2018 at 11:22 AM, Rebel said: Make sure battleground queue is running before using @bgmode. If you want to run only BG Rush mode.. check your script and just enable the BG Rush mode. still the same i think this plugins cannot be done a lot of bugs btw thanks Quote Share this post Link to post Share on other sites
noobzter003 3 Posted April 29, 2018 21 hours ago, caspe said: Just a small advice if you are developer & know what ur doing then use this plugin. This plugin is not complete & does not suit for live server, if you are thinking of using it on live server & don't know about Source editing & other stuff, just don't go with this plugin. If u just want to test it, then i should be fine. thanks for the advice this script alot of bugs ithink this plugins cannot be perfect. Quote Share this post Link to post Share on other sites
bWolfie 139 Posted April 29, 2018 it can be done you just need full understanding of the source itself as well as knowing the scripts like the back of your hand. Quote Share this post Link to post Share on other sites
Cabrera 10 Posted April 30, 2018 23 hours ago, noobzter003 said: thanks for the advice this script alot of bugs ithink this plugins cannot be perfect. Honestly @joinbg and @leavebg works just fine, also tested the Afk mode ( wherre if someones afk u can kick him) and tested 1 bg out and it works fine. The extra commands would need a closer look at if you want it to function perfectly. This is literally a free eamod version of BG with more user friendly commands for 2013-2017 + clients , just keep doing trial and error and you might just solve most of the problems. Quote Share this post Link to post Share on other sites
noobzter003 3 Posted May 2, 2018 On 4/29/2018 at 9:31 PM, Myriad said: it can be done you just need full understanding of the source itself as well as knowing the scripts like the back of your hand. sorry im just new in herc emulator i dont have any idea to fix this i hope u can help me. i dont know how to read the script im just follow what i read in this tread i hope u can help me.. Quote Share this post Link to post Share on other sites
noobzter003 3 Posted May 2, 2018 On 4/30/2018 at 5:14 PM, Cabrera said: Honestly @joinbg and @leavebg works just fine, also tested the Afk mode ( wherre if someones afk u can kick him) and tested 1 bg out and it works fine. The extra commands would need a closer look at if you want it to function perfectly. This is literally a free eamod version of BG with more user friendly commands for 2013-2017 + clients , just keep doing trial and error and you might just solve most of the problems. yeah i admit that this plugins almost all commands are working. but i dont have any knawledge to fix my problem i hope somebody can help me about my problem. please help me hhuhuhu Quote Share this post Link to post Share on other sites
astralprojection 35 Posted May 2, 2018 (edited) It was too easy to get BADGE without actually spending time and waste lot of pots killing someone at BG. How? - ask a friend playing BG to pm you when session is about to end. They see message "1 min to end the bg" something like that. - join BG and wait until finish. You get reward. HOW TO PREVENT THIS? Edited May 2, 2018 by astralprojection Quote Share this post Link to post Share on other sites
bWolfie 139 Posted May 2, 2018 1 hour ago, astralprojection said: It was too easy to get BADGE without actually spending time and waste lot of pots killing someone at BG. How? - ask a friend playing BG to pm you when session is about to end. They see message "1 min to end the bg" something like that. - join BG and wait until finish. You get reward. HOW TO PREVENT THIS? put timer when player can last join? easy enough just add timer or edit game mode scripts so they cant join past certain point. Quote Share this post Link to post Share on other sites
TheReturn 3 Posted May 9, 2018 I am testing this plugin seens really great tho. The only problem I am seeing is that changes the bg mode too quickly causing it to announce too many times. Could`t find any config related to it, do you guys can help me out on that one? How to increase the time for this? Quote Share this post Link to post Share on other sites
Rebel 23 Posted May 9, 2018 15 hours ago, TheReturn said: I am testing this plugin seens really great tho. The only problem I am seeing is that changes the bg mode too quickly causing it to announce too many times. Could`t find any config related to it, do you guys can help me out on that one? How to increase the time for this? open bg_common.txt find // Rotate every n seconds. OnTimer30000: change 30000 = 30 seconds Quote Share this post Link to post Share on other sites
TheReturn 3 Posted May 9, 2018 4 minutes ago, Rebel said: open bg_common.txt find // Rotate every n seconds. OnTimer30000: change 30000 = 30 seconds Thanks very much! Quote Share this post Link to post Share on other sites
MikZ 5 Posted May 14, 2018 (edited) Someone please help. How to solve these warnings. hBG.c: In function ‘atcommand_reportafk’: hBG.c:2040:31: warning: unused variable ‘hBGsd’ [-Wunused-variable] struct hBG_map_session_data *hBGsd = NULL; ^ hBG.c: In function ‘atcommand_leader’: hBG.c:2084:31: warning: unused variable ‘hBGsd’ [-Wunused-variable] struct hBG_map_session_data *hBGsd = NULL; ^ hBG.c: In function ‘status_get_guild_id_pre’: hBG.c:3776:31: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] && (bg_id = bg->team_get_id((struct block_list *)*bl)) > 0 ^ hBG.c: In function ‘status_get_emblem_id_pre’: hBG.c:3797:31: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] && (bg_id = bg->team_get_id((struct block_list *)(*bl))) > 0 ^ PLUGIN hBG Edited May 14, 2018 by MikZ Quote Share this post Link to post Share on other sites
bWolfie 139 Posted May 15, 2018 For the first two, you can just comment those lines since they aren't used (warning is self-explanatory, just follow it's directions). Second 2 I have not figured out yet. Anyway they are just warnings and don't affect the functionality. Quote Share this post Link to post Share on other sites
noobzter003 3 Posted May 24, 2018 On 14/05/2018 at 9:00 PM, MikZ said: Someone please help. How to solve these warnings. hBG.c: In function ‘atcommand_reportafk’: hBG.c:2040:31: warning: unused variable ‘hBGsd’ [-Wunused-variable] struct hBG_map_session_data *hBGsd = NULL; ^ hBG.c: In function ‘atcommand_leader’: hBG.c:2084:31: warning: unused variable ‘hBGsd’ [-Wunused-variable] struct hBG_map_session_data *hBGsd = NULL; ^ hBG.c: In function ‘status_get_guild_id_pre’: hBG.c:3776:31: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] && (bg_id = bg->team_get_id((struct block_list *)*bl)) > 0 ^ hBG.c: In function ‘status_get_emblem_id_pre’: hBG.c:3797:31: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] && (bg_id = bg->team_get_id((struct block_list *)(*bl))) > 0 ^ PLUGIN hBG activate your plugins in plugins.conf should be like this plugins_list: [ "example", "other", ] ----------------------------------------- Please note that your scripts need to be saved in the .c (source code) extension and placed in the /src/plugin/ folder. ----------------------------------------- */ plugins_list: [ /* Enable HPMHooking when plugins in use rely on Hooking */ "HPMHooking", "hBG", ] Quote Share this post Link to post Share on other sites
noobzter003 3 Posted May 24, 2018 On 14/05/2018 at 9:00 PM, MikZ said: Someone please help. How to solve these warnings. hBG.c: In function ‘atcommand_reportafk’: hBG.c:2040:31: warning: unused variable ‘hBGsd’ [-Wunused-variable] struct hBG_map_session_data *hBGsd = NULL; ^ hBG.c: In function ‘atcommand_leader’: hBG.c:2084:31: warning: unused variable ‘hBGsd’ [-Wunused-variable] struct hBG_map_session_data *hBGsd = NULL; ^ hBG.c: In function ‘status_get_guild_id_pre’: hBG.c:3776:31: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] && (bg_id = bg->team_get_id((struct block_list *)*bl)) > 0 ^ hBG.c: In function ‘status_get_emblem_id_pre’: hBG.c:3797:31: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] && (bg_id = bg->team_get_id((struct block_list *)(*bl))) > 0 ^ PLUGIN hBG Update ur hBG.c use this https://github.com/lucasljsb/HerculesBG/blob/50a1a3963fe2590a787aab27b27fa2faf9e1f277/src/plugins/hBG.c Quote Share this post Link to post Share on other sites
xVec 1 Posted June 17, 2018 sometimes when the Emergency Call is used the server throw a map crash signal without any details, there is any wrong in this code? case GD_EMERGENCYCALL: { int dx[9]={-1, 1, 0, 0,-1, 1,-1, 1, 0}; int dy[9]={ 0, 0, 1,-1, 1,-1,-1, 1, 0}; int i = 0, j = 0; struct guild *g; // i don't know if it actually summons in a circle, but oh well. ;P if (sd && (g = hBG_get_guild(sd->bg_id)) != NULL) { clif->skill_nodamage(*src, *bl, *skill_id, *skill_lv, 1); for (i = 0; i < g->max_member; i++, j++) { if (j>8) j=0; if ((dstsd = g->member[i].sd) != NULL && sd != dstsd && !dstsd->state.autotrade && !pc_isdead(dstsd)) { if (map->getcell((*src)->m, *src, (*src)->x + dx[j], (*src)->y + dy[j], CELL_CHKNOREACH)) dx[j] = dy[j] = 0; pc->setpos(dstsd, map_id2index((*src)->m), (*src)->x+dx[j], (*src)->y+dy[j], CLR_RESPAWN); } } guild->block_skill(sd, skill->get_time2(*skill_id, *skill_lv)); } } Quote Share this post Link to post Share on other sites
xVec 1 Posted June 20, 2018 (edited) ... Edited June 27, 2018 by xVec Quote Share this post Link to post Share on other sites
bWolfie 139 Posted July 5, 2018 (edited) No offence to the creator Smoke, as he did a great effort putting this all together, but there are outstanding issues which make it not possible to use in a production server. Being curious, just did some more testing with it, and the guild system (I believe that's what causes it) actually creates this issue where sometimes the sword cursor doesn't appear (need to refresh to get it to show, seems random chance it actually appears), meaning your players would need to have /ns activated all the time to play. So please, any future posters - unless you know how to edit the plugin (and therefore source code) itself, don't download it. And nobody request support as nobody is going to help you. Edited July 5, 2018 by Myriad 2 Rebel and Chuu reacted to this Quote Share this post Link to post Share on other sites