Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   npcs object unreadable? (https://forums.graalonline.com/forums/showthread.php?t=65266)

Yen 04-09-2006 02:34 AM

npcs object unreadable?
 
This is REALLY strange..

I've got an NPC with this code:
PHP Code:

function onPlayerEnters() {
  
this.targets "";
  for (
pplayers) {
    
this.targets.add(p);
  }
  if (!
player.level.starts("zodiacworld")) {
    for (
nnpcs) {
      
this.targets.add(n);
    }
  }
  
player.chat this.targets.size();


It's acting like 'npcs' is blank.
npcs.size() returns 0, no matter where I am.

Any ideas?

Yen 04-09-2006 03:23 AM

I relogged 3 times.. On the third time, it fixed itself.

I'm the God of Strange Self-Answered Questions.


All times are GMT +2. The time now is 05:12 PM.

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