Register for your free account! | Forgot your password?

You last visited: Today at 15:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Guild level 5 after create

Discussion on Guild level 5 after create within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
sonzenbi's Avatar
 
elite*gold: 0
Join Date: Feb 2017
Posts: 188
Received Thanks: 120
Guild level 5 after create

I remember someone asking about this
Extremely easy
Open Proc SRO_VT_SHARD.._Guild_Create
insert _Guild(Name, Lvl, GatheredSP, FoundationDate,Alliance,Booty) values(@GuildName, 1, 0, @FoundationDate,0,0)
Change to
insert _Guild(Name, Lvl, GatheredSP, FoundationDate,Alliance,Booty) values(@GuildName, 5, 0, @FoundationDate,0,0)
FULL PROC
Code:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_Guild_Create]    Script Date: 12/3/2019 1:13:52 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


--
ALTER PROCEDURE [dbo].[_Guild_Create]
	@GuildName	varchar(64),
	@CreaterID	int
as
	if (exists (select id from _Guild where Name = @GuildName))
	begin
		return -1000
	end
	if (exists (select CharID from _GuildMember where CharID = @CreaterID))
	begin
		return -1001
	end
begin transaction
	
	declare @GuildID	int
	declare @FoundationDate  smalldatetime
	
	set @FoundationDate = GetDate()
	insert _Guild(Name, Lvl, GatheredSP, FoundationDate,Alliance,Booty) values(@GuildName, 5, 0, @FoundationDate,0,0)
	set @GuildID = @@identity
	
	if (@@error <> 0 or @@rowcount = 0 or @GuildID = 0)
	begin
		rollback transaction
		return -5
	end

	--길드장은 퍼미션이 0xffffffff !!
	declare @rvalue int
	exec @rvalue = _Guild_FnAddMember @GuildID, @CreaterID, 0, @FoundationDate,0xffffffff
	if (@@error <> 0 or @rvalue <= 0)
	begin
		rollback transaction
		return @rvalue
	end
	
	-- 길드 창고를 생성하자
	exec @rvalue = _Guild_CreateChest_NoTX @GuildID
	if (@@error <> 0 or @rvalue <= 0)
	begin
		rollback transaction
		return @rvalue
	end

commit transaction
	return @GuildID
Hope it helpful
sonzenbi is offline  
Thanks
5 Users
Old 12/02/2019, 18:57   #2
 
elite*gold: 0
Join Date: Aug 2019
Posts: 15
Received Thanks: 0
Very good, boy
silkroadntc is offline  
Old 12/02/2019, 22:37   #3
 
Genoxid's Avatar
 
elite*gold: 72
Join Date: May 2016
Posts: 313
Received Thanks: 64
nice query where i have to put it?
Genoxid is offline  
Old 12/03/2019, 14:00   #4
 
elite*gold: 0
Join Date: Oct 2012
Posts: 145
Received Thanks: 31
Quote:
Originally Posted by Genoxid View Post
nice query where i have to put it?
It's not a query bro, It's SP modification..
chipno0p is offline  
Old 12/03/2019, 17:51   #5
 
elite*gold: 0
Join Date: Feb 2012
Posts: 551
Received Thanks: 46
Quote:
Originally Posted by Genoxid View Post
nice query where i have to put it?
thebigbody is offline  
Old 12/13/2019, 17:09   #6
 
C 9's Avatar
 
elite*gold: 0
Join Date: Dec 2019
Posts: 45
Received Thanks: 6
its not a query that's a stored procedure if you're going to use it, will replace the current procedure so query on SRO_VT_SHARD...
C 9 is offline  
Old 12/17/2019, 23:27   #7
 
elite*gold: 0
Join Date: Apr 2019
Posts: 276
Received Thanks: 78
easy but might be very useful for some people.
Thanks
_SGA_ is offline  
Reply

Tags
psro


Similar Threads Similar Threads
is possible to create a hack to create items +7
07/14/2008 - Dekaron - 25 Replies
How can I create a hack to create items +7



All times are GMT +1. The time now is 15:10.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.