| Prev | Next |
Members of each guild are grouped within ranks. There are three types of ranks - leader, vice-leader and regular member. Players have assigned guild ranks which have assigned guild with it. Player is member of that guild, to which his/her rank is assigned. Here is an example solution to list members in oryginal Tibia-like way:
Mechanism known from oryginal Tibia to put new members into guild is based on invitations. However - OTServ and it's database doesn't provide such featue as it is quite abstract logic which has nothing to do with it's core code. So basicly you would need to write everything completly on your own. But in POT you can bind your logic layer with action driver - object which will handle guild operations and use your code to execute invitations.
Guild class contains methods to handle invitations: listInvites(), invite(), deleteInvite() and acceptInvite(). However remember, that those are only bindings for abstract logic - you have to implement driver for them. Here is an example class that will handle invitations:
OTS_Guild class provides bindings for two kinds of actions - invitations and membership requests. They are both similar, they only differs direction in which actions are taken. Invitations are initiated by guild leaders to give player possiblity to join the guild. Requests are sent by player and after being accepted by any of leaders player is included into the guild.
| Prev | Up | Next |
| Players | DAO objects | List objects |