Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-09-2007, 09:47 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
It seems like the NPC is not actually being destroyed. I'm calling destroy() on it and eventually after the weapon has been used a lot it causes lag.

If i /clearnpcs overworld.gmap the lag stops until the weapon has been used a lot and it causes lag again.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #2  
Old 02-09-2007, 09:58 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by JkWhoSaysNi View Post
It seems like the NPC is not actually being destroyed. I'm calling destroy() on it and eventually after the weapon has been used a lot it causes lag.

If i /clearnpcs overworld.gmap the lag stops until the weapon has been used a lot and it causes lag again.
Are you calling it on serverside?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 02-09-2007, 10:08 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
ah! You're right. It's being created serverside but destroyed clientside. I'll try destroying it serverside and see if it fixes it.

Edit: Thanks! That seems to have been my problem
__________________

Coming soon (Hopefully:P)

Last edited by JkWhoSaysNi; 02-09-2007 at 10:35 PM..
Reply With Quote
  #4  
Old 02-09-2007, 10:38 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
I'd recommend something like
HTML Code:
function onCreated()
{
  setTimer(5);
}
function onTimeout()
{
  this.destroy();
}
//#CLIENTSIDE
function onCreated()
{
  Yourclientsidepart...
}
Reply With Quote
  #5  
Old 02-10-2007, 03:28 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by JkWhoSaysNi View Post
ah! You're right. It's being created serverside but destroyed clientside. I'll try destroying it serverside and see if it fixes it.

Edit: Thanks! That seems to have been my problem
You're welcome.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:42 AM.


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