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
  #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
  #2  
Old 02-20-2012, 04:31 AM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
Hint: Don't bother developing for v5 and force Classic players to use v6.
Reply With Quote
  #3  
Old 02-20-2012, 07: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
Quote:
Originally Posted by MattKan View Post
Hint: Don't bother developing for v5 and force Classic players to use v6.
While I personally use V6, and am not overly bothered with the appearance of the playerlist for example, some players old and new still claim to have bad experiences with it.

Nor am I aware of any new features of such calibre that I am desperate to implement them, whereas the support of UDP offered by V5 is of importance to a traditional sword combat server. Therefore I don't believe a forced usage of V6 would be of significant benefit to the server.
Reply With Quote
  #4  
Old 09-10-2012, 01:11 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
Quote:
Originally Posted by ffcmike View Post
when testing the internal V5 playerlist it appears the global variable selectedlistplayers doesn't work.
Bump.
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 06:54 PM.


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