Auraset

Dastgir

Core Developer
Messages
3,805
Points
0
Discord
Dastgir#1460
IRC Nickname
Dastgir
Github
dastgirp
Emulator
Client Version
2019-02-28 RE
thumb-fc1536ff51dcc737514e4cae3b6b0106-screenneharo018.jpg


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:

Code:
(usage: @aura <aura1> {<aura2> <aura3>})
(aura1,aura2 are optional)

ScriptCommand:

Code:
(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:

Code:
{ 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

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

 
 
Last edited by a moderator:
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
default_wink.png
(Uploaded new version, let's wait till it gets approved_

 
I got some error 

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

 
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

 
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?

 
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
 
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._

 
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.

Code:
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'
 
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);

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

 
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.

 
Hy Dastgir Pojee, there is a way to make auraset loop-ing ??
What you mean by making auraset looping, mind giving an example?

 
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

 
Back
Top