Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[RELEASE] CHS C9 Server Files

Status
Not open for further replies.
Experienced Elementalist
Joined
Jan 21, 2015
Messages
235
Reaction score
202
about the guild mark (guild crest) i managed to get it work , and like what i though there is someone (admin/GM) who must accept any new guild crest (stupid system -_-) , if anyone know any way so the guild crest accepted automatically it will be better :)


if you requested a guild crest excute this query to get it work BUT you need to restart the server
you need to modify the guild ID here instead of 1 put your guild id
declare @GuildID int =1

update C9World.game.TblGuildMark set cGuildMark=
(select cGuildMark from C9World.game.TblGuildMarkJudge where cGuildNo=@GuildID)
where cGuildNo=@GuildID

update C9World.game.TblGuildMarkJudge set
cGuildMarkJudgeState=3
where cGuildNo=@GuildID


cGuildMarkJudgeState =1 (requested)
cGuildMarkJudgeState =2 (rejected)
cGuildMarkJudgeState =3 (accepted)
cGuildMark= hex representation of an image binary data
 
Last edited:
Experienced Elementalist
Joined
Sep 13, 2014
Messages
232
Reaction score
86
for auto accept

Code:
USE [C9World]
GO
/****** Object:  StoredProcedure [Game].[UspSetGuildMarkState]    Script Date: 12/16/2015 11:02:09 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/******************************************************************************
**		Name: UspSetGuildMarkState
**		Desc: 길드마크 심의 테이블 등록
**
**		Auth: 채석현
**		Date: 20111024
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------	--------			---------------------------------------
*******************************************************************************/
ALTER PROCEDURE [Game].[UspSetGuildMarkState]
	@pGuildNo			BIGINT,
	@pGuildMark			BINARY(4096),
	@pGuildMarkState	TINYINT
AS
	SET NOCOUNT ON			-- 설명 : 결과 레코드 셋을 반환 안 시킨다.
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
	
	--- 변수 선언
	DECLARE [USER=2000075974]Aer[/USER]rNo INT,
			@aRowCnt INT


	--- 변수 초기화 
	SELECT [USER=2000075974]Aer[/USER]rNo = 0, @aRowCnt = 0   -- 한줄에 초기화 
	
	-- 길드 존재하는지 확인
	IF NOT EXISTS (
		SELECT *
		FROM Game.TblGuildBase
		WHERE cGuildNo = @pGuildNo
	)
	BEGIN
		SET [USER=2000075974]Aer[/USER]rNo = 1					-- 존재하지 않는 길드
	END
	ELSE
	BEGIN
		IF EXISTS (
			SELECT *
			FROM Game.TblGuildMarkJudge
			WHERE cGuildNo = @pGuildNo
		)
		BEGIN
			UPDATE Game.TblGuildMarkJudge
			SET cGuildMarkJudge = @pGuildMark, cGuildMarkJudgeState = 3
			WHERE cGuildNo = @pGuildNo




		IF EXISTS (
			SELECT *
			FROM Game.TblGuildMark
			WHERE cGuildNo = @pGuildNo
		)
		BEGIN
			UPDATE Game.TblGuildMark
			SET cGuildMark = @pGuildMark
			WHERE cGuildNo = @pGuildNo
		END
		ELSE
		BEGIN
			INSERT INTO Game.TblGuildMark (cGuildNo, cGuildMark)
			VALUES (@pGuildNo, @pGuildMark)
		END
					
		END
		-- 아무것도 없는 상태라면
		ELSE
		BEGIN
			INSERT INTO Game.TblGuildMarkJudge (cGuildNo, cGuildMarkJudge, cGuildMarkJudgeState)
			VALUES (@pGuildNo, @pGuildMark, 3)
			
			
		IF EXISTS (
			SELECT *
			FROM Game.TblGuildMark
			WHERE cGuildNo = @pGuildNo
		)
		BEGIN
			UPDATE Game.TblGuildMark
			SET cGuildMark = @pGuildMark
			WHERE cGuildNo = @pGuildNo
		END
		ELSE
		BEGIN
			INSERT INTO Game.TblGuildMark (cGuildNo, cGuildMark)
			VALUES (@pGuildNo, @pGuildMark)
		END
		END


		SELECT [USER=2000075974]Aer[/USER]rNo = @@Error, @aRowCnt = @@RowCount
		IF (@aRowCnt <> 1)
			SET [USER=2000075974]Aer[/USER]rNo = 3			-- DB오류
	END
	
	RETURN  [USER=2000075974]Aer[/USER]rNo)			-- 0이면 성공
 
