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
  #16  
Old 08-13-2008, 09:01 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Uhm, isn't allplayers[] an array containing objects? So why are you using findplayer() on an object? :o

And, are you sure it finds the object for the Staff on RC though?

And, findplayer() only finds player objects of players online, so it will not return RCs
__________________
Reply With Quote
  #17  
Old 08-13-2008, 09:45 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
I fixed it, problem was probably findPlayer(), yessum. Bad Frankie, bad!
Reply With Quote
  #18  
Old 08-14-2008, 07:14 PM
Vulgar Vulgar is offline
()
Vulgar's Avatar
Join Date: May 2008
Location: Chesapeake, Virginia
Posts: 59
Vulgar is an unknown quantity at this point
Send a message via AIM to Vulgar
Quote:
Originally Posted by Frankie View Post
I can't get it -.-

PHP Code:
function Admin_TextList1.onDblClick()
{
  
temp.toks params[1].tokenize(":");
  for (
temp.plallplayers)
  {
    if (
pl == temp.toks[0] && pl.headimg == "era_head-remotecontrol.png")
    {
      
this.pmAccount pl;
    }
  }
  (@ 
"-Playerlist").openPMWindow({findPlayer(this.pmAccount)}, false); 

it's supposed to PM the RCs but if you have player and RC open it will try PMing the player.

so I'm using the allplayers so I can get the ID of the RC and not the player, but I can't get it to work right.
Wouldn't you want it to check for player.level = NULL? If not then why.
__________________
.
Reply With Quote
  #19  
Old 08-14-2008, 07:49 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Vulgar View Post
Wouldn't you want it to check for player.level = NULL? If not then why.
Because this is clientside. Every player not in your level will appear to have no level, though you can check every headimg clientside (because of the playerlist).
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 11:10 AM.


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