Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-12-2009, 07:32 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
How can I make clientside findareanpcs work reliably?

(I had posted all this, then it fixed itself for a bit, now it's broken again.)

Problem: See picture. The player's weapon:

PHP Code:
     if(player.chat==""player.chat = (area_npcs.size() SPC "npcs in area (" temp.lowestx ", " temp.lowesty  ", " temp.highestx  ", " temp.highesty @")"); 
And the NPCs have a fairly predictable "message your location and timevar";
the trouble is they keep updating the message - even with the timevar - serverside and clientside, no problem - but after they've been idling against a wall for long enough (hard to pin down exactly how long it needs to be; could be a few minutes, could be until a player re-enters the map, could be until a player re-logs, whatever) they Fall Off the findareanpcs results table.

Until the player makes them move. Then they're back in the detection area.

So do I just have to make the zombies move around every so often? :-P
Attached Thumbnails
Click image for larger version

Name:	findareanpcs.png
Views:	205
Size:	97.6 KB
ID:	47686  
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
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 02:03 AM.


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