REKT 10 Posted December 29, 2015 Thank you, i've been waiting for the udpate of this. Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted January 1, 2016 1.5 plugin - fix an issue that when using @hide, the market clone also clone as invisible ---- the real issue about this is, if that GM do @marketkill, the surrounding client will crash 1 banhelba2019 reacted to this Quote Share this post Link to post Share on other sites
Pandaaa 2 Posted June 7, 2016 hello, is it possible to make this market clone can only be use in a specific area? to prevent abuse using in different areas? i know there is a town use only with this command but is it possible like you can only use @market at prontera <x>,<y> ( if area already take switch to other coordinate) Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted March 22, 2019 nope, this is just an update to compatible with latest hercules, no new feature added or anything 1.6 - plugin - update to latest revision - remove all TBL_ and change to struct - add NULL checks to places where it needed - update the clif_charnameack with struct packet_reqnameall_ack and special thanks to dastgir helped maintaining this plugin On 6/7/2016 at 6:49 PM, Pandaaa said: hello, is it possible to make this market clone can only be use in a specific area? to prevent abuse using in different areas? i know there is a town use only with this command but is it possible like you can only use @market at prontera <x>,<y> ( if area already take switch to other coordinate) just add the check like you did in scripting in npc script getmapxy .@map$, .@x, .@y, UNITTYPE_PC; if ( .@map$ == "prontera" && .@x == 155 && .@y == 185 ) dispbottom "OK"; in source if ( strcmp( mapindex_id2name(sd->mapindex), "prontera" ) == 0 && sd->bl.x == 155 && sd->bl.y == 185 ) clif->message( sd->fd, "OK" ); 1 banhelba2019 reacted to this Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted March 23, 2019 1.7 - plugin - fix memory leak for not removing the chatroom 1 banhelba2019 reacted to this Quote Share this post Link to post Share on other sites
Kuroe 5 Posted April 9, 2019 In file included from marketclone.c:55:0: marketclone.c: In function ‘plugin_init’: ../plugins/HPMHooking.h:49:11: error: ‘HPMHOOK_pre_clif_charnameack’ undeclared (first use in this function); did you mean ‘HPMHOOK_pre_clif_charnameupdate’? (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ marketclone.c:493:2: note: in expansion of macro ‘addHookPre’ addHookPre(clif, charnameack, clif_charnameack_pre); ^~~~~~~~~~ ../plugins/HPMHooking.h:49:11: note: each undeclared identifier is reported only once for each function it appears in (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ marketclone.c:493:2: note: in expansion of macro ‘addHookPre’ addHookPre(clif, charnameack, clif_charnameack_pre); ^~~~~~~~~~ ../plugins/HPMHooking.h:49:51: error: expected ‘)’ before numeric constant (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ marketclone.c:493:2: note: in expansion of macro ‘addHookPre’ addHookPre(clif, charnameack, clif_charnameack_pre); ^~~~~~~~~~ ../plugins/HPMHooking.h:49:63: warning: left-hand operand of comma expression ha s no effect [-Wunused-value] (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ marketclone.c:493:2: note: in expansion of macro ‘addHookPre’ addHookPre(clif, charnameack, clif_charnameack_pre); ^~~~~~~~~~ I think the plugin isn't compatible with the latest herc? Quote Share this post Link to post Share on other sites
4144 364 Posted April 9, 2019 Replace charnameack to blname_ack 1 Kuroe reacted to this Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted April 10, 2019 1.8 - plugin - update to latest revision 2 banhelba2019 and Kuroe reacted to this Quote Share this post Link to post Share on other sites
bWolfie 138 Posted April 14, 2019 First time seeing this. Thought I'd try it out. Really cool idea, surprised I'm just seeing this now. Reports: • If you are in a chatroom of the clone then the clone dies, the chat closes then your char is stuck. • Something interesting, you can send friend and party requests to clone mobs, which then send to the real char. Quote Share this post Link to post Share on other sites
vBrenth 39 Posted April 16, 2019 (edited) On 4/11/2019 at 5:25 AM, AnnieRuru said: 1.8 - plugin - update to latest revision Edit: Its broken again on the latest version. @AnnieRuru Edited May 7, 2019 by vBrenth Quote Share this post Link to post Share on other sites
Bringer 0 Posted June 15, 2019 @AnnieRuru latest version 1>------ Build started: Project: clone, Configuration: Debug Win32 ------ 1>clone.c 1>c:\hercules\src\plugins\clone.c(441): error C2079: 'packet' uses undefined struct 'packet_reqnameall_ack' 1>c:\hercules\src\plugins\clone.c(442): error C2224: left of '.packet_id' must have struct/union type 1>c:\hercules\src\plugins\clone.c(443): error C2224: left of '.gid' must have struct/union type 1>c:\hercules\src\plugins\clone.c(444): error C2224: left of '.name' must have struct/union type 1>c:\hercules\src\plugins\clone.c(444): warning C4022: 'memcpy': pointer mismatch for actual parameter 2 1>c:\hercules\src\plugins\clone.c(444): error C2198: 'memcpy': too few arguments for call 1>Done building project "clone.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 7 up-to-date, 0 skipped ========== Quote Share this post Link to post Share on other sites
Mihael 2 Posted July 14, 2019 On 6/14/2019 at 10:40 PM, Bringer said: @AnnieRuru latest version 1>------ Build started: Project: clone, Configuration: Debug Win32 ------ 1>clone.c 1>c:\hercules\src\plugins\clone.c(441): error C2079: 'packet' uses undefined struct 'packet_reqnameall_ack' 1>c:\hercules\src\plugins\clone.c(442): error C2224: left of '.packet_id' must have struct/union type 1>c:\hercules\src\plugins\clone.c(443): error C2224: left of '.gid' must have struct/union type 1>c:\hercules\src\plugins\clone.c(444): error C2224: left of '.name' must have struct/union type 1>c:\hercules\src\plugins\clone.c(444): warning C4022: 'memcpy': pointer mismatch for actual parameter 2 1>c:\hercules\src\plugins\clone.c(444): error C2198: 'memcpy': too few arguments for call 1>Done building project "clone.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 7 up-to-date, 0 skipped ========== 1>------ Build started: Project: clone, Configuration: Debug Win32 ------ 1>clone.c 1>c:\hercules\src\plugins\clone.c(441): error C2079: 'packet' uses undefined struct 'packet_reqnameall_ack' 1>c:\hercules\src\plugins\clone.c(442): error C2224: left of '.packet_id' must have struct/union type 1>c:\hercules\src\plugins\clone.c(443): error C2224: left of '.gid' must have struct/union type 1>c:\hercules\src\plugins\clone.c(444): error C2224: left of '.name' must have struct/union type 1>c:\hercules\src\plugins\clone.c(444): warning C4022: 'memcpy': pointer mismatch for actual parameter 2 1>c:\hercules\src\plugins\clone.c(444): error C2198: 'memcpy': too few arguments for call 1>Done building project "clone.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 7 up-to-date, 0 skipped ========== Remove this. else { struct packet_reqnameall_ack packet = { 0 }; packet.packet_id = reqName; packet.gid = md->bl.id; memcpy( packet.name, md->name, NAME_LENGTH ); clif->send( &packet, sizeof(struct packet_reqname_ack), *bl, AREA ); hookStop(); return; } and recompile you emulator. Quote Share this post Link to post Share on other sites
Zeca 0 Posted May 16, 2020 (edited) market.c: In function ‘mob_clone_spawn_market’: market.c:138: error: too few arguments to function ‘mob->once_spawn_sub’ market.c:143: error: ‘struct unit_interface’ has no member named ‘setdir’ market.c:161: error: ‘SI_ON_PUSH_CART’ undeclared (first use in this function) market.c:161: error: (Each undeclared identifier is reported only once market.c:161: error: for each function it appears in.) market.c: In function ‘clif_getareachar_unit_post’: market.c:425: error: ‘SI_ON_PUSH_CART’ undeclared (first use in this function) market.c: In function ‘clif_blname_ack_pre’: market.c:441: error: variable ‘packet’ has initializer but incomplete type market.c:441: warning: excess elements in struct initializer market.c:441: warning: (near initialization for ‘packet’) market.c:441: error: storage size of ‘packet’ isn’t known market.c:441: warning: unused variable ‘packet’ how to fix @AnnieRuru? =/ Edited May 16, 2020 by Zeca Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted May 18, 2020 On 5/17/2020 at 12:10 AM, Zeca said: market.c: In function ‘mob_clone_spawn_market’: market.c:138: error: too few arguments to function ‘mob->once_spawn_sub’ market.c:143: error: ‘struct unit_interface’ has no member named ‘setdir’ market.c:161: error: ‘SI_ON_PUSH_CART’ undeclared (first use in this function) market.c:161: error: (Each undeclared identifier is reported only once market.c:161: error: for each function it appears in.) market.c: In function ‘clif_getareachar_unit_post’: market.c:425: error: ‘SI_ON_PUSH_CART’ undeclared (first use in this function) market.c: In function ‘clif_blname_ack_pre’: market.c:441: error: variable ‘packet’ has initializer but incomplete type market.c:441: warning: excess elements in struct initializer market.c:441: warning: (near initialization for ‘packet’) market.c:441: error: storage size of ‘packet’ isn’t known market.c:441: warning: unused variable ‘packet’ how to fix @AnnieRuru? =/ Check here: https://github.com/dastgirp/HPM-Plugins/blob/master/src/plugins/%40market.c For mob_once_spawn_sub, you need to add extra argument 0 (for Npc id) For Status Icon, need to use clif->sc_load Quote Share this post Link to post Share on other sites
Kuroyama 6 Posted September 1, 2020 On 5/18/2020 at 10:07 PM, Dastgir said: Check here: https://github.com/dastgirp/HPM-Plugins/blob/master/src/plugins/%40market.c For mob_once_spawn_sub, you need to add extra argument 0 (for Npc id) For Status Icon, need to use clif->sc_load Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted September 20, 2020 update to version 1.9 plugin big thanks to dastgir to give some hints how to update this plugin On 7/15/2019 at 3:15 AM, Mihael said: Remove this. else { struct packet_reqnameall_ack packet = { 0 }; packet.packet_id = reqName; packet.gid = md->bl.id; memcpy( packet.name, md->name, NAME_LENGTH ); clif->send( &packet, sizeof(struct packet_reqname_ack), *bl, AREA ); hookStop(); return; } else { struct packet_reqnameall_ack packet = { 0 }; packet.packet_id = reqName; packet.gid = md->bl.id; memcpy( packet.name, md->name, NAME_LENGTH ); clif->send( &packet, sizeof(struct packet_reqname_ack), *bl, AREA ); hookStop(); return; } and recompile you emulator. if you removed that, any server that has show_mob_info settings on, will allow players to see the level and hp of the mobs it seems the function has changed, now just need clif_mobname_ack to work 1 Mihael reacted to this Quote Share this post Link to post Share on other sites
Hadeszeus 15 Posted March 3, 2021 Getting this error. Using latest version. Also in-game when I created the clone: - clone retain even after logging out - can create another clone even it's still exist - double-clicking a clone pug will let you enter the pub instead of seeing the message Quote Share this post Link to post Share on other sites
Kuya Jeo 120 Posted March 3, 2021 (edited) 1 minute ago, Hadeszeus said: Getting this error. Using latest version. Also in-game when I created the clone: - clone retain even after logging out - can create another clone even it's still exist - double-clicking a clone pug will let you enter the pub instead of seeing the message Enable the HPMHooking plugin NOTE : HPMHooking.c is already in src/plugin folder, just enable it in makefile edit makefile.ini and makefile in trunk/src/plugin enable it too in conf/plugin.conf recompile your server Edited March 3, 2021 by Kuya Jeo 1 Hadeszeus reacted to this Quote Share this post Link to post Share on other sites
Hadeszeus 15 Posted March 3, 2021 3 minutes ago, Kuya Jeo said: Enable the HPMHooking plugin edit makefile.ini and makefile in trunk/src/plugin enable it too in conf/plugin.conf recompile your server It's working now. Thank you so much Kuys! Kakahiya. Quote Share this post Link to post Share on other sites