Valiente 7 Posted December 29, 2016 (edited) I don't really see why you have to add the property. in_process Since you turn it back to false in the same execution context/if block. Thanks btw! Edited December 29, 2016 by Valiente Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted January 2, 2017 I don't really see why you have to add the property. in_process Since you turn it back to false in the same execution context/if block. Thanks btw! int pc_takeitem_pre(struct map_session_data **sd_, struct flooritem_data **fitem_) { struct area_p_data *data; struct map_session_data *sd = *sd_; struct flooritem_data *fitem = *fitem_; data = adb_search(sd); if (data->arealoot && data->in_process==false) { data->in_process = true; map->foreachinrange(skill->greed, &fitem->bl, arealoot_range, BL_ITEM, &sd->bl); hookStop(); data->in_process = false; return 1; } return 1; } in_process is used in pc_takeitem preHook, if you see in_process is set to true and it invokes skill->greed, skill->greed also invokes pc_takeitem, which would make it into possibility of infinite loop. so to prevent this, I set in_process to true, so that the nested calls won't be executing foreachinrange(see if condition, it checks if in_process is false). Quote Share this post Link to post Share on other sites
kukayasko 6 Posted January 11, 2018 Where I can see the complete guide to install this plugin? I never had added a plugin before... :/ Quote Share this post Link to post Share on other sites
HD Scripts 3 Posted August 29, 2018 Someboy teachs me to implement this src on rathena? no plugins Quote Share this post Link to post Share on other sites
4144 364 Posted August 29, 2018 Try ask or rathena forum? At herc forum this is bit offtopic Quote Share this post Link to post Share on other sites
bWolfie 138 Posted August 30, 2018 Hercules master race Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted August 30, 2018 13 hours ago, HD Scripts said: Someboy teachs me to implement this src on rathena? no plugins It's better to ask this kind of thing at rA forum itself. If there's something which is common to both emulator, you can ask it anywhere, but since your request is rA specific, just ask there (and I am sure there already might be topic for this) Quote Share this post Link to post Share on other sites
HD Scripts 3 Posted August 30, 2018 I'm use Hercules now... But, i can implement this src command? No plugins, command. Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted August 31, 2018 12 hours ago, HD Scripts said: I'm use Hercules now... But, i can implement this src command? No plugins, command. Sorry, I won't do that(it needs to be updated too frequently), but it's easy to see plugin code(pre/post hook) and change to src Quote Share this post Link to post Share on other sites
KhnKhymKh 0 Posted October 25, 2018 (edited) I have successfully installed the plugin. But when I use @arealoot, it says that @arealoot is Unknown Command. Update: @arealoot command is working now. But its still only getting 1 item. instead of 3x3 area items. Edited October 25, 2018 by KhnKhymKh Quote Share this post Link to post Share on other sites
rabmaster 0 Posted September 13, 2020 (edited) its not work arealoot.c:17:10: fatal error: ../common/malloc.h: No such file or directory #include "../common/malloc.h" Edited September 13, 2020 by rabmaster Quote Share this post Link to post Share on other sites
Timokha 0 Posted April 21, 2022 (edited) On 9/13/2020 at 12:24 PM, rabmaster said: its not work arealoot.c:17:10: fatal error: ../common/malloc.h: No such file or directory #include "../common/malloc.h" The plugin is perfectly working on the latest HERC. Check and use this code: https://github.com/dastgirp/HPM-Plugins/blob/master/src/plugins/%40arealoot.c And do not forget to mention the plugin name in \conf\plugins.conf Edited April 21, 2022 by Timokha Quote Share this post Link to post Share on other sites
gleynn 0 Posted April 17 On 10/25/2018 at 6:02 PM, KhnKhymKh said: I have successfully installed the plugin. But when I use @arealoot, it says that @arealoot is Unknown Command. Update: @arealoot command is working now. But its still only getting 1 item. instead of 3x3 area items. same here using the latest Hercules as of this writing, does anyone can help to fix this issue? Quote Share this post Link to post Share on other sites
Fou-lu 7 Posted April 19 On 4/17/2024 at 2:08 PM, gleynn said: same here using the latest Hercules as of this writing, does anyone can help to fix this issue? I'm using this @arealoot plugin attached and it's working perfectly. (Collecting all items at once) arealoot.c Quote Share this post Link to post Share on other sites