Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-20-2012, 12:07 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Selected Players in Internal V5 Playerlist

I've been working on a certain custom playerlist right click entry, which works absolutely fine in V6, however when testing the internal V5 playerlist it appears the global variable selectedlistplayers doesn't work.

Is there something I'm missing?
If not, it might be good to fix this considering the internal V5 playerlist is scripted rather than built in to the client.
In the mean time, to retrieve a selected player's account name I'm resorting to the rather hackish method of:

PHP Code:
if(graalversion == 5.12){
  
temp.pl findplayer(PlayerList_List.rows[PlayerList_List.getselectedrow()].hint.substring(9, -1));
}
else{
  
temp.pl selectedlistplayers[0];

I'm aware I could just use PlayerList_List.getselectedtext() and loop through all players to compare their nick, but that seems excessive.
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:32 AM.


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