Newbie Spellweaver
Joined
Jun 26, 2007
Messages
95
Reaction score
10
about the guild mark (guild crest) i managed to get it work , and like what i though there is someone (admin/GM) who must accept any new guild crest (stupid system -_-) , if anyone know any way so the guild crest accepted automatically it will be better :)

Yes, you're right, and I think that the game administrator must drop the panel reports. Such as - Complaint to the player, change Guild Mark, and other messages from the server. Visually - C9GAMESTR_ADMINTOOL. There must be a command to run C9.exe mode ADMINTOOL

Regards
 
Newbie Spellweaver
Joined
Jun 12, 2014
Messages
19
Reaction score
1
im haveing trouble getting it to work on my external ip can sum 1 please put a detailed tut to make it on external ip so my frends can play with me thanx i have static ip and stuff i just need to no where and how to edit it i tryed editing Public ip= but that dident work wouldent login i tryed changeing every 127.0.0.1 to my external ip but that made the server not start
 
Experienced Elementalist
Joined
Jan 21, 2015
Messages
235
Reaction score
202
Yes, you're right, and I think that the game administrator must drop the panel reports. Such as - Complaint to the player, change Guild Mark, and other messages from the server. Visually - C9GAMESTR_ADMINTOOL. There must be a command to run C9.exe mode ADMINTOOL

Regards
yup and this command is /admin but to use it u need todo something with grant and role from c9services.ADMIN . ....
how it work to get full administration no one know until now :)



for auto accept

Code:
USE [C9World]
GO
/****** Object:  StoredProcedure [Game].[UspSetGuildMarkState]    Script Date: 12/16/2015 11:02:09 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/******************************************************************************
**        Name: UspSetGuildMarkState
**        Desc: 길드마크 심의 테이블 등록
**
**        Auth: 채석현
**        Date: 20111024
*******************************************************************************
**        Change History
*******************************************************************************
**        Date:        Author:                Description:
**        --------    --------            ---------------------------------------
*******************************************************************************/
ALTER PROCEDURE [Game].[UspSetGuildMarkState]
    @pGuildNo            BIGINT,
    @pGuildMark            BINARY(4096),
    @pGuildMarkState    TINYINT
