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 11-12-2004, 09:10 AM
Taharu Taharu is offline
Registered User
Join Date: May 2003
Posts: 84
Taharu is on a distinguished road
Send a message via AIM to Taharu
-Help - if(created) if(created) if(created) ect... ???

From TB3 - On Maloria
Im having problems with the spawning system I have made, and I have found the problem.
This is what happens.
The levels get filled with too many spawns.
More Details
More baddies are spawned that are supposed to be.
There is a limit in each level.

An npc in the level spawns the baddies they are putnpc2 baddies.
Levelnpc = spawns
DB Npc = baddy

The level npc sets its number of spawns out to 0 when (created). and the number decreases when a baddy is killed.
Baddies are spawned on (playerenters) and count goes up

Everything works perfectly until here.

After a certain period of time all level npcs magicaly
dissapear from the level but only when no players have been in it a while.

Im guessing this is some server lag preventer I dont know.

When a player enters the level again if ( created) is called again the variable is set to 0 again and more baddies are spawned.

I can script a way around this of course , but i shouldnt have to. When an npc is created it shouldnt be re-created. How does this get
fixed and is it just our server?
I checked with variable dump and all level npcs are removed when no players have been in the level for a while. DB npcs are just
fine though.

So my question is what do i do?? O_o
Reply With Quote
  #2  
Old 11-12-2004, 09:30 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Hey taharu <3,Try posting in the NPC Section, I don't think it will be answerd here..
__________________
Reply With Quote
  #3  
Old 11-12-2004, 01:37 PM
Darlene159 Darlene159 is offline
Administrator
Darlene159's Avatar
Join Date: Aug 2001
Location: Florida
Posts: 12,470
Darlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud of
Moved to the appropriate forum
__________________
FORUM RULES
GRAAL BIBLE (Lots of useful info)
INFO ABOUT REPUTATIONS.
INFO ABOUT INFRACTIONS.
HOW TO APPLY FOR THE NON-GRAAL RELATED FORUM (<<READ THOROUGHLY!)

SUPPORT: http://support.toonslab.com

NOTE: YOU ARE RESPONSIBLE FOR YOUR OWN POSTS.
READ>THINK>POST
Reply With Quote
  #4  
Old 11-17-2004, 12:59 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Local npcs are removed after some time, so that the level are not wasting memory / resources if there are not players or active npcs in them,
but putnpc2 stay there.
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 03:50 PM.


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