The best method is using a player.attr[n] and a gani script with findimg and the attachtoowner variable set.
yourlightaura.gani
PHP Code:
SCRIPT
function onCreated() {
with (findimg(200)) {
x = player.x;
y = player.y;
layer = 1;
attachtoowner = true; // Attaches the light to the player.
image = "light2.png";
red = 0;
blue = 0;
green = 1;
alpha = 0.99;
}
}
SCRIPTEND
then in a weapon you can set the gani to player's attr:
PHP Code:
//#CLIENTSIDE
function onCreated() {
player.attr[2] = "yourlightaura.gani";
}
Also valid is using light2.png as a sprite in your lantern gani, and setting it's COLOREFFECT.