Hi I am new to scripting and I was wondering if someone can create a aura for me, I saw one on the forums but they removed the gani so it isn’t working.
It’s ideally done via gani script. So here’s a very simple example.
aura.gani
GANI0001
SPRITE 0 SPRITES 0 0 2 2 shadow
DEFAULTHEAD head19.png
DEFAULTBODY body.png
SCRIPT
if (playerenters || timeout){
if (!lighteffectsenabled){
return;//don't bother running this aura for people with their lights turned off
}
this.grow = (this.grow+0.1);
showimg 300,light4.png,x-2.5,y-2;//we use x and y as we're referring to the placement of the gani, not the player!
changiemgcolors 300,1,1,1,0.5;
changeimgzoom 300,0.5+sin(this.grow)*0.5;
timeout = 0.05;
}
SCRIPTEND
ANI
0 12 34
0 12 34
0 12 34
0 12 34
ANIEND
I purposely gave you a basic one so you wouldn’t be tempted to run with mine. Have fun!
[QUOTE=tricxta;103851]
It’s ideally done via gani script. So here’s a very simple example.
aura.gani
GANI0001
SPRITE 0 SPRITES 0 0 2 2 shadow
DEFAULTHEAD head19.png
DEFAULTBODY body.png
SCRIPT
if (playerenters || timeout){
if (!lighteffectsenabled){
return;//don't bother running this aura for people with their lights turned off
}
this.grow = (this.grow+0.1);
showimg 300,light4.png,x-2.5,y-2;//we use x and y as we're referring to the placement of the gani, not the player!
changiemgcolors 300,1,1,1,0.5;
changeimgzoom 300,0.5+sin(this.grow)*0.5;
timeout = 0.05;
}
SCRIPTEND
ANI
0 12 34
0 12 34
0 12 34
0 12 34
ANIEND
I purposely gave you a basic one so you wouldn’t be tempted to run with mine. Have fun!
[/QUOTE]
Thanks for the help but when I try using it, it makes me invisible :(.
Lights off for life.
[QUOTE=Shadower187;103854]Thanks for the help but when I try using it, it makes me invisible :(.[/QUOTE]
Ahh sorry, I forgot to mention. What you generally do is have a helper weapon that displays this gani for your player.
if (playerenters && !isweapon)toweapons aura;
if (weaponfired){
this.on = 1- this.on;
if (this.on == 1){
timeout = 0.05;
}
}
if (timeout){
showani 1,playerx,playery,playerdir,gani,;
if (this.on == 1)timeout = 0.05;
else hideimg 1;
}
We can also send parameters through our showani statement to provide some kinda customisation system.
Another thing to take note of is that weapons that use an image index of < 250(I think…) will be shown serverside, the rest clientside, don’t bother with too many images as this is quite laggy.
Edit: Never mind, it lets me walk around with the aura now, but the aura just shows as “light2.png” Instead of a glow :(!
[QUOTE=tricxta;103851]
changiemgcolors 300,1,1,1,0.5;
[/QUOTE]
I believe you made a spelling error, I will see if this is the fix :D! brb
[QUOTE=Shadower187;103876]I believe you made a spelling error, I will see if this is the fix :D! brb[/QUOTE]
Yer, it was a test! You didn’t think i’d give you the answer straight out, did you?
[QUOTE=tricxta;103886]Yer, it was a test! You didn’t think i’d give you the answer straight out, did you?[/QUOTE]
I fixed the spelling mistake and i still didn’t work though ugh now idk what to do!
rofl fuck you tricxta you fucking liar
The teaching style has evolved again. Now it’s “better learning through broken scripts.”
No, I mean that he didn’t make the typo on purpose.
No!! Press B Press B
[QUOTE=Spooon;103892]No, I mean that he didn’t make the typo on purpose.[/QUOTE]
I changed the typo, and the whole thing was fixed. Also, you know how?
@OP
The solution still requires that you have knowledge of GS1, and that you replace words where need be, I’ve just given you the base.
Trollcxta…