1st question:
i need a script that will make it snow like in the iphone version of graal online classic
2nd question:
what is this script and why cant i use it on offline editor?
[CODE] function onPlayerEnters() {
this.sparklemode = player.attr[24];
hideimg(201);
with (findimg(201)) {
layer = 1;
attachtoowner = true;
with (emitter) {
delaymin = 0.2;
delaymax = 0.3;
nrofparticles = 3;
maxparticles = 130;
firstinfront = true;
emissionoffset = {0, -1.2, 0};
cliptoscreen = true;
continueafterdestroy = 1;
with (particle) {
lifetime = 4;
image = "g4_particle_x.png";
speed = 2;
mode = (thiso.sparklemode == 6? 1 : 0);
red = 1;
green = 1;
angle=pi/2;
blue = 1;
alpha = 0.5;
zoom = 0.25;
spin = 1;
}
removemodifiers();
if (thiso.sparklemode == 2) {
addlocalmodifier("once", 0, 0, "red", "replace", 1, 1);
addlocalmodifier("once", 0, 0, "green", "replace", 0, 0);
addlocalmodifier("once", 0, 0, "blue", "replace", 0, 0);
}
else if (thiso.sparklemode == 3) {
addlocalmodifier("once", 0, 0, "red", "replace", 0, 0);
addlocalmodifier("once", 0, 0, "green", "replace", 1, 1);
addlocalmodifier("once", 0, 0, "blue", "replace", 0, 0);
}
else if (thiso.sparklemode == 4) {
addlocalmodifier("once", 0, 0, "red", "replace", 0.3, 0.3);
addlocalmodifier("once", 0, 0, "green", "replace", 0.6, 0.6);
addlocalmodifier("once", 0, 0, "blue", "replace", 1, 1);
}
else if (thiso.sparklemode == 5) {
addlocalmodifier("once", 0, 0, "red", "replace", 0, 1);
addlocalmodifier("once", 0, 0, "green", "replace", 0, 1);
addlocalmodifier("once", 0, 0, "blue", "replace", 0, 1);
}
else if (thiso.sparklemode == 6) {
addlocalmodifier("once", 0, 0, "red", "replace", 0, 0);
addlocalmodifier("once", 0, 0, "green", "replace", 0, 0);
addlocalmodifier("once", 0, 0, "blue", "replace", 0, 0);
}
else if (thiso.sparklemode == 7) {
addlocalmodifier("once", 0, 0, "red", "replace", 192, 192);
addlocalmodifier("once", 0, 0, "green", "replace", 192, 192);
addlocalmodifier("once", 0, 0, "blue", "replace", 192, 192);
}
addlocalmodifier("once", 0, 0, "x", "add", -3.5, 2.5);
addlocalmodifier("once", 0, 0, "y", "add", -2.5, -2.5);
addlocalmodifier("once", 0, 0, "angle", "replace", 4.014257279, 5.410520681);
addLocalmodifier("range", 0,4, "alpha", "replace", 1,0);
addlocalmodifier("once",3,3,"speed","replace","0","0");
}
}
setTimer(3);
}
function onTimeout() {
onPlayerEnters();
}
[/CODE]