Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 12:49 AM.


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