Pandaaa 2 Posted June 7, 2016 (edited) anyone has the working diff/patch of this koe? tried to add the plugin gets error? also some links are broken help i got this error after building the koe.c Warning 1 warning C4013: 'addHookPost' undefined; assuming extern returning int Error 2 error LNK2019: unresolved external symbol _addHookPost referenced in function _plugin_init Error 3 error LNK1120: 1 unresolved externals Edited June 8, 2016 by Pandaaa Quote Share this post Link to post Share on other sites
Total 0 Posted August 8, 2016 Hello, I get this error when making the plugin. CC koe.c koe.c: In function ‘battle_check_target_post’: koe.c:43:25: error: ‘MOBID_EMPERIUM’ undeclared (first use in this function) if ( ( md->class_ == MOBID_EMPERIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) && ^ koe.c:43:25: note: each undeclared identifier is reported only once for each function it appears in koe.c: In function ‘plugin_init’: koe.c:52:2: warning: implicit declaration of function ‘addHookPost’ [-Wimplicit-function-declaration] addHookPost( "battle->check_target", battle_check_target_post ); ^ koe.c:52:2: warning: nested extern declaration of ‘addHookPost’ [-Wnested-externs] make[1]: *** [../../plugins/koe.so] Error 1 Quote Share this post Link to post Share on other sites
astralprojection 35 Posted August 11, 2016 here: //===== Hercules Plugin ====================================== //= King of Emperium Hill //===== By: ================================================== //= AnnieRuru //===== Current Version: ===================================== //= 1.1 //===== Compatible With: ===================================== //= Hercules 2015-12-19 //===== Description: ========================================= //= stop guild owner from hitting the emperium over and over //===== Topic ================================================ //= http://herc.ws/board/topic/4495-king-of-emperium-hill/ //===== Additional Comments: ================================= //= finally a plugin for this popular script //============================================================ #include "common/hercules.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include "map/pc.h" #include "map/mob.h" #include "map/battle.h" #include "map/mapreg.h" #include "common/memmgr.h" #include "plugins/HPMHooking.h" #include "../common/HPMDataCheck.h" // should always be the last file included! (if you don't make it last, it'll intentionally break compile time) HPExport struct hplugin_info pinfo = { "koe", SERVER_TYPE_MAP, "1.1", HPM_VERSION, }; int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int *flag ) { if ( retVal == 1 ) { struct block_list *s_bl = src; if( (s_bl = battle->get_master(src)) == NULL ) s_bl = src; if ( s_bl->type == BL_PC && target->type == BL_MOB ) { TBL_PC *sd = BL_CAST( BL_PC, s_bl ); TBL_MOB *md = BL_CAST( BL_MOB, target ); if ( ( md->class_ == MOBID_EMPELIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) && ( sd->status.guild_id == mapreg->readreg( script->add_str("$koegid") ) || battle->get_current_skill(src) > 0 ) ) return 0; } } return retVal; } HPExport void plugin_init (void) { addHookPost( battle, check_target, battle_check_target_post ); } Quote Share this post Link to post Share on other sites
Total 0 Posted August 13, 2016 here: //===== Hercules Plugin ====================================== //= King of Emperium Hill //===== By: ================================================== //= AnnieRuru //===== Current Version: ===================================== //= 1.1 //===== Compatible With: ===================================== //= Hercules 2015-12-19 //===== Description: ========================================= //= stop guild owner from hitting the emperium over and over //===== Topic ================================================ //= http://herc.ws/board/topic/4495-king-of-emperium-hill/ //===== Additional Comments: ================================= //= finally a plugin for this popular script //============================================================ #include "common/hercules.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include "map/pc.h" #include "map/mob.h" #include "map/battle.h" #include "map/mapreg.h" #include "common/memmgr.h" #include "plugins/HPMHooking.h" #include "../common/HPMDataCheck.h" // should always be the last file included! (if you don't make it last, it'll intentionally break compile time) HPExport struct hplugin_info pinfo = { "koe", SERVER_TYPE_MAP, "1.1", HPM_VERSION, }; int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int *flag ) { if ( retVal == 1 ) { struct block_list *s_bl = src; if( (s_bl = battle->get_master(src)) == NULL ) s_bl = src; if ( s_bl->type == BL_PC && target->type == BL_MOB ) { TBL_PC *sd = BL_CAST( BL_PC, s_bl ); TBL_MOB *md = BL_CAST( BL_MOB, target ); if ( ( md->class_ == MOBID_EMPELIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) && ( sd->status.guild_id == mapreg->readreg( script->add_str("$koegid") ) || battle->get_current_skill(src) > 0 ) ) return 0; } } return retVal; } HPExport void plugin_init (void) { addHookPost( battle, check_target, battle_check_target_post ); } Thank you However here is another one. In file included from koe.c:26:0: koe.c: In function ‘plugin_init’: ../plugins/HPMHooking.h:54:54: warning: comparison of distinct pointer types lacks a cast [enabled by default] (void)((HPMHOOK_post_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ koe.c:55:2: note: in expansion of macro ‘addHookPost’ addHookPost( battle, check_target, battle_check_target_post ); ^ Quote Share this post Link to post Share on other sites
Aurora 4 Posted September 18, 2016 (edited) koe.c: In function 'plugin_init': koe.c:55: warning: comparison of distinct pointer types lacks a cast PLUGIN koe How to fix this? I tried "make plugins" and try running the script but I can hit emp even if I own it so I checked FAQ says to recompile now I can't start my server. Edited September 18, 2016 by Aurora Quote Share this post Link to post Share on other sites
rans 7 Posted November 19, 2016 Can anyone improvised this? to make everyone online in guild receive a reward? If the koe ends and you are outside (for example you just died) you won't get any reward. Quote Share this post Link to post Share on other sites
Skyline 23 Posted February 4, 2017 Plugin update needed. Not compatible with the latest hercules. Hi @AnnieRuru Quote Share this post Link to post Share on other sites
greenieken 0 Posted July 30, 2017 is this updated already? Quote Share this post Link to post Share on other sites
greenieken 0 Posted August 2, 2017 @AnnieRuru Hi! Do you have an updated version of this that is compatible with the latest herc thanks! Quote Share this post Link to post Share on other sites
AsurielRO 5 Posted November 1, 2017 i cant see the emperium inside the map any fix for this?? can also use on rAthena thank you Quote Share this post Link to post Share on other sites
bWolfie 138 Posted November 1, 2017 3 hours ago, Questune09 said: i cant see the emperium inside the map any fix for this?? can also use on rAthena thank you you need to add custom mob id to db\mob_avail.txt 1 AsurielRO reacted to this Quote Share this post Link to post Share on other sites
AsurielRO 5 Posted November 1, 2017 16 hours ago, Myriad said: you need to add custom mob id to db\mob_avail.txt ohw got it can you give it to me thank you im using rathena btw ^_^ i didnt see it inside the script Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted April 9, 2018 got a PM from rAthena member ask me to fix this yeah both rathena patch and hercules plugin ... all broken so .... update to 1.2 Script Plugin for Hercules Patch for rAthena 5 BrOgBr, Begin, Quazi and 2 others reacted to this Quote Share this post Link to post Share on other sites
rizal84150 0 Posted March 17, 2020 (edited) this script good and work thx Edited March 17, 2020 by rizal84150 Quote Share this post Link to post Share on other sites
ThyroDree 3 Posted March 26, 2020 Hello, I have a problem. The guild owner and member can still attack the emperium even they have it. anyone can help? I applied the 1.2 by @AnnieRuru Quote Share this post Link to post Share on other sites
shuyuan 0 Posted June 14, 2020 On 2/17/2014 at 2:32 PM, AnnieRuru said: I think its better to have a release topic for this instead of me update the script across separate topics Download: 1.2Script.Plugin for Hercules.Patch for rAthena what this event do ? ( huh ? so popular script and I still need to explain ? ) 1. make a guild 2. join this event 3. whack the emperium 4. defends it until times up hahaha .... How to configure the time: L_start: <-- the label to start the event change OnClock2000: into OnSat2000: to start this event on Saturday 8pm L_end: <-- the label to end the event change OnClock2030: into OnSat2030: to end this event on Saturday 8:30pm, effectively makes this event runs 30 minutes Frequently Asked Questions: Question : why the Guild member can hit their own Emperium ?Answer : because you didn't patch and recompile Question: there is an exploit in this event, guild master can use Emergency Recall to abuse the prizeAnswer : I already fixed it in this topic, now the prize reward will be given after the winner warp outside the map original topic from eathena forumhttp://www.eathena.ws/board/index.php?showtopic=174222 yeah ... I have been fixing this script since 7 years ago Reveal hidden contents 1.0. koe_1.0.txt & koe_1.0.patch - add a patch to prevent player keep hitting their own emperium - use gvgon/gvgoff instead of gvg mapflag to prevent player keep killing each other after koe ended - fix an exploit to prevent guild master from using guild recall to abuse the prize koe_1.0a.txt &koe_1.0a.diff 1.1. Script & Plugin - fix a bug that if koe has ended, player can still go inside by leaving the window open - change all stuffs that I can find into constants - fix a rare bug that if player brings in a slave monster, the monster get killed whenever the emperium spawn/dead - add a plugin this time 1.2Script .Plugin for Hercules.Patch for rAthena - fix the script so rathena members can use this - update the plugin to support latest hercules revision Hi AnnieRuru, can you help me or give me the route to add the patcher in rathena, please? the .diff must be saved somewhere in the trunk folder of my server? Can you help me? Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted September 16, 2020 trying to integrate this script with HULD, but I couldn't get it to work, so drop the idea update hercules version to 1.3 script plugin I'll assume rathena still works in version 1.2, as I just tested it still working fine and for all those members saying how to patch 1 evilpuncker reacted to this Quote Share this post Link to post Share on other sites
`Azhul 2 Posted January 5, 2021 How to enable KOE EMP healing? i tried using your KOE on my rAthena server everything works fine except on EMP won't heal with skills like sanc and other healing skill. but i tried to heal the WOE emp it works fine. any idea what's the problem? Quote Share this post Link to post Share on other sites
MikZ 5 Posted April 22, 2022 On 9/17/2020 at 4:46 AM, AnnieRuru said: trying to integrate this script with HULD, but I couldn't get it to work, so drop the idea update hercules version to 1.3 script plugin I'll assume rathena still works in version 1.2, as I just tested it still working fine and for all those members saying how to patch hi @AnnieRuru I recently updated to Release v2022.04.07 however, the plugin now seems not working. guild owner can attack their own EMPERIUM. Hoping to get update on plugins too. thank you! Quote Share this post Link to post Share on other sites