Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Selected Players in Internal V5 Playerlist (https://forums.graalonline.com/forums/showthread.php?t=134265785)

ffcmike 02-20-2012 12:07 AM

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.

MattKan 02-20-2012 04:31 AM

Hint: Don't bother developing for v5 and force Classic players to use v6.

ffcmike 02-20-2012 07:07 AM

Quote:

Originally Posted by MattKan (Post 1685128)
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.

ffcmike 09-10-2012 01:11 AM

Quote:

Originally Posted by ffcmike (Post 1685087)
when testing the internal V5 playerlist it appears the global variable selectedlistplayers doesn't work.

Bump.


All times are GMT +2. The time now is 02:56 AM.

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