Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   pl.level (https://forums.graalonline.com/forums/showthread.php?t=75708)

Angel_Light 07-20-2007 05:52 AM

pl.level
 
I have a simple for loop

PHP Code:

for  ( plallplayers) {  
   
Staff_Tool_Player.addrowtemp.jpl.id SPC pl.account SPC pl.level);
      
   
temp.j++;

   
sleep0.01);


it does not return anything for pl.level, I've also tried pl.level.name etc I need this because it's really the only way to check to see if it's an actual player on the server OR if it's the NPC Server or a IRC Channel.... So is there a way to fix this or work around anybody knows?

xXziroXx 07-20-2007 05:58 AM

PHP Code:

for (plallplayers) {
  if (
pl.objecttype() == "TServerPlayer") {
  }


Returns TServerPlayer if the player is online, and NULL if not.

Angel_Light 07-20-2007 06:03 AM

thank you ^^


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

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