Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 23:36

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

Advertisement



[HELP]Wild Stats When Character Created

Discussion on [HELP]Wild Stats When Character Created within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2011
Posts: 30
Received Thanks: 7
[HELP]Wild Stats When Character Created

Hey Guys,

Got a little problem. When we create a character in game and level up the stats become all wonky. I.e: the kills are like 14k deaths like 9k and you can hit for a 15k crit.

Anyone know how to solve this? will be greatly appreciated.

Thanks.

Jet
[Admin]Jet is offline  
Old 10/01/2011, 12:58   #2
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
Check [dbo].[usp_Create_Char_R] in your PS_GameData. There is must some edited stuffs like you said. If you dont understand what it in the query post it here i will help you.
Xx.LaMin.xX is offline  
Thanks
1 User
Old 10/01/2011, 13:09   #3
 
elite*gold: 0
Join Date: Sep 2011
Posts: 30
Received Thanks: 7
Hey lamin thanks for you reply, i looked at the sp and stll cant figure it out so heres the query:

set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO


/****** Object: Stored Procedure dbo.usp_Create_Char_R Script Date: 2008-6-7 18:31:57 ******/

/****** Object: Stored Procedure dbo.usp_Create_Char_R Script Date: 2008/3/15 下午 05:25:51 ******/


/****** 偃羹: 盪濰 煎衛盪 dbo.usp_Create_Char_R 蝶觼董 陳瞼: 2006-05-26 螃 1:54:44 ******/

ALTER Proc [dbo].[usp_Create_Char_R]

@ServerID tinyint,
@UserID varchar(18),
@UserUID int,
@CharName varchar(50) ,

@Slot Tinyint,
@Family Tinyint,
@Grow Tinyint,
@Hair Tinyint,
@Face Tinyint,
@Size Tinyint,
@Job Tinyint,
@Sex Tinyint,
@Level Smallint,
@Statpoint Smallint,
@Skillpoint Smallint,
@Str Smallint,
@Dex Smallint,
@Rec Smallint,
@Int Smallint,
@Luc Smallint,
@Wis Smallint,
@Hp Smallint,
@Mp Smallint,
@Sp Smallint,
@Map Smallint,
@Dir Smallint,
@Exp Int,
@Money Int,
@Posx Real,
@Posy Real,
@Posz Real,
@Hg Smallint,
@Vg Smallint,
@Cg Tinyint,
@Og Tinyint,
@Ig Tinyint,


/* 罹晦梱雖 檣濠高 輿橫螳撿  */

/* SP 頂睡 霤褻辨 滲熱 */

@CharID int = 0,
@NameCnt tinyint = 0

AS

SET NOCOUNT ON

SET @CharName = LTRIM(RTRIM(@CharName))
SET @SkillPoint = 5



IF EXISTS ( SELECT CharID FROM Chars WHERE CharName=@CharName AND Del=0)
BEGIN
RETURN -2
END
ELSE
BEGIN
INSERT INTO Chars(ServerID,UserUID, CharName, Slot, Family, Grow,
Hair, Face, [Size], Job, Sex, [Level], StatPoint, SkillPoint,
[Str], Dex, Rec, [Int], Luc, Wis, HP, MP, SP, Map, Dir, [Exp], [Money],
PosX, PosY, Posz, Hg, Vg, Cg, Og, Ig, RenameCnt, RemainTime)

VALUES(@ServerID, @UserUID, @CharName, @Slot, @Family, @Grow,
@Hair, @Face, @Size, @Job, @Sex, @Level, @StatPoint, @SkillPoint,
@Str, @Dex, @Rec, @Int, @Luc, @Wis, @HP, @MP, @SP, @Map, @Dir, @Exp, @Money,
@PosX, @PosY, @Posz, @Hg, @Vg, @Cg, @Og, @Ig, 0,0)

IF ( @@ERROR<>0 )
RETURN -1

SET @CharID = IDENT_CURRENT('Chars')
RETURN @CharID
END


SET NOCOUNT OFF
[Admin]Jet is offline  
Old 10/01/2011, 16:15   #4
 
elite*gold: 50
Join Date: Sep 2011
Posts: 408
Received Thanks: 1,262
hmm did you clear PS_GameData? sometimes it makes bug like this. Just reattach it.
JuuF is offline  
Old 10/01/2011, 16:21   #5
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
Ok change this
Quote:
INSERT INTO Chars(ServerID,UserUID, CharName, Slot, Family, Grow,
Hair, Face, [Size], Job, ***, [Level], StatPoint, SkillPoint,
[Str], Dex, Rec, [Int], Luc, Wis, HP, MP, SP, Map, Dir, [Exp], [Money],
PosX, PosY, Posz, Hg, Vg, Cg, Og, Ig, RenameCnt, RemainTime)

