AnnieRuru 957 Posted February 18, 2014 me start to love rewrite Emistry's script .... hehehe sure he don't mind Download: 2.1script & plugin plugin is meant for players can vend on top of npc look for the original topic here for descriptionhttps://rathena.org/board/topic/84828-utility-vendor-control/ ... but download the script here .. hahaha Spoiler Vendor Control A script that basically used to control messy vendors in your server. Included one helper npc that enable Vendor to pick their spot easily. Some minor settings and math calculations are required to setup this. Archive 1.0 - fix his script display menu option too long - no need to run the npc timer on every npc even nobody is standing on it ... - other optimization that I couldn't think ofvendor_control_1.0.txt 2.0script & plugin due to this bug report, spark my interest to update this script - change npc sprite ID into constant - fixed player can't stand on the cell by changing unitwalk into warp - use source modification so players can vend on the npc while min_npc_vendchat_distance activated 2.1script & plugin - fix the script and use constant properly - revert back to *unitwalk 6 EriNa_KillerSoul, skuray, buczak and 3 others reacted to this Quote Share this post Link to post Share on other sites
Hadeszeus 15 Posted February 18, 2014 When script came from you. I love it. I'll update mine. Thanks! Quote Share this post Link to post Share on other sites
EriNa_KillerSoul 9 Posted February 18, 2014 Thanks Annie Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted February 18, 2014 I think I'm going to start a "New Script Festival" LOL I have so many scripts in my hard-disk ... so I just have to post them 1 at a time ... everyday ! -> keep my fan base happy 6 karazu, cJei, Hadeszeus and 3 others reacted to this Quote Share this post Link to post Share on other sites
karazu 33 Posted February 18, 2014 I think I'm going to start a "New Script Festival" LOL I have so many scripts in my hard-disk ... so I just have to post them 1 at a time ... everyday ! -> keep my fan base happy I am one of them Quote Share this post Link to post Share on other sites
Hadeszeus 15 Posted February 19, 2014 +1 for New Script Festival Quote Share this post Link to post Share on other sites
xeNium 0 Posted May 31, 2014 Is this compatible with Extended Vending System? http://herc.ws/board/files/file/7-extended-vending-system-v181/ Quote Share this post Link to post Share on other sites
MidKnight 0 Posted May 14, 2015 Awesome vendor script AnnieRuru thanks for sharing. Works great. Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted October 28, 2015 after I saw this bug report https://github.com/HerculesWS/Hercules/issues/834 suddenly an urge for me to update this script version 2.0 - change npc sprite ID into constant - fixed player can't stand on the cell by changing unitwalk into warp - use source modification so players can vend on the npc while min_npc_vendchat_distance activated Quote Share this post Link to post Share on other sites
Kong 9 Posted November 26, 2015 after I saw this bug report https://github.com/HerculesWS/Hercules/issues/834 suddenly an urge for me to update this script version 2.0 - change npc sprite ID into constant - fixed player can't stand on the cell by changing unitwalk into warp - use source modification so players can vend on the npc while min_npc_vendchat_distance activated Do we need to use both the script and the plugin? or just the script will do? because in rathena they only have script Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted November 26, 2015 the plugin will bypass the 'min_npc_vendchat_distance' check so your server can still on the 'min_npc_vendchat_distance' to disallow players to vend too near other npc but still able vend on the npc for these coordinates Quote Share this post Link to post Share on other sites
* Blaze * 6 Posted December 3, 2015 Thanks Annie Quote Share this post Link to post Share on other sites
Legend 43 Posted December 4, 2015 woah! thank you so much sensei! Quote Share this post Link to post Share on other sites
Begin 11 Posted June 2, 2018 Hello everyone! Anyone know why I am getting this type of errors? Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted June 2, 2018 you should assume all my plugins broken, just like my signature says 2.1script & plugin - fix the script and use constant properly - revert back to *unitwalk 1 Begin reacted to this Quote Share this post Link to post Share on other sites
Begin 11 Posted June 2, 2018 (edited) Thanks, Ms. @AnnieRuru! But I'm having this message in console. [Debug]: Source (NPC): Vending Helper at mall (99,95) Is that okay? Edited June 2, 2018 by Begin Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted June 2, 2018 18 hours ago, Begin said: Thanks, Ms. @AnnieRuru! But I'm having this message in console. [Debug]: Source (NPC): Vending Helper at mall (99,95) Is that okay? How do you get this error message ? Quote Share this post Link to post Share on other sites
Begin 11 Posted June 4, 2018 I dont know Ms. Annie. I just change the coordinates and npc sprite. Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted June 4, 2018 (edited) up to plugin to 2.1a - fix a bug that will cause map-server to spam error if the player has pets or homunculus walk over the tiles ----- should have use BL_CAST and not BL_UCAST... BL_UCAST should only use in iterations [Debug]: mapindex_id2name: Requested name for non-existant map index [0] in cache. ..\src\plugins\zzz.c::53 12 minutes ago, Begin said: I dont know Ms. Annie. I just change the coordinates and npc sprite. post your edited script here or in discord Edited June 4, 2018 by AnnieRuru Quote Share this post Link to post Share on other sites
Begin 11 Posted June 4, 2018 (edited) May I know the Discord link, Ms. Annie? Found it. Edited June 4, 2018 by Begin 1 AnnieRuru reacted to this Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted June 4, 2018 up script to 2.1a - add a debugging line to tell how many NPC you need remain commented, however, should only run once to know how many NPC you need thanks to @Begin for showing me his edited script 1 Begin reacted to this Quote Share this post Link to post Share on other sites
Lelouch 10 Posted December 10, 2018 @AnnieRuru Any rA ver for this? Quote Share this post Link to post Share on other sites
adobo 0 Posted June 12, 2020 Hi! Good Day! I got an error while compiling my server. In file included from vendor.c:21:0: vendor.c: In function ‘plugin_init’: ../plugins/HPMHooking.h:53:11: error: ‘HPMHOOK_pre_unit_walktoxy_timer’ undeclared (first use in this function) (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:53:11: note: each undeclared identifier is reported only once for each function it appears in (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:53:51: error: expected ‘)’ before numeric constant (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:53:63: warning: left-hand operand of comma expression has no effect [-Wunused-value] (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:63:11: error: ‘HPMHOOK_post_unit_walktoxy_timer’ undeclared (first use in this function) (void)((HPMHOOK_post_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:69:2: note: in expansion of macro ‘addHookPost’ addHookPost(unit, walktoxy_timer, unit_walktoxy_timer_post ); ^ ../plugins/HPMHooking.h:63:52: error: expected ‘)’ before numeric constant (void)((HPMHOOK_post_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:69:2: note: in expansion of macro ‘addHookPost’ addHookPost(unit, walktoxy_timer, unit_walktoxy_timer_post ); ^ ../plugins/HPMHooking.h:63:64: warning: left-hand operand of comma expression has no effect [-Wunused-value] (void)((HPMHOOK_post_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:69:2: note: in expansion of macro ‘addHookPost’ addHookPost(unit, walktoxy_timer, unit_walktoxy_timer_post ); ^ please help. Quote Share this post Link to post Share on other sites
brunosc 2 Posted March 4, 2021 (edited) On 6/12/2020 at 7:10 AM, adobo said: Hi! Good Day! I got an error while compiling my server. In file included from vendor.c:21:0: vendor.c: In function ‘plugin_init’: ../plugins/HPMHooking.h:53:11: error: ‘HPMHOOK_pre_unit_walktoxy_timer’ undeclared (first use in this function) (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:53:11: note: each undeclared identifier is reported only once for each function it appears in (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:53:51: error: expected ‘)’ before numeric constant (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:53:63: warning: left-hand operand of comma expression has no effect [-Wunused-value] (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:63:11: error: ‘HPMHOOK_post_unit_walktoxy_timer’ undeclared (first use in this function) (void)((HPMHOOK_post_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:69:2: note: in expansion of macro ‘addHookPost’ addHookPost(unit, walktoxy_timer, unit_walktoxy_timer_post ); ^ ../plugins/HPMHooking.h:63:52: error: expected ‘)’ before numeric constant (void)((HPMHOOK_post_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:69:2: note: in expansion of macro ‘addHookPost’ addHookPost(unit, walktoxy_timer, unit_walktoxy_timer_post ); ^ ../plugins/HPMHooking.h:63:64: warning: left-hand operand of comma expression has no effect [-Wunused-value] (void)((HPMHOOK_post_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:69:2: note: in expansion of macro ‘addHookPost’ addHookPost(unit, walktoxy_timer, unit_walktoxy_timer_post ); ^ In file included from vendor.c:21:0: vendor.c: In function ‘plugin_init’: ../plugins/HPMHooking.h:53:11: error: ‘HPMHOOK_pre_unit_walktoxy_timer’ undeclared (first use in this function) (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:53:11: note: each undeclared identifier is reported only once for each function it appears in (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:53:51: error: expected ‘)’ before numeric constant (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:53:63: warning: left-hand operand of comma expression has no effect [-Wunused-value] (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:68:2: note: in expansion of macro ‘addHookPre’ addHookPre(unit, walktoxy_timer, unit_walktoxy_timer_pre ); ^ ../plugins/HPMHooking.h:63:11: error: ‘HPMHOOK_post_unit_walktoxy_timer’ undeclared (first use in this function) (void)((HPMHOOK_post_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:69:2: note: in expansion of macro ‘addHookPost’ addHookPost(unit, walktoxy_timer, unit_walktoxy_timer_post ); ^ ../plugins/HPMHooking.h:63:52: error: expected ‘)’ before numeric constant (void)((HPMHOOK_post_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:69:2: note: in expansion of macro ‘addHookPost’ addHookPost(unit, walktoxy_timer, unit_walktoxy_timer_post ); ^ ../plugins/HPMHooking.h:63:64: warning: left-hand operand of comma expression has no effect [-Wunused-value] (void)((HPMHOOK_post_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ vendor.c:69:2: note: in expansion of macro ‘addHookPost’ addHookPost(unit, walktoxy_timer, unit_walktoxy_timer_post ); ^ please help. same problem here, but i fixed. change walktoxy_timer to walk_toxy_timer in all file .c Edited March 4, 2021 by brunosc 1 Hezekiah reacted to this Quote Share this post Link to post Share on other sites