Dastgir 1246 Posted March 24, 2014 File Name: Auraset File Submitter: Dastgir File Submitted: 24 Mar 2014 File Category: Plugins For Building Plugins: Windows: http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC Linux: http://herc.ws/wiki/Building_HPM_Plugin_for_gcc Usage: Atcommand: (usage: @aura <aura1> {<aura2> <aura3>}) (aura1,aura2 are optional) ScriptCommand: (usage: aura aura1{,aura2,aura3} aura1 is compulsory, while aura2,aura3 are optional. aura1,aura2,aura3 are AuraID's NOTE: 1) This effects are permanent(unless the effect is not, which is clientside) and if you want to remove it, either do "@aura 0 0 0" or by Script (aura(0,0,0)) 2) If you type aura(586,-1,240), the 2nd aura will remain same, while first and third aura will change. You can check/set User's AuraID's by following variables USERAURA - Aura1 USERAURA1 - Aura2 USERAURA2 - Aura3 You can also change aura by changing these variables. Some Useful aura Combinations: { 586, -1, -1 },{ 586, 362, -1 },{ 586, 362, 240 },{ 418, -1, -1 },{ 486, -1, -1 },{ 485, -1, -1 },{ 239, -1, -1 },{ 240, -1, -1 },{ 241, -1, -1 },{ 620, -1, -1 },{ 202, -1, -1 },{ 362, -1, -1 },{ 678, -1, -1 },{ 679, -1, -1 },{ 680, -1, -1 },{ 239, 418, -1 },{ 239, 486, -1 },{ 239, 485, -1 },{ 240, 418, -1 },{ 240, 486, -1 },{ 240, 485, -1 },{ 241, 418, -1 },{ 241, 486, -1 },{ 241, 485, -1 },{ 620, 418, -1 },{ 620, 486, -1 },{ 620, 485, -1 },{ 239, 418, 202 },{ 239, 486, 202 },{ 239, 485, 202 },{ 240, 418, 202 },{ 240, 486, 202 },{ 240, 485, 202 },{ 241, 418, 202 },{ 241, 486, 202 },{ 241, 485, 202 },{ 620, 418, 202 },{ 620, 486, 202 },{ 620, 485, 202 },{ 239, 418, 362 },{ 239, 486, 362 },{ 239, 485, 362 },{ 240, 418, 362 },{ 240, 486, 362 },{ 240, 485, 362 },{ 241, 418, 362 },{ 241, 486, 362 },{ 241, 485, 362 },{ 620, 418, 362 },{ 620, 486, 362 },{ 620, 485, 362 },{ 239, 418, 678 },{ 239, 486, 678 },{ 239, 485, 678 },{ 240, 418, 678 },{ 240, 486, 678 },{ 240, 485, 678 },{ 241, 418, 678 },{ 241, 486, 678 },{ 241, 485, 678 },{ 620, 418, 678 },{ 620, 486, 678 },{ 620, 485, 678 },{ 680, 679, 678 }, I guess no further explanation is needed. Click here to download this file 11 mleo1, Litro, Jey and 8 others reacted to this Quote Share this post Link to post Share on other sites
karazu 33 Posted March 24, 2014 (edited) Thank you hahah!What do u think is the reason of this? auraset.c: In function 'atcommand_aura':auraset.c:85: warning: implicit declaration of function 'sscanf_s'auraset.c:95: warning: implicit declaration of function 'sprintf_s'auraset.c: In function 'status_change_start_postAura':auraset.c:208: warning: unused variable 'tick_time'auraset.c:208: warning: unused variable 'val_flag'auraset.c: In function 'status_change_end_postAura':auraset.c:252: error: 'struct clif_interface' has no member named 'sendauras'auraset.c:231: warning: unused variable 'opt_flag'make[1]: *** [../../plugins/auraset.so] Error 1 Maybe I need too update again my trunk. Maybe later hehe Edited March 24, 2014 by karazu Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted March 25, 2014 Thank you hahah! What do u think is the reason of this? auraset.c: In function 'atcommand_aura':auraset.c:85: warning: implicit declaration of function 'sscanf_s'auraset.c:95: warning: implicit declaration of function 'sprintf_s'auraset.c: In function 'status_change_start_postAura':auraset.c:208: warning: unused variable 'tick_time'auraset.c:208: warning: unused variable 'val_flag'auraset.c: In function 'status_change_end_postAura':auraset.c:252: error: 'struct clif_interface' has no member named 'sendauras'auraset.c:231: warning: unused variable 'opt_flag'make[1]: *** [../../plugins/auraset.so] Error 1 Maybe I need too update again my trunk. Maybe later hehe Fixed problems of tick_time,val_flag(Strange, my VC++ haven't given warning of unused variables) Fixed clif->sendauras(It was completely my fault for not checking in newly checkout'd Hercules) You don't need to update the trunk, it was the plugin problem (Uploaded new version, let's wait till it gets approved_ Quote Share this post Link to post Share on other sites
安赫尔 9 Posted March 25, 2014 (edited) I got some error auraset.c: In function ‘atcommand_aura’:auraset.c:85: warning: implicit declaration of function ‘sscanf_s’auraset.c:95: warning: implicit declaration of function ‘sprintf_s’auraset.c: In function ‘status_change_end_postAura’:auraset.c:230: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' Edited March 25, 2014 by 安赫尔 Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted March 25, 2014 I got some error auraset.c: In function ‘atcommand_aura’:auraset.c:85: warning: implicit declaration of function ‘sscanf_s’auraset.c:95: warning: implicit declaration of function ‘sprintf_s’auraset.c: In function ‘status_change_end_postAura’:auraset.c:230: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' wait for latest one Quote Share this post Link to post Share on other sites
Angelmelody 221 Posted March 25, 2014 I got some error auraset.c: In function ‘atcommand_aura’:auraset.c:85: warning: implicit declaration of function ‘sscanf_s’auraset.c:95: warning: implicit declaration of function ‘sprintf_s’auraset.c: In function ‘status_change_end_postAura’:auraset.c:230: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' Compiling with MSCV was successful , I think fucntion scanf_s and sprintf_s are only compatible with MSCV ,So you can just try changing scanf_s and sprintf_s to scanf and sprintf Quote Share this post Link to post Share on other sites
karazu 33 Posted March 25, 2014 I got some error auraset.c: In function ‘atcommand_aura’:auraset.c:85: warning: implicit declaration of function ‘sscanf_s’auraset.c:95: warning: implicit declaration of function ‘sprintf_s’auraset.c: In function ‘status_change_end_postAura’:auraset.c:230: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' Compiling with MSCV was successful , I think fucntion scanf_s and sprintf_s are only compatible with MSCV ,So you can just try changing scanf_s and sprintf_s to scanf and sprintf are u using the latest one? Quote Share this post Link to post Share on other sites
Angelmelody 221 Posted March 25, 2014 I got some error auraset.c: In function ‘atcommand_aura’:auraset.c:85: warning: implicit declaration of function ‘sscanf_s’auraset.c:95: warning: implicit declaration of function ‘sprintf_s’auraset.c: In function ‘status_change_end_postAura’:auraset.c:230: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' Compiling with MSCV was successful , I think fucntion scanf_s and sprintf_s are only compatible with MSCV ,So you can just try changing scanf_s and sprintf_s to scanf and sprintf are u using the latest one? Hm.Hm.. Auraset 1.0a and my server git hash :70a33d3 Quote Share this post Link to post Share on other sites
karazu 33 Posted March 26, 2014 Me I know what is this please? Hm.Hm.. Auraset 1.0a and my server git hash :70a33d3 Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted March 26, 2014 Maybe I am the only one who is given warning with sprintf (maybe bcoz i use MSVC++ for compiling.) Changing it to sprintf, (anyways, it was just a warning and i guess it would have compilied, and ran properly._ Quote Share this post Link to post Share on other sites
安赫尔 9 Posted March 26, 2014 I got some error auraset.c: In function ‘atcommand_aura’:auraset.c:85: warning: implicit declaration of function ‘sscanf_s’auraset.c:95: warning: implicit declaration of function ‘sprintf_s’auraset.c: In function ‘status_change_end_postAura’:auraset.c:230: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' Compiling with MSCV was successful , I think fucntion scanf_s and sprintf_s are only compatible with MSCV ,So you can just try changing scanf_s and sprintf_s to scanf and sprintf are u using the latest one? Hm.Hm.. Auraset 1.0a and my server git hash :70a33d3 It's still error in gcc. auraset.c: In function ‘atcommand_aura’:auraset.c:93: warning: passing argument 2 of ‘sprintf’ makes pointer from integer without a cast/usr/include/stdio.h:363: note: expected ‘const char * __restrict__’ but argument is of type ‘long unsigned int’auraset.c: In function ‘status_change_end_postAura’:auraset.c:228: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' Quote Share this post Link to post Share on other sites
Angelmelody 221 Posted March 26, 2014 (edited) I got some error auraset.c: In function ‘atcommand_aura’:auraset.c:85: warning: implicit declaration of function ‘sscanf_s’auraset.c:95: warning: implicit declaration of function ‘sprintf_s’auraset.c: In function ‘status_change_end_postAura’:auraset.c:230: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' Compiling with MSCV was successful , I think fucntion scanf_s and sprintf_s are only compatible with MSCV ,So you can just try changing scanf_s and sprintf_s to scanf and sprintf are u using the latest one? Hm.Hm.. Auraset 1.0a and my server git hash :70a33d3 It's still error in gcc. auraset.c: In function ‘atcommand_aura’:auraset.c:93: warning: passing argument 2 of ‘sprintf’ makes pointer from integer without a cast/usr/include/stdio.h:363: note: expected ‘const char * __restrict__’ but argument is of type ‘long unsigned int’auraset.c: In function ‘status_change_end_postAura’:auraset.c:228: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' sprintf_s(mes,sizeof(mes), "Aura Set %d:%d:%d.", aura, aura1, aura2);change to sprintf(mes,"Aura Set %d:%d:%d.", aura, aura1, aura2); Edited March 26, 2014 by Angelmelody Quote Share this post Link to post Share on other sites
karazu 33 Posted March 26, 2014 I got some error auraset.c: In function ‘atcommand_aura’:auraset.c:85: warning: implicit declaration of function ‘sscanf_s’auraset.c:95: warning: implicit declaration of function ‘sprintf_s’auraset.c: In function ‘status_change_end_postAura’:auraset.c:230: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' Compiling with MSCV was successful , I think fucntion scanf_s and sprintf_s are only compatible with MSCV ,So you can just try changing scanf_s and sprintf_s to scanf and sprintf are u using the latest one? Hm.Hm.. Auraset 1.0a and my server git hash :70a33d3 It's still error in gcc. auraset.c: In function ‘atcommand_aura’:auraset.c:93: warning: passing argument 2 of ‘sprintf’ makes pointer from integer without a cast/usr/include/stdio.h:363: note: expected ‘const char * __restrict__’ but argument is of type ‘long unsigned int’auraset.c: In function ‘status_change_end_postAura’:auraset.c:228: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' sprintf_s(mes,sizeof(mes), "Aura Set %d:%d:%d.", aura, aura1, aura2);change to sprintf(mes,"Aura Set %d:%d:%d.", aura, aura1, aura2); The new version works for me w/o error Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted March 27, 2014 ahh sprintf warning in new version, nah(impossible), I removed all sprintf functions. and only 1 sscanf function is there in Atcommand(That's an necessity) /usr/include/stdio.h:363: note: expected ‘const char * __restrict__’ but argument is of type ‘long unsigned int’ Its not an plugin problem, see the include path, its your msvc stdio problem. While opt_flag was also fixed. So just get the new version, and its fixed. Quote Share this post Link to post Share on other sites
Litro 45 Posted March 29, 2014 Hy Dastgir Pojee, there is a way to make auraset loop-ing ?? Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted March 29, 2014 Hy Dastgir Pojee, there is a way to make auraset loop-ing ?? What you mean by making auraset looping, mind giving an example? Quote Share this post Link to post Share on other sites
Litro 45 Posted March 29, 2014 well there is some effect it just will show 1 time, if there is loop the aura will keep showing to the end of seting time Quote Share this post Link to post Share on other sites
Ragnar Lothbrok 21 Posted April 14, 2014 can you help me on this error!? Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted April 15, 2014 can you help me on this error!? Update your Auraset, Seems like you are using old version of auraset.. (since from error, it seems, source is calling clif->sendauras, while we have clif_sendauras in the source) and Line 252: if (sd && (effect1<0 || effect2<0 || effect3<0) && (type == SC_HIDING || type == SC_CLOAKING || type == SC_CHASEWALK || sd->sc.option==OPTION_INVISIBLE || type==SC_CHASEWALK || type==SC_CHASEWALK2 || type==SC_CAMOUFLAGE)){ effect1 *= -1; effect2 *= -1; effect3 *= -1; clif_sendauras(sd, AREA_WOS); } return 1;}/* run when server starts */ So, Please update your Auraset File. Quote Share this post Link to post Share on other sites
Ragnar Lothbrok 21 Posted April 15, 2014 (edited) can you help me on this error!? Update your Auraset, Seems like you are using old version of auraset.. (since from error, it seems, source is calling clif->sendauras, while we have clif_sendauras in the source) and Line 252: if (sd && (effect1<0 || effect2<0 || effect3<0) && (type == SC_HIDING || type == SC_CLOAKING || type == SC_CHASEWALK || sd->sc.option==OPTION_INVISIBLE || type==SC_CHASEWALK || type==SC_CHASEWALK2 || type==SC_CAMOUFLAGE)){ effect1 *= -1; effect2 *= -1; effect3 *= -1; clif_sendauras(sd, AREA_WOS); } return 1;}/* run when server starts */ So, Please update your Auraset File. Thank You! no more error when compiling but i got another error on console Edited April 15, 2014 by P r o p e r t i e s Quote Share this post Link to post Share on other sites
jaBote 438 Posted April 15, 2014 You should also compile and enable the HPMHooking plugin for it to work. It's there with any relatively recent Hercules installation, just compile it and make the server run it. Quote Share this post Link to post Share on other sites
Ragnar Lothbrok 21 Posted April 16, 2014 You should also compile and enable the HPMHooking plugin for it to work. It's there with any relatively recent Hercules installation, just compile it and make the server run it. Sir Jabote do ypu mean this one? i do't know how to enable it, can you please help me.. Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted April 16, 2014 Compile plugin-HPMHooking (which I guess is compiled everytime you build solution) Uncomment HPMHooking line from plugins.conf P.S: HPMHooking should be first to load. Quote Share this post Link to post Share on other sites
Ragnar Lothbrok 21 Posted April 16, 2014 Compile plugin-HPMHooking (which I guess is compiled everytime you build solution) Uncomment HPMHooking line from plugins.conf P.S: HPMHooking should be first to load. Thank You Dastgir Pojee! Solved! Quote Share this post Link to post Share on other sites