![]() |
Getting rights from global guilds?
Is it possible to see what rights and rank people have in global guilds?
|
Hmmm it could be possible to add some sendtext/onReceiveText thing for that, would need what exactly you need (like a function prototype)
|
if you're going so far as to ask for a function prototype, would be neat to have
TServerPlayer.isInGuild(str) - return boolean TServerPlayer.getGuildRank() - return int for current guild TServerPlayer.getGuildRankName() - return string for current guild TServerPlayer.getGuildNick() - return string for current guild being able to retrieve rights seems a bit dubious unless functions or sendtext functionality is added to allow for players to add guild members from within the game but exposing that seems sort of dangerous |
Quote:
Also, TServerPlayer.getGuilds() - returns array of the names of the player's guilds |
Quote:
|
Quote:
@Dusty, I think those all exist in the sendtext("lister", "checkinguild") return, but as far as getting rank goes, you can only get the integer rank value and not the string name for it. IE, PHP Code:
PHP Code:
|
Also, on the topic of adding things to gettext/sendtext/onreceivetext, can an event be added for script updates similar to onLevelFileUpdated?
In lieu of being able to explicitly state what scripts can execute what commands, this would be useful at the least for detecting any sort of behavior that servers might want to prevent |
| All times are GMT +2. The time now is 11:54 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.