Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-13-2006, 05:46 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
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?

Last edited by projectigi; 02-13-2006 at 06:27 PM..
Reply With Quote
  #2  
Old 02-13-2006, 07:27 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.
__________________
Skyld
Reply With Quote
  #3  
Old 02-13-2006, 09:23 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
it worked, thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:02 AM.


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