[Release] Guild Vice-Master

07/30/2016 16:24 AceSpace#1
Hi,

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
You can un-comment the notification part and replace it with your own clientless bot's.
07/31/2016 01:31 EdwardTeach+-#2
I appreciate your release,
but it makes no sense.
07/31/2016 04:17 B1Q#3
Quote:
Originally Posted by 哈野浅哈 View Post
I appreciate your release,
but it makes no sense.
YOU make no sense
07/31/2016 22:35 EdwardTeach+-#4
Quote:
Originally Posted by hazemooking View Post
YOU make no sense
you too
07/31/2016 23:57 AceSpace#5
Quote:
Originally Posted by 哈野浅哈 View Post
I appreciate your release,
but it makes no sense.
It makes sense for anyone who wants such a feature.
08/01/2016 12:23 ILowe#6
image?

What makes it work?
08/01/2016 17:16 Bizzyyyyy#7
The vize guild leader wont be able to give grant names, register for FW or do any other important task. So its basically really useless or not?
08/01/2016 17:38 AceSpace#8
Quote:
Originally Posted by Bizzyyyyy View Post
The vize guild leader wont be able to give grant names, register for FW or do any other important task. So its basically really useless or not?
It is really useless though could have some uses such as acting as the master/commander in fortress war and commanding people around when the master is not available and I believe having (Commander at fortress war) should give all the npcs authorities in FW which is pretty good. Also Vice-master guild title is fancy looking sooo it has it's own uses. I'm sure some servers will have use for this only if they fixed the GS required restart issue.

Oh and ye, i didn't try registering for fortress so i don't know.

Quote:
Originally Posted by ILowe View Post
image?

What makes it work?
Read the thread?
About image, well I'm kinda lazy at the moment soo sorry..