![](http://board.herc.ws/uploads/set_resources_4/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Valaris
-
Content Count
7 -
Joined
-
Last visited
Posts posted by Valaris
-
-
0ed2d09e9aa88af01698707fd701363bdbd92b4bThanks!
-
Now it works perfect for me.
When compiling get the following warning:
CC battleground.cbattleground.c: In function ‘bg_team_rewards’:battleground.c:114:28: warning: declaration of ‘bg’ shadows a global declaration [-Wshadow]struct battleground_data *bg;^battleground.c:55:32: warning: shadowed declaration is here [-Wshadow]struct battleground_interface *bg;^battleground.c: In function ‘bg_team_getitem’:battleground.c:295:28: warning: declaration of ‘bg’ shadows a global declaration [-Wshadow]struct battleground_data *bg;^battleground.c:55:32: warning: shadowed declaration is here [-Wshadow]struct battleground_interface *bg;^battleground.c: In function ‘bg_team_get_kafrapoints’:battleground.c:322:28: warning: declaration of ‘bg’ shadows a global declaration [-Wshadow]struct battleground_data *bg;^battleground.c:55:32: warning: shadowed declaration is here [-Wshadow]struct battleground_interface *bg;^No errors when i play BG.
Nice work!
-
I had a look at some of your other stuff and you are awesome! I tried setting this up on a local server but couldn't get it to work @_@ oh well
You have some errors?
Hm yes, in bg_register.txt, the error I get in console is -
script error in file bg_register.txt line 38 column 60, parse_subexpr: need ':'
And this is line 38. " get_uniqueid() " is the part in question.
if( qiget(.@qid1) == ( .MultipleCheck == 1? get_unique_id():getcharip() ) || qiget(.@qid2) == ( .MultipleCheck == 1? get_unique_id():getcharip() ) )
Hi, i have the same problem. I changed Set variable .MultipleCheck 1 to 2 and the problem continues.
-
Hi
I tried using the following plugin @autopots http://herc.ws/board/files/file/76-autopots/ Linux and herc updated. When i do make plugins, some errors in the console:
I tried to correct it, but i can't. Thank you ~
CC autopots.cautopots.c: In function ‘autoatpots_timer’:autopots.c:79:20: warning: unused variable ‘item’ [-Wunused-variable]struct item_data* item = NULL;^autopots.c: In function ‘atcommand_autopots’:autopots.c:133:3: warning: implicit declaration of function ‘sscanf_s’ [-Wimplicit-function-declaration]sscanf_s(message, "%d %d %d %d ", &hp_rate, &hp_nameid, &sp_rate, &sp_nameid) < 4) ||^autopots.c: In function ‘plugin_init’:autopots.c:267:2: warning: implicit declaration of function ‘GET_SYMBOL’ [-Wimplicit-function-declaration]clif = GET_SYMBOL("clif");^autopots.c:267:7: warning: assignment makes pointer from integer without a castclif = GET_SYMBOL("clif");^autopots.c:268:12: warning: assignment makes pointer from integer without a castscript = GET_SYMBOL("script");^autopots.c:269:5: warning: assignment makes pointer from integer without a castpc = GET_SYMBOL("pc");^autopots.c:270:12: warning: assignment makes pointer from integer without a castatcommand = GET_SYMBOL("atcommand");^autopots.c:271:6: warning: assignment makes pointer from integer without a castmap = GET_SYMBOL("map");^autopots.c:272:7: warning: assignment makes pointer from integer without a castunit = GET_SYMBOL("unit");^autopots.c:273:8: warning: assignment makes pointer from integer without a casttimer = GET_SYMBOL("timer");^autopots.c:274:9: warning: assignment makes pointer from integer without a castitemdb = GET_SYMBOL("itemdb");^autopots.c: In function ‘autoatpots_timer’:autopots.c:114:28: warning: array subscript is above array bounds [-Warray-bounds]if( sd->status.inventory[index].nameid == hp_nameid )^autopots.c:120:28: warning: array subscript is above array bounds [-Warray-bounds]if( sd->status.inventory[index].nameid == sp_nameid )^/tmp/cc9MuuIQ.o: In function `atcommand_autohp':/root/ro/src/plugins/autopots.c:189: undefined reference to `sscanf_s'/root/ro/src/plugins/autopots.c:186: undefined reference to `sscanf_s'/root/ro/src/plugins/autopots.c:190: undefined reference to `sscanf_s'/tmp/cc9MuuIQ.o: In function `atcommand_autosp':/root/ro/src/plugins/autopots.c:231: undefined reference to `sscanf_s'/root/ro/src/plugins/autopots.c:228: undefined reference to `sscanf_s'/tmp/cc9MuuIQ.o:/root/ro/src/plugins/autopots.c:232: more undefined references to `sscanf_s' follow/tmp/cc9MuuIQ.o: In function `plugin_init':/root/ro/src/plugins/autopots.c:267: undefined reference to `GET_SYMBOL'/root/ro/src/plugins/autopots.c:268: undefined reference to `GET_SYMBOL'/root/ro/src/plugins/autopots.c:269: undefined reference to `GET_SYMBOL'/root/ro/src/plugins/autopots.c:270: undefined reference to `GET_SYMBOL'/root/ro/src/plugins/autopots.c:271: undefined reference to `GET_SYMBOL'/tmp/cc9MuuIQ.o:/root/ro/src/plugins/autopots.c:272: more undefined references to `GET_SYMBOL' followcollect2: error: ld returned 1 exit statusMakefile:104: recipe for target '../../plugins/autopots.so' failedmake[1]: *** [../../plugins/autopots.so] Error 1make[1]: Leaving directory '/root/ro/src/plugins'Makefile:132: recipe for target 'plugins' failedmake: *** [plugins] Error 2I tried using the following pluginI tried using the following pluginI tried usin -
Gracias por responder. Intentaré resolverlo yo mismo, a ver si puedo. Si logro hacerlo vuelvo a escribir
-
Buenas, he intentado usar el siguiente plugin @autopots http://herc.ws/board/topic/2915-autopots/?p=20915 en linux y con el emulador actualizado. Al hacer make plugins arroja los siguientes errores:
CC autopots.cautopots.c: In function ‘autoatpots_timer’:autopots.c:79:20: warning: unused variable ‘item’ [-Wunused-variable]struct item_data* item = NULL;^autopots.c: In function ‘atcommand_autopots’:autopots.c:133:3: warning: implicit declaration of function ‘sscanf_s’ [-Wimplicit-function-declaration]sscanf_s(message, "%d %d %d %d ", &hp_rate, &hp_nameid, &sp_rate, &sp_nameid) < 4) ||^autopots.c: In function ‘plugin_init’:autopots.c:267:2: warning: implicit declaration of function ‘GET_SYMBOL’ [-Wimplicit-function-declaration]clif = GET_SYMBOL("clif");^autopots.c:267:7: warning: assignment makes pointer from integer without a castclif = GET_SYMBOL("clif");^autopots.c:268:12: warning: assignment makes pointer from integer without a castscript = GET_SYMBOL("script");^autopots.c:269:5: warning: assignment makes pointer from integer without a castpc = GET_SYMBOL("pc");^autopots.c:270:12: warning: assignment makes pointer from integer without a castatcommand = GET_SYMBOL("atcommand");^autopots.c:271:6: warning: assignment makes pointer from integer without a castmap = GET_SYMBOL("map");^autopots.c:272:7: warning: assignment makes pointer from integer without a castunit = GET_SYMBOL("unit");^autopots.c:273:8: warning: assignment makes pointer from integer without a casttimer = GET_SYMBOL("timer");^autopots.c:274:9: warning: assignment makes pointer from integer without a castitemdb = GET_SYMBOL("itemdb");^autopots.c: In function ‘autoatpots_timer’:autopots.c:114:28: warning: array subscript is above array bounds [-Warray-bounds]if( sd->status.inventory[index].nameid == hp_nameid )^autopots.c:120:28: warning: array subscript is above array bounds [-Warray-bounds]if( sd->status.inventory[index].nameid == sp_nameid )^/tmp/cc9MuuIQ.o: In function `atcommand_autohp':/root/ro/src/plugins/autopots.c:189: undefined reference to `sscanf_s'/root/ro/src/plugins/autopots.c:186: undefined reference to `sscanf_s'/root/ro/src/plugins/autopots.c:190: undefined reference to `sscanf_s'/tmp/cc9MuuIQ.o: In function `atcommand_autosp':/root/ro/src/plugins/autopots.c:231: undefined reference to `sscanf_s'/root/ro/src/plugins/autopots.c:228: undefined reference to `sscanf_s'/tmp/cc9MuuIQ.o:/root/ro/src/plugins/autopots.c:232: more undefined references to `sscanf_s' follow/tmp/cc9MuuIQ.o: In function `plugin_init':/root/ro/src/plugins/autopots.c:267: undefined reference to `GET_SYMBOL'/root/ro/src/plugins/autopots.c:268: undefined reference to `GET_SYMBOL'/root/ro/src/plugins/autopots.c:269: undefined reference to `GET_SYMBOL'/root/ro/src/plugins/autopots.c:270: undefined reference to `GET_SYMBOL'/root/ro/src/plugins/autopots.c:271: undefined reference to `GET_SYMBOL'/tmp/cc9MuuIQ.o:/root/ro/src/plugins/autopots.c:272: more undefined references to `GET_SYMBOL' followcollect2: error: ld returned 1 exit statusMakefile:104: recipe for target '../../plugins/autopots.so' failedmake[1]: *** [../../plugins/autopots.so] Error 1make[1]: Leaving directory '/root/ro/src/plugins'Makefile:132: recipe for target 'plugins' failedmake: *** [plugins] Error 2¿Alguien puede ayudarme? he buscado por todos lados y no encuentro la solución. Gracias.
Queue BG rewrite
in PvP, WoE, GvG, & Battleground Releases
Posted
Its posible to make a NPC with a chat room for the register?