Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-31-2006, 02:26 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Guild Object for Scripting

Let's face it, there is almost no point to being in a guild anymore. However, there does exist a database for guilds, so there can be many upsides for scripters being able to access that guild database.

I think what would be the best way to make guilds gain a meaning, would be to create a guild object for scripting. Such an object would be most useful if similar to the player object, and also, if the guild was removed, all of it's stats could be wiped as well without the server having to make their own cleaning routine.

An example for such usage:

player.guild.clientr.bank_funds=money
player.guild.client.uniform=body,colors,hat

Also, it could have pre-existing vars
player.guild.ranks[0] could list the leader of the guild
player.guild.ranks[1] could list everyone in the level below the guild
player.guild.ranks[0].name could return the name of the leader's rank.
And also other information given in the DB
player.guild.status
player.guild.members (list of all members of guild)
player.guild.members.size() (for number of members)
player.guild.est
player.guild.fullname
player.guild.email
player.guild.allies
player.guild.enemies
player.guild.charter
player.guild.website
player.guild.worlds
player.guild.activity
player.guild.rating

More questionably:
player.guild.timejoined (of a specific player)
player.guild.lastontag (of a specific player)

guilds array could list the active guilds in the level
allguilds array could list the active guilds on the server
player.guilds array could contain a list of guilds the player is in (and also give access to their flags).

Last edited by jake13jake; 05-31-2006 at 03:17 AM..
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 09:38 AM.


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