@arealoot

i very like this plugins, hope you can update it..

Code:
arealoot.c: In function 'plugin_init':arealoot.c:101: warning: implicit declaration of function 'GET_SYMBOL'arealoot.c:101: warning: assignment makes pointer from integer without a castarealoot.c:102: warning: assignment makes pointer from integer without a castarealoot.c:103: warning: assignment makes pointer from integer without a castarealoot.c:104: warning: assignment makes pointer from integer without a castarealoot.c:105: warning: assignment makes pointer from integer without a castarealoot.c:106: warning: assignment makes pointer from integer without a castarealoot.c:107: warning: assignment makes pointer from integer without a castarealoot.c:108: warning: assignment makes pointer from integer without a castarealoot.c:109: warning: assignment makes pointer from integer without a castarealoot.c:110: warning: assignment makes pointer from integer without a castarealoot.c:111: warning: assignment makes pointer from integer without a cast/tmp/ccLDBVrG.o: In function `plugin_init':/home/trincli0831/trunk/src/plugins/arealoot.c:101: undefined reference to `GET_SYMBOL'/home/trincli0831/trunk/src/plugins/arealoot.c:102: undefined reference to `GET_SYMBOL'/home/trincli0831/trunk/src/plugins/arealoot.c:103: undefined reference to `GET_SYMBOL'/home/trincli0831/trunk/src/plugins/arealoot.c:104: undefined reference to `GET_SYMBOL'/home/trincli0831/trunk/src/plugins/arealoot.c:105: undefined reference to `GET_SYMBOL'/tmp/ccLDBVrG.o:/home/trincli0831/trunk/src/plugins/arealoot.c:106: more undefined references to `GET_SYMBOL' followcollect2: ld returned 1 exit statusmake[1]: *** [../../plugins/arealoot.so] Error 1make[1]: Leaving directory `/home/trincli0831/trunk/src/plugins'make: *** [plugins] Error 2
 
Last edited by a moderator:
@@Hirist

Remove all lines containing GET_SYMBOL.

That will fix it...

I will upload new fixed version soon...

 
Updated the File to work with last hercules.

 
I have tried to compile this plugin, but i get an error about the malloc.h and the CREATE which is usually in there. malloc.h isn't part of hercules, so how do this plugin work?

 
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!

 
Last edited by a moderator:
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).

 
Try ask or rathena forum? At herc forum this is bit offtopic

 
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)

 
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 

 
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.

 
Last edited by a moderator:
its not work

arealoot.c:17:10: fatal error: ../common/malloc.h: No such file or directory
 #include "../common/malloc.h"

 
Last edited by a moderator:
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?

 
Back
Top