Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-13-2008, 06:33 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
blah, can't get it to work.

PHP Code:
function Admin_TextList1.onDblClick()
{
  
temp.toks params[1].tokenize(":");
  (@ 
"-Playerlist").openPMWindow(findplayer(temp.toks[0]), false);  

temp.toks[0] returns the account in this case. tested that, it works.
also tried changing temp.toks[0] to my account to see if it was a tokenize problem, still couldn't get it.

do you need to be using the scripted or something? I tried it again with the scripted playerlist, still nothing.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #2  
Old 08-13-2008, 06:39 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
Quote:
Originally Posted by Frankie View Post
blah, can't get it to work.

PHP Code:
function Admin_TextList1.onDblClick()
{
  
temp.toks params[1].tokenize(":");
  (@ 
"-Playerlist").openPMWindow(findplayer(temp.toks[0]), false);  

temp.toks[0] returns the account in this case. tested that, it works.
also tried changing temp.toks[0] to my account to see if it was a tokenize problem, still couldn't get it.

do you need to be using the scripted or something? I tried it again with the scripted playerlist, still nothing.
Try get the player object from allplayers[] or players[] ;o (Clientside)
__________________
Reply With Quote
  #3  
Old 08-13-2008, 06:45 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
Quote:
Originally Posted by Chompy View Post
Try get the player object from allplayers[] or players[] ;o (Clientside)
I don't understand what you mean :[

@ Crow - I tried it, sill nothing.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #4  
Old 08-13-2008, 06:47 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Frankie View Post
I don't understand what you mean :[

@ Crow - I tried it, sill nothing.
Seems I misinterpreted the playerlist code before, it is always expecting an array:
PHP Code:
(@ "-Playerlist").openPMWindow({findPlayer("Skyld")}, false); 
Reply With Quote
  #5  
Old 08-13-2008, 06:40 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
Try it without using findPlayer()? Also, Skyld, if people are not listed in the playerlist (e.g.: they are in your buddylist and you have the option to display all your buddies turned on), they don't seem to appear in allplayers.
Reply With Quote
  #6  
Old 08-13-2008, 06:43 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Crow View Post
Try it without using findPlayer()? Also, Skyld, if people are not listed in the playerlist (e.g.: they are in your buddylist and you have the option to display all your buddies turned on), they don't seem to appear in allplayers.
Well, they will only be in the allplayers[] array if you can see them in the playerlist because the playerlist is making requests to the serverlister to download buddies/servers/guilds only when they're needed.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:45 AM.


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