The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic support for guild alliances
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #1
Basic support for guild alliances
Actually we have only a very basic support for alliances, everything we have is 2 guildstone functions: WEALLIANCE and THEYALLIANCE. The idea is improve this support with everything we need, adding an internal basic support to allow us use it on any guild system
PS: everything here is just a initial idea, there's many things that can be improved Tongue

1) The alliance engine:
An alliance is a named group of guilds, with a guild leader. So the engine needs 3 parts:
-something to group guilds
-something to select the guild leader
-something to rename the alliance

To make this we need something like a basic LIST clone:
SERV.ALLIANCE.x = guild leader UID, alliance name
SERV.ALLIANCE.0 = 0400123, my alliance name
SERV.ALLIANCE.1 = 0400324, lol
SERV.ALLIANCE.2 = 0400418, something

To add/remove guilds from alliances, guildstones will have a new ALLIANCE property, using ALLIANCE=2 will add it on alliance 2 and ALLIANCE="" (or -1) will remove the guild from the alliance. All guildstones with ALLIANCE=2 will be on the same alliance "something", and the guild UID 0400418 is the alliance leader

Or the alliance guild list can be stored directly on the list instead a guild property, but it wont be too mutch optimized since sphere will need to read/search the list too many times

2) New function ISALLY: the same as ISENEMY, it will return 1 if both guilds are in the same alliance, or 0 if not
05-19-2014 10:46 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
SukmiLongHeart
Apprentice
*

Posts: 43
Likes Given: 13
Likes Received: 5 in 3 posts
Joined: Sep 2013
Reputation: 0

Uberon

Post: #2
RE: Basic support for guild alliances
I for one would love a "guild.tag"...

grts

[Image: Bannergateway.png]
05-29-2014 05:52 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #3
RE: Basic support for guild alliances
Coruja, the aliance system was allready implemented on sphere? i didn't find any information about...

Thanks

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
07-12-2015 11:10 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)