VALUES(@ServerID, @UserUID, @CharName, @Slot, @Family, @Grow,
@Hair, @Face, @Size, @Job, @***, @Level, @StatPoint, @SkillPoint,
@Str, @Dex, @Rec, @Int, @Luc, @Wis, @HP, @MP, @SP, @Map, @Dir, @Exp, @Money,
@PosX, @PosY, @Posz, @Hg, @Vg, @Cg, @Og, @Ig, 0,0)
To This
Quote:
INSERT INTO Chars(ServerID,UserUID, CharName, Slot, Family, Grow,
Hair, Face, [Size], Job, ***, [Level], StatPoint, SkillPoint,
[Str], Dex, Rec, [Int], Luc, Wis, HP, MP, SP, Map, Dir, [Exp], [Money],
PosX, PosY, Posz, Hg, Vg, Cg, Og, Ig, RenameCnt, RemainTime,K1,K2)

VALUES(@ServerID, @UserUID, @CharName, @Slot, @Family, @Grow,
@Hair, @Face, @Size, @Job, @***, @Level, @StatPoint, @SkillPoint,
0, 0, 0, 0, 0, 0, @HP, @MP, @SP, @Map, @Dir, @Exp, @Money,
@PosX, @PosY, @Posz, @Hg, @Vg, @Cg, @Og, @Ig, 0,0,0,0)
Red color is what i changed.

Can you check if you have any triggers for dbo.Chars table? if yes post it on here.
Xx.LaMin.xX is offline  
Thanks
1 User
Old 10/01/2011, 17:53   #6
 
elite*gold: 0
Join Date: Sep 2011
Posts: 30
Received Thanks: 7
thanks Lamin and i dont have any triggers for the table
[Admin]Jet is offline  
Old 10/01/2011, 18:38   #7
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
Okay good then just add the one i edited. It will work like a charm . Good luck my friend.
Xx.LaMin.xX is offline  
Thanks
1 User
Old 10/01/2011, 20:07   #8
 
elite*gold: 0
Join Date: Sep 2011
Posts: 30
Received Thanks: 7
thanks bro, i got another small question. Were getting dc'ed fter login but not sure why any ideas?
[Admin]Jet is offline  
Old 10/01/2011, 23:00   #9
 
elite*gold: 0
Join Date: Jul 2011
Posts: 51
Received Thanks: 27
Quote:
Originally Posted by Xx.LaMin.xX View Post
Ok change this


To This


Red color is what i changed.

Can you check if you have any triggers for dbo.Chars table? if yes post it on here.
One question Lamin, should createcharR always look like this or just in this specific case only? mine looks like the one that Jet has. just a thought.
cantdoit666 is offline  
Old 10/02/2011, 10:47   #10
 
[Admin]Crip's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 83
Received Thanks: 71
Thank you Lamin!
[Admin]Crip is offline  
Old 10/02/2011, 10:59   #11
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
@Jet: can you please post the log from server? so i can see it.

@cantdoit666: Yes that is standard query. But sometime you have bugs on server so you must rewrite some queries by your own. =)

and all you dont spam the thanks XD Mod or Guardian will warn you. Just hit the Thanks button. =)
Xx.LaMin.xX is offline  
Thanks
2 Users
Old 10/02/2011, 20:17   #12
 
elite*gold: 0
Join Date: Jul 2011
Posts: 51
Received Thanks: 27
Well Ive have a bug where kills just start decreasing for players at a certain rate, until i restarted the server and then it went away. and also a bug where bosses ( sera angel and some GRB ones ) respawn 10 seconds after death.. im wondering if i fix that quiry like you put it will only help and not hurt right?
cantdoit666 is offline  
Old 10/02/2011, 22:01   #13
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
Considering that Stored Procedure is for Created Chars only.. it wont affect your bosses atall.
viper4513 is offline  
Old 10/02/2011, 22:05   #14
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
about those GRB bosses or mobs are DB side. You need to fix the mobs table or try to get better DB. I had it before (1,5 year ago).. i think i used new DB . It worked fine after that. So try to get better DB somewhere on this site :P
Xx.LaMin.xX is offline  
Thanks
1 User
Old 10/02/2011, 22:59   #15
 
elite*gold: 0
Join Date: Jul 2011
Posts: 51
Received Thanks: 27
Quote:
Originally Posted by viper4513 View Post
Considering that Stored Procedure is for Created Chars only.. it wont affect your bosses atall.
Hence why i said "and also"
and thanks lamin for the answers. this helped.
cantdoit666 is offline  
Reply


Similar Threads Similar Threads
Stopping ninjas being created in the character screen
04/24/2010 - CO2 Private Server - 7 Replies
Ok so, Everything thing I try in CharacterMaking.cs ( assuming that's where the code should go ), does not work I am trying to make it so like when you click ninja and type in a name then click create character it will say "Ninjas are disabled" or even better when you click ninja it says that Any help ?
Ecsro Character Stats
01/11/2009 - SRO Private Server - 4 Replies
Hey, anybody know another site like this with more information of the Character? *edited* Cya
Code Character Stats (str, agi, etc) in a CO Private Server
05/01/2008 - Conquer Online 2 - 0 Replies
.



All times are GMT +1. The time now is 23:40.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.