Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   The Killer Gani (https://forums.graalonline.com/forums/showthread.php?t=64093)

projectigi 02-13-2006 05:46 PM

The Killer Gani
 
Hi,

i made a gani:
NPC Code:

GANI0001

SCRIPT

//#CLIENTSIDE
function onCreated(){
thiso.ganiobj=this;
with(findimg(1000)){
x=thiso.ganiobj.x;
y=thiso.ganiobj.y;
attachposition=true;
emitter.delaymin=999;
emitter.delaymax=999;
emitter.nrofparticles=6;
emitter.maxparticles=20;
emitter.particle=lifetime=15;
emitter.particle.image="light2.png";
emitter.particle.zoom=0.1;
emitter.particle.speed=0;
emitter.particle.spin=0;
emitter.particle.alpha=0.99;
emitter.particle.red=1;
emitter.particle.green=.5;
emitter.particle.blue=.5;
continueafterdestroy=true;
emitter.addglobalmodifier("range",0.1,3,"zoom","ad d",.3,.5);
emitter.addglobalmodifier("range",3,6,"zoom","sub" ,.3,.5);
emitter.emit();
}
thiso.ganiobj.destroy();
}

SCRIPTEND



uploaded it, and made a level with an npc:
NPC Code:

function onPlayerTouchsMe(){
showani2(1,x-10,y,z,0,"end_spell_ex_1","");
}



well starting graal touching the block, it starts spamming me !

"Access violation at address 00000000. Read of address 00000000."
after some of them it changed to
"Access violation at address 04D2005SB. Read of address 04D2005SB."
k taskmanager, close graal4.exe down...
-restarting-
-logging in-
"External exception C000001D."
"Access violation at address 90027DB8. Read of adress 90027DB8."
after a few hundred access violation popup errors.
"Access violation at address 7C92218E in module 'ntdll.dll'. Read of address 0C5E4970."

hoooray ^^

how to fix?

Skyld 02-13-2006 07:27 PM

It might be that you are using destroy() inside a showani GANI script, but I thought I reported this and it was fixed. Try removing the thiso.ganiobj.destroy(); and see if the error still occurs.

projectigi 02-13-2006 09:23 PM

it worked, thanks


All times are GMT +2. The time now is 11:37 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.