|
You last visited: Today at 17:10
Advertisement
Everything about sro files / coding / reversing
Discussion on Everything about sro files / coding / reversing within the SRO Private Server forum part of the Silkroad Online category.
05/23/2012, 14:16
|
#61
|
elite*gold: 0
Join Date: Jan 2012
Posts: 1,867
Received Thanks: 1,091
|
Quote:
Originally Posted by tamer15
so i have error based in blackrogue files if u can help me !
and that's it :
when i need to login it shows C8 error and content iD in DB and ipinput 22
and if i downloaded hotspot shield the C8 error disappear but it stuck's on requesting user coniform ! any help ?
|
Use DVISIONINFO EDITOR to import your divisioninfo.txt into your media.pk2.
simply , c8 error comes from the media.pk2 , as i know !
|
|
|
05/23/2012, 14:38
|
#62
|
elite*gold: 0
Join Date: May 2012
Posts: 161
Received Thanks: 68
|
Quote:
Originally Posted by tamer15
so i have error based in blackrogue files if u can help me !
and that's it :
when i need to login it shows C8 error and content iD in DB and ipinput 22
and if i downloaded hotspot shield the C8 error disappear but it stuck's on requesting user coniform ! any help ?
|
Change content id to 22 on client and database.
|
|
|
05/23/2012, 14:43
|
#63
|
elite*gold: 0
Join Date: Jan 2012
Posts: 1,867
Received Thanks: 1,091
|
Quote:
Originally Posted by IceDragon*
Change content id to 22 on client and database.
|
Quote:
|
and content iD in DB and ipinput 22
|
He noticed it already . The problem from divisioninfo.txt , happen to me once!
|
|
|
05/24/2012, 06:26
|
#64
|
elite*gold: 0
Join Date: May 2011
Posts: 425
Received Thanks: 25
|
Quote:
Originally Posted by •ᵔBeGodOfWarᵔ•
He noticed it already . The problem from divisioninfo.txt , happen to me once!
|
yep thank you, solved . the problem was from divisioninfo.txt
but why im getting that ?
and ODBC is fine , and DBconnect , and sure certification
so what's the error im using br files from chernobyl ...
|
|
|
05/24/2012, 06:58
|
#65
|
elite*gold: 0
Join Date: Nov 2009
Posts: 1,163
Received Thanks: 1,161
|
Check your _AddNewChar tab,
Must be an error on the starting level, and/or the starting EXP / sp etc.
|
|
|
05/24/2012, 09:31
|
#66
|
elite*gold: 0
Join Date: Nov 2007
Posts: 297
Received Thanks: 21
|
sry but i got 2 dumb problems  !
can u exactly point me to the reversing section of sro client and the pk2 files !
And how hard is it to make a server on hamachi just to play with a few friends and my bro ??
|
|
|
05/24/2012, 12:48
|
#67
|
elite*gold: 0
Join Date: May 2011
Posts: 425
Received Thanks: 25
|
Quote:
Originally Posted by ღ ∂ Ropp
Check your _AddNewChar tab,
Must be an error on the starting level, and/or the starting EXP / sp etc.
|
here is my stored _AddNewCHar
USE [BR_SHARD]
GO
/****** Object: StoredProcedure [dbo].[_AddNewChar] Script Date: 05/24/2012 15:00:16 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[_AddNewChar]
@UserJID INT,
--@CharSlot INT,
@RefCharID INT,
@CharName varchar (64),
@CharScale tinyINT,
@StartRegionID INT,
@StartPos_X real,
@StartPos_Y real,
@StartPos_Z real,
@DefaultTeleport INT,
@RefMailID INT,
@RefPantsID INT,
@RefBootsID INT,
@RefWeaponID INT,
@RefShield INT,
@DurMail tinyINT,
@DurPants tinyINT,
@DurBoots tinyINT,
@DurWeapon tinyINT,
@DurShield tinyINT,
@DefaultArrow INT
AS
SET NOCOUNT ON
DECLARE @Slot INT
DECLARE @temp INT
DECLARE @NewCharID INT
SET @NewCharID = 0
-----------------------------------------------------------------------------
-- 1. ?????? ???? ?????? valid?? ??????, ?????? ???????? ?????? ???? ????????.
-----------------------------------------------------------------------------
-- start by novice.
SELECT @temp = count(CharID) FROM _User WITH (NOLOCK) WHERE UserJID = @UserJID
IF (@temp >= 4)
BEGIN
-- ???? ??????
RETURN -2
END
-- finish by novice.
-----------------------------------------------------------------------------
-- 2. ?????? ????????
-----------------------------------------------------------------------------
IF (@CharScale > 68) -- 0100 0100 --> 68 ????!
BEGIN
-- ?????? ???? ????! ?????? ???? ????????!
RETURN -3
END
EXEC @temp = _IsExistingCharName @CharName
IF (@temp <> 0)
BEGIN
-- ???? ???????? ?????????????
RETURN -4
END
begin transaction
-- ???????????? ?????????? ???????? WorldID?? 1???? ?? ???? ??????!
INSERT INTO _Char (RefObjID, CharName16, Scale, Strength, Intellect, LatestRegion,PosX, PosY, PosZ, AppointedTeleport, InventorySize,
LastLogout, CurLevel, MaxLevel, RemainGold, RemainStatPoint, RemainSkillPoint, HP, MP, JobLvl_Trader, JobLvl_Hunter, JobLvl_Robber, WorldID, HwanLevel)
VALUES (@RefCharID, @CharName, @CharScale, 20, 20, @StartRegionID, @StartPos_X, @StartPos_Y, @StartPos_Z, @DefaultTeleport, 109,
GetDate(), 1, 1, 0, 0, 200000, 200,200, 1, 1, 1, 1, 3)
SET @NewCharID = @@IDENTITY
IF (@@ERROR <> 0 OR @@ROWCOUNT = 0)
BEGIN
-- ?????? ???? ????!
ROLLBACK TRANSACTION
RETURN -5
END
-- start by novice.
-- ???? Slot ??????.. ???? Insert ??..
INSERT INTO _User VALUES (@UserJID, @NewCharID)
-- finish by novice.
-----------------------------------------------------------------------------
-- 3-1. ???? ???? ??????
-- [???????? ???? 96??] + [???????? 13??] <- ???????? ???? ?????? ?? 48?????? 96???? ????!!!(woos0)
-----------------------------------------------------------------------------
--PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!
INSERT INTO _Inventory(CharID, Slot, ItemID)
SELECT @NewCharID, cnt, 0
FROM _RefDummySlot with( nolock )
WHERE cnt < 109
IF (@@ERROR <> 0)
BEGIN
-- ???????? ???? ????!
ROLLBACK TRANSACTION
RETURN -7
END
--PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!
-- ???????? ?????? ???????? ???? ????????...
/* ???? ?????? ???????? ????.
0: EQUIP_SLOT_HELM
1: EQUIP_SLOT_MAIL,
2: EQUIP_SLOT_SHOULDERGUARD,
3: EQUIP_SLOT_GAUNTLET,
4: EQUIP_SLOT_PANTS,
5: EQUIP_SLOT_BOOTS,
6: EQUIP_SLOT_WEAPON,
7: EQUIP_SLOT_SHIELD or ARROW,
8: EQUIP_SLOT_EARRING,
9: EQUIP_SLOT_NECKLACE,
10: EQUIP_SLOT_L_RING,
11: EQUIP_SLOT_R_RING,
*/
DECLARE @ItemID BIGINT
SET @ItemID = 0
-- ????
IF (@RefMailID <> 0)
BEGIN
EXEC @ItemID = _FN_ADD_INITIAL_EQUIP @NewCharID, 1, @RefMailID, @DurMail
IF (@ItemID <= 0)
BEGIN
ROLLBACK TRANSACTION
RETURN -8
END
END
-- ????
IF (@RefPantsID <> 0)
BEGIN
EXEC @ItemID = _FN_ADD_INITIAL_EQUIP @NewCharID, 4, @RefPantsID, @DurPants
IF (@ItemID <= 0)
BEGIN
ROLLBACK TRANSACTION
RETURN -9
END
END
-- Boots
IF (@RefBootsID <> 0)
BEGIN
EXEC @ItemID = _FN_ADD_INITIAL_EQUIP @NewCharID, 5, @RefBootsID, @DurBoots
IF (@ItemID <= 0)
BEGIN
ROLLBACK TRANSACTION
RETURN -10
END
END
-- Weapon
IF (@RefWeaponID <> 0)
BEGIN
EXEC @ItemID = _FN_ADD_INITIAL_EQUIP @NewCharID, 6, @RefWeaponID, @DurWeapon
IF (@ItemID <= 0)
BEGIN
ROLLBACK TRANSACTION
RETURN -11
END
END
-- ????
IF (@RefShield <> 0)
BEGIN
EXEC @ItemID = _FN_ADD_INITIAL_EQUIP @NewCharID, 7, @RefShield, @DurShield
IF (@ItemID <= 0)
BEGIN
ROLLBACK TRANSACTION
RETURN -12
END
END
-- ???? default?? ?????? ?????? ???????? ???? 250?????? ?????? ???? ????. ?????
IF (@DefaultArrow <> 0)
BEGIN
EXEC @ItemID = _FN_ADD_INITIAL_EQUIP @NewCharID, 7, @DefaultArrow, 250
IF (@ItemID <= 0)
BEGIN
ROLLBACK TRANSACTION
RETURN -13
END
END
-----------------------------------------------------------------------------
-- 3-2. ?????? Inventory ???? ??????
-- [?????? ???????? ???? 4??]
-- APPLY_AVATAR_SYSTEM?? ?????????? ???????? ????
-----------------------------------------------------------------------------
--PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!
INSERT INTO _InventoryForAvatar(CharID, Slot, ItemID)
SELECT @NewCharID, cnt, 0
FROM _RefDummySlot with( nolock )
WHERE cnt < 5
IF (@@ERROR <> 0)
BEGIN
-- ?????? ???????? ???? ????!
ROLLBACK TRANSACTION
RETURN -14
END
--PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!PATCH WARNING!!!
-----------------------------------------------------------------------------
-- default skill????????
-----------------------------------------------------------------------------
DECLARE @country tinyINT
EXEC @country = _GetObjCountry @RefCharID
INSERT INTO _CharSkillMastery (CharID, MasteryID, Level)
SELECT @NewCharID, MasteryID, 0
FROM _RefCharDefault_SkillMastery with(nolock)
WHERE Race = @country or Race = 3
IF (@@error <> 0)
BEGIN
ROLLBACK TRANSACTION
RETURN -15
END
INSERT INTO _CharSkill (CharID,SkillID,Enable)
SELECT @NewCharID, SkillID, 1
FROM _RefCharDefault_Skill with(nolock)
WHERE Race = @country or Race = 3
IF (@@error <> 0)
BEGIN
ROLLBACK TRANSACTION
RETURN -16
END
-----------------------------------------------------------------------------
-- TutorialQuest????????
-----------------------------------------------------------------------------
INSERT INTO _CharQuest (CharID, QuestID, Status, AchievementCount, StartTime, EndTime, QuestData1, QuestData2)
SELECT @NewCharID, ID, 4, 0, getdate(), getdate(), 0, 0
FROM _RefQuest
WHERE CodeName in (SELECT CodeName FROM _RefCharDefault_Quest with(nolock) WHERE Race = @country or Race = 3)
IF (@@error <> 0)
BEGIN
ROLLBACK TRANSACTION
RETURN -17
END
-----------------------------------------------------------------------------
-- Static Avatar Initial Record ????
-----------------------------------------------------------------------------
INSERT INTO _StaticAvatar(CharID) values(@NewCharID)
IF (@@ERROR <> 0)
BEGIN
ROLLBACK TRANSACTION
RETURN -18
END
-----------------------------------------------------------------------------
-- Trijob ????????!!!!!
-----------------------------------------------------------------------------
INSERT INTO _CharTrijob VALUES (@NewCharID, 0, 1, 0, 0, 0)
IF (@@ERROR <> 0)
BEGIN
-- ???????? ???? ????!
ROLLBACK TRANSACTION
RETURN -19
END
-----------------------------------------------------------------------------
-- CharList?? ID ????????
-----------------------------------------------------------------------------
INSERT _CharNameList VALUES(@CharName, @NewCharID)
COMMIT TRANSACTION
exec _ADD_ITEM_EXTERN @CharName,'ITEM_ETC_E060118_60EXP_HELP',1,1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_ETC_E060118_100EXP_HELP',1,1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_ETC_SCROLL_RETURN_NEWBIE_01',20,1
-- #ifdef 2010. 07. 23 thailand new user Event
exec _ADD_ITEM_EXTERN @CharName,'ITEM_ETC_100EXP_BASIC', 3, 1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_ETC_SPEED_UP_BASIC', 10, 1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_QNO_RM_FLYSHIP2_2_02', 50, 1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_MALL_HP_SUPERSET_5_BAG',1000,1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_MALL_MP_SUPERSET_5_BAG',1000,1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_COS_P_RABBIT_SCROLL_SILK',1,1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_MALL_DAMAGE_ABS_20P_SCROLL',5,1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_MALL_DAMAGE_INC_20P_SCROLL',5,1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_MALL_REVERSE_RETURN_SCROLL',10,1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_MALL_RETURN_SCROLL_HIGH_SPEED',20, 1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_AVATAR_M_NASRUN',1,1
exec _ADD_ITEM_EXTERN @CharName,'ITEM_AVATAR_W_NASRUN',1,1
-- Quick Slot ???? ??????!!!
exec _AddNewClientConfig @NewCharID -- by novice...... for saving client configurations...
RETURN @NewCharID
|
|
|
05/24/2012, 12:53
|
#68
|
elite*gold: 0
Join Date: Jan 2012
Posts: 1,867
Received Thanks: 1,091
|
Quote:
Originally Posted by Aionys
sry but i got 2 dumb problems  !
can u exactly point me to the reversing section of sro client and the pk2 files !
And how hard is it to make a server on hamachi just to play with a few friends and my bro ??
|
1.assembly guides
2.if you are pro , you will be able to launch in less than 2h.
|
|
|
05/24/2012, 13:40
|
#69
|
elite*gold: 0
Join Date: Dec 2011
Posts: 651
Received Thanks: 266
|
enough TODO Spoiler Trolling
|
|
|
05/24/2012, 13:45
|
#70
|
elite*gold: 0
Join Date: Feb 2011
Posts: 112
Received Thanks: 199
|
yippie my nickname appeard in your thread twice 
Name eternalized, my job is done here in sro section, thx
|
|
|
05/25/2012, 07:16
|
#71
|
elite*gold: 0
Join Date: May 2011
Posts: 425
Received Thanks: 25
|
Quote:
Originally Posted by tamer15
yep thank you, solved . the problem was from divisioninfo.txt
but why im getting that ?
and ODBC is fine , and DBconnect , and sure certification
so what's the error im using br files from chernobyl ...
|
so any help ? i tried all black rouge db's and still this error !
|
|
|
05/25/2012, 11:27
|
#72
|
elite*gold: 0
Join Date: Jan 2012
Posts: 1,867
Received Thanks: 1,091
|
Quote:
Originally Posted by tamer15
so any help ? i tried all black rouge db's and still this error !
|
remove your gm char , and add it again (carefully in the query)
|
|
|
05/25/2012, 12:26
|
#73
|
elite*gold: 0
Join Date: May 2011
Posts: 425
Received Thanks: 25
|
Quote:
Originally Posted by •ᵔBeGodOfWarᵔ•
remove your gm char , and add it again (carefully in the query)
|
still but look at this quote :
Quote:
4. Restore the databases with following names:
BR_ACCOUNT = BR_ACCOUNT.bak
BR_SHARD = BR_SHARD.bak
BR_SHARDLOG = BR_SHARDLOG.bak
!! DO NOT CHANGE THE DATABASE NAMES TO OTHER YOU WILL HAVE SILK ERRORS AND IT WILL DC YOU INGAME !!
|
hmm ? is that or ? im using the BR DB in this topic ( database edited)
and the same name
|
|
|
05/25/2012, 12:45
|
#74
|
elite*gold: 0
Join Date: Jan 2012
Posts: 1,867
Received Thanks: 1,091
|
Quote:
Originally Posted by tamer15
still but look at this quote :
hmm ? is that or ? im using the BR DB in this topic ( database edited)
and the same name
|
To be honest , I had same problem in my friend's server .. Everytime I try to select any char to login , when I log get instant dc and whole server fault down for a while till you switch your server to (check) then run service ,, Try to use clean database ; Don't add anything in the database till you login successfully ..
(WIRED ERROR)
|
|
|
05/25/2012, 13:16
|
#75
|
elite*gold: 0
Join Date: May 2011
Posts: 425
Received Thanks: 25
|
Quote:
Originally Posted by •ᵔBeGodOfWarᵔ•
To be honest , I had same problem in my friend's server .. Everytime I try to select any char to login , when I log get instant dc and whole server fault down for a while till you switch your server to (check) then run service ,, Try to use clean database ; Don't add anything in the database till you login successfully ..
(WIRED ERROR)
|
nothing helps .. tried about 54564564654 times
|
|
|
Similar Threads
|
Reversing...
07/09/2009 - Rohan - 0 Replies
Hi , i'm actually trying to patch gameguard with ollydbg , i disable it at launch of game , i can connect to my account , but when i'm arriving at the selection of my different caracter , the bouton "START" is disable , i can't click on it.
Anyone can guid me how to patch this ?
Thx.
|
All times are GMT +1. The time now is 17:10.
|
|