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 09-05-2011, 01:31 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Getting rights from global guilds?

Is it possible to see what rights and rank people have in global guilds?
Reply With Quote
  #2  
Old 09-05-2011, 02:24 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Hmmm it could be possible to add some sendtext/onReceiveText thing for that, would need what exactly you need (like a function prototype)
Reply With Quote
  #3  
Old 09-05-2011, 03:06 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
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
Reply With Quote
  #4  
Old 09-05-2011, 03:16 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Mark Sir Link View Post
TServerPlayer.getGuildRank() - return int for current guild
TServerPlayer.getGuildRankName() - return string for current guild
TServerPlayer.getGuildNick() - return string for current guild
Why for the current guild? Why not just have them accept the guild as a parameter?

Also,

TServerPlayer.getGuilds() - returns array of the names of the player's guilds
__________________
Reply With Quote
  #5  
Old 09-05-2011, 03:22 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Mark Sir Link View Post
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
s
These already exist in sendtext() form I think. You'd have to do a little searching though.
Reply With Quote
  #6  
Old 09-05-2011, 03:43 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by cbk1994 View Post
Why for the current guild? Why not just have them accept the guild as a parameter?

Also,

TServerPlayer.getGuilds() - returns array of the names of the player's guilds
I was thinking the same thing but ideally would like it if it defaulted to the current guild if the parameter is null.

@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:
sendText("lister""checkinguild", {"Mark Sir Link""Azite"}); 
returns
PHP Code:
"Mark Sir Link",Azite,Kevin,10 
Reply With Quote
  #7  
Old 09-05-2011, 07:45 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
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
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 01:31 AM.


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