I decided to release this, it has positives and cons so use it on your own risk.
.How to use
Send a message from your message box in (U) with:
Subject: Vice-Master
Sender: Guild Master (must be)
Message(Contains): CharName which is supposed to be appointed for Vice-Master Position
.Info
Vice-Master Information (Read well..):
Requires GS restart to apply, could fuck a lot of stuff and The rights aren't really that useful. (Ability to change Guild Notice,
regularly getting all the authorities including "Commander at fortress war" and title of 'Vice-Master' in guild UI(Press U), but not being able to give a grant name,
not being able to give positions @ fortress or change emblems,
nor give or take rights)
There is one more bad side, Master won't be able to kick him until next restart. But master can remove his authorities.
It's good, yes. but requiring GS restart is the only bad side
Note: This requires Gamserver restart to show ingame that's why it ain't good to use cause it might cause some problems.
.How to apply
Put this in SRO_VT_SHARD => _Memo_Add ::
Code:
/* Written by: Ace/Locklyon Subject: Vice-Master Sender: Guild Master Message(Contains): CharName which is supposed to be appointed for Vice-Master Position Note: This requires Gamserver restart to show ingame that's why it ain't good to use cause it might cause some problems. Vice-Master Information (Read well..): Requires GS restart to apply, could fuck a lot of stuff and The rights aren't really that useful. (Ability to change Guild Notice, regularly getting all the authorities including "Commander at fortress war" and title of 'Vice-Master' in guild UI(Press U), but not being able to give a grant name, not being able to give positions @ fortress or change emblems, nor give or take rights) There is one more bad side effectv, Master won't be able to kick him until next restart. But master can remove his authorities. It's good, yes. but requiring GS restart is the only bad side*/ -- If Subject = Vice-Master IF @TargetCharName = 'Vice-Master' BEGIN DECLARE @GuildID INT = (SELECT GuildID FROM _GuildMember WHERE CharName = @SenderCharName), @GuildMaster VARCHAR(32) = (SELECT TOP 1 Charname FROM _GuildMember WHERE GuildID = @GuildID AND SiegeAuthority = 1 ORDER BY JoinDate ASC), @GuildName VARCHAR(32) = (SELECT Name FROM _Guild WHERE ID = @GuildID) -- Checking if the sender is the Guild Master & message contains a charname which exists as a member in the guild IF @SenderCharName = @GuildMaster AND @Message IN (SELECT Charname FROM _GuildMember WHERE GuildID = @GuildID) BEGIN /* Removing the current Vice-Master */ UPDATE _GuildMember SET Permission = 10, MemberClass = 0 WHERE CharName != @GuildMaster AND Permission = -1 AND GuildID = @GuildID /* Assignning the Vice-Master */ UPDATE _GuildMember SET Permission = -1, MemberClass = 5 WHERE CharName = @Message AND GuildID = @GuildID /* Notification part */ --INSERT INTO SKIP.._Notification --SELECT 3,'The player: ' + @Message + ' is now officially the vice-master of your guild.',@GuildMaster --INSERT INTO SKIP.._Notification --SELECT 3,'Congratulations, you''re officially the vice-master of [' + @GuildName + '].',@TargetCharName END ELSE BEGIN -- If the user doesn't exist, reply with a PM saying 'the user is not in guild'.. /*INSERT INTO Sage.._Notification SELECT 3,'The user is not in the guild',@GuildMaster,'sage'*/ RETURN; END END