AS
    SET NOCOUNT ON            -- 설명 : 결과 레코드 셋을 반환 안 시킨다.
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
    
    --- 변수 선언
    DECLARE @[I][B][URL="https://forum.ragezone.com/members/2000075974.html"]Aer[/URL][/B][/I]rNo INT,
            @aRowCnt INT


    --- 변수 초기화 
    SELECT @[I][B][URL="https://forum.ragezone.com/members/2000075974.html"]Aer[/URL][/B][/I]rNo = 0, @aRowCnt = 0   -- 한줄에 초기화 
    
    -- 길드 존재하는지 확인
    IF NOT EXISTS (
        SELECT *
        FROM Game.TblGuildBase
        WHERE cGuildNo = @pGuildNo
    )
    BEGIN
        SET @[I][B][URL="https://forum.ragezone.com/members/2000075974.html"]Aer[/URL][/B][/I]rNo = 1                    -- 존재하지 않는 길드
    END
    ELSE
    BEGIN
        IF EXISTS (
            SELECT *
            FROM Game.TblGuildMarkJudge
            WHERE cGuildNo = @pGuildNo
        )
        BEGIN
            UPDATE Game.TblGuildMarkJudge
            SET cGuildMarkJudge = @pGuildMark, cGuildMarkJudgeState = 3
            WHERE cGuildNo = @pGuildNo




        IF EXISTS (
            SELECT *
            FROM Game.TblGuildMark
            WHERE cGuildNo = @pGuildNo
        )
        BEGIN
            UPDATE Game.TblGuildMark
            SET cGuildMark = @pGuildMark
            WHERE cGuildNo = @pGuildNo
        END
        ELSE
        BEGIN
            INSERT INTO Game.TblGuildMark (cGuildNo, cGuildMark)
            VALUES (@pGuildNo, @pGuildMark)
        END
                    
        END
        -- 아무것도 없는 상태라면
        ELSE
        BEGIN
            INSERT INTO Game.TblGuildMarkJudge (cGuildNo, cGuildMarkJudge, cGuildMarkJudgeState)
            VALUES (@pGuildNo, @pGuildMark, 3)
            
            
        IF EXISTS (
            SELECT *
            FROM Game.TblGuildMark
            WHERE cGuildNo = @pGuildNo
        )
        BEGIN
            UPDATE Game.TblGuildMark
            SET cGuildMark = @pGuildMark
            WHERE cGuildNo = @pGuildNo
        END
        ELSE
        BEGIN
            INSERT INTO Game.TblGuildMark (cGuildNo, cGuildMark)
            VALUES (@pGuildNo, @pGuildMark)
        END
        END


        SELECT @[I][B][URL="https://forum.ragezone.com/members/2000075974.html"]Aer[/URL][/B][/I]rNo = @@Error, @aRowCnt = @@RowCount
        IF (@aRowCnt <> 1)
            SET @[I][B][URL="https://forum.ragezone.com/members/2000075974.html"]Aer[/URL][/B][/I]rNo = 3            -- DB오류
    END
    
    RETURN  @[I][B][URL="https://forum.ragezone.com/members/2000075974.html"]Aer[/URL][/B][/I]rNo)            -- 0이면 성공
thanks , i knew it was from this method but i didint know its from return , gonna test it later and give the result :)



im haveing trouble getting it to work on my external ip can sum 1 please put a detailed tut to make it on external ip so my frends can play with me thanx i have static ip and stuff i just need to no where and how to edit it i tryed editing Public ip= but that dident work wouldent login i tryed changeing every 127.0.0.1 to my external ip but that made the server not start

have u tried to
change every ip to public
except the ConnectionDB
?

cuz like this worked for me using HAMACHI
 
Newbie Spellweaver
Joined
Jun 12, 2014
Messages
19
Reaction score
1
i tryed that with hamatchi and it worked yes but i wanna use my external IP since i ahve a static one is there some ports im missing to ford or sumthing ?
 
Last edited:
Experienced Elementalist
Joined
Jan 21, 2015
Messages
235
Reaction score
202
@xlmansox
the code for auto accept guild crest does not work , did it worked with you ?!!
 
Newbie Spellweaver
Joined
Jun 12, 2014
Messages
19
Reaction score
1
Thats is true. LastFun alredy conected in my home server.

The magic is put you root gear in bridge mode.

Change the ip in sql conection to your external like this




change all 127.0.0.1 from server config to external ip.

change your start.bat game ip to extenal ip and have fun.

Dont forget your root need to be in Bridge mode.

Respect to @lastfun


i dont quite understand what you mean by The magic is put you root gear in bridge mode can sum 1 please explain how to do this ?
 
Newbie Spellweaver
Joined
Dec 18, 2015
Messages
5
Reaction score
0
i have this error
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Jun 26, 2007
Messages
95
Reaction score
10
i have this error


You change only PublicIP= , SecondIP= (IP of PC with C9 Server ) in ServerBaseConfig.dat ( LMSConfig.DAT ) for connection from other PC. Other configuration Address= , IP= in C9 Server must be 127.0.0.1 ( Address= , IP= )....

Regards.
 
Experienced Elementalist
Joined
Jan 21, 2015
Messages
235
Reaction score
202
try these codes hehe, awesome :3

{Summons Scroll}

/itemkey 3390 1
/itemkey 3391 1
/itemkey 3392 1
/itemkey 3990 1
/itemkey 3991 1
/itemkey 3992 1
/itemkey 3993 1
/itemkey 3994 1
/itemkey 3995 1
 
Status
Not open for further replies.
Back
Top