Hi guys,
Anyone can point me where to quit the current guild of the account using Script?
I formulated a procedure it will update it as Del from the guild but when I login still the guild not removed.
here is my simple procedure.
BEGIN
--update del = 1 and set leave date
UPDATE PS_GameData.dbo.GuildChars SET Del = 1, LeaveDate = GETDATE()
WHERE CharID IN (SELECT CharID FROM PS_GameData.dbo.Chars WHERE UserID=@UserID)
AND LeaveDate IS NULL
--update total guild members
UPDATE PS_GameData.dbo.Guilds SET TotalCount=TotalCount-1
WHERE GuildID IN (Select GuildID From PS_GameData.dbo.GuildChars where CharID IN (SELECT CharID FROM PS_GameData.dbo.Chars WHERE UserID=@UserID))
END






