Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 17:53

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

Advertisement



[Question] how to change max inventory pet size in _RefObjChar ?

Discussion on [Question] how to change max inventory pet size in _RefObjChar ? within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old 11/13/2023, 18:24   #16
 
Judgelemental's Avatar
 
elite*gold: 0
Join Date: Aug 2013
Posts: 1,532
Received Thanks: 835
Quote:
Originally Posted by JohnDornel^ View Post
Create this table

Code:
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[_COS_Exceptions](
	[ID] [int] NOT NULL,
 CONSTRAINT [PK__COS_Exceptions] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
And put these IDs inside

Code:
7493
9264
10369
10370
22865
23228
23229
23309
23857
23858
29534
36634
41760
(COS_% ids for default grab pets, you can add additional ones here if you have custom made)

Go to SRO_VT_SHARD > Programmability > Stored Procedures > _AddNewCOS > Right Click and Modify.

At the end, before "commit tran" add this


if ((SELECT COUNT(*) FROM _COS_Exceptions with (NOLOCK) where ID=@RefObjID) <> 0)
BEGIN
declare @64 bigint
DECLARE @ int
set @= DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE()) --get curent timestamp
set @ @+28*24*440000
select @64 = Serial64 from _Items where Data = @_ID
IF(NOT EXISTS(SELECT * FROM _TimedJobForPet WHERE CharID = @_ID))
BEGIN
exec _AddTimedJobForPet @_ID,5,22926 @,1111708465,1,28,0,0,0,0,0 @64
END
end
enD

To modify the amount of slots there is a "28" on the "exec _AddTimedJobForPet..." line, you can edit it there. Just multiplay pages * slotsPerPage and use that number. That should be all.
Thank you for the quick response!

I could manage to unlock 7 pages, however as soon as I place an item on the 6th or 7th page I get a disconnect followed by:

Judgelemental is offline  
Old 11/14/2023, 10:43   #17
 
elite*gold: 0
Join Date: Jul 2014
Posts: 187
Received Thanks: 70
Quote:
Originally Posted by Judgelemental View Post
Thank you for the quick response!

I could manage to unlock 7 pages, however as soon as I place an item on the 6th or 7th page I get a disconnect followed by:

I really don't have the ability to test it right now myself, but the procedure seems to fail when placing the item. I'd assume the _InvCOS table is missing the lines for these slots. The _AddNewCOS procedure, takes the InventorySize from _RefObjChar, so try to increase that for each grab pet to 7 pages value and spawn a new pet, to build new data for _InvCOS and try again.
JohnDornel^ is offline  
Old 11/14/2023, 11:52   #18
 
Judgelemental's Avatar
 
elite*gold: 0
Join Date: Aug 2013
Posts: 1,532
Received Thanks: 835
Quote:
Originally Posted by JohnDornel^ View Post
I really don't have the ability to test it right now myself, but the procedure seems to fail when placing the item. I'd assume the _InvCOS table is missing the lines for these slots. The _AddNewCOS procedure, takes the InventorySize from _RefObjChar, so try to increase that for each grab pet to 7 pages value and spawn a new pet, to build new data for _InvCOS and try again.
It makes sense, however:

The default InventorySize of grab pets in _RefObjChar is 140 (5 pages).
Increasing that to 196 (7 pages) crashes the GS upon loading the module.

If I manually add lines in _InvCOS then it works:
It seems like the lines are created automatically up to '139'

Judgelemental is offline  
Old 11/14/2023, 12:26   #19
 
elite*gold: 0
Join Date: Jul 2014
Posts: 187
Received Thanks: 70
Quote:
Originally Posted by Judgelemental View Post
It makes sense, however:

The default InventorySize of grab pets in _RefObjChar is 140 (5 pages).
Increasing that to 196 (7 pages) crashes the GS upon loading the module.

If I manually add lines in _InvCOS then it works:
It seems like the lines are created automatically up to '139'

Likely there is a check somewhere in the gameserver for it, but if what you did works.. you can just edit the _AddNewCOS procedure, inside the loop replace "< char.InventorySize" with the max amount of slots and it should do the job.
JohnDornel^ is offline  
Thanks
1 User
Old 11/14/2023, 12:48   #20
 
Judgelemental's Avatar
 
elite*gold: 0
Join Date: Aug 2013
Posts: 1,532
Received Thanks: 835
Quote:
Originally Posted by JohnDornel^ View Post
Likely there is a check somewhere in the gameserver for it, but if what you did works.. you can just edit the _AddNewCOS procedure, inside the loop replace "< char.InventorySize" with the max amount of slots and it should do the job.

Doing that allowed me to store the items in the 6th/7th tab, however upon re-logging the GS crashes.
Unfortunately that does not work...I think I'll just give up
Judgelemental is offline  
Old 01/20/2024, 20:45   #21
 
elite*gold: 0
Join Date: Jul 2023
Posts: 36
Received Thanks: 16
Pick pet 2 page

Can any one help me with guide to up me pick pet to 2 page instead of 1 page ?
kaka20315 is offline  
Reply


Similar Threads Similar Threads
[Selling] BM [EU] 1240+ HM16 Max Soul Max Pet Max VT Aransu Weapon Max Gear Fire
01/05/2018 - Blade & Soul Trading - 1 Replies
Hi i am Selling my BM on the EU Server He is HM 16 1240 AP + Full Fire Build + Fire Gear Max Aransu Weapon with 5 Octagonal Gems and 3 Hepta Fire Gems to Upgrade in Octagonal when the Update comes. The Account has over 400 Customs and 9 Legy Pet Skins many Mats and Is Pemium Rank 10 with 200 Days Premium The Character has 10 Charakter Slots free and 1 lvl 50er voucher code. The Character is a Very Beautiful Yun so i Think you dont Need a new character Optimization. The Character is...
[SIZE="6"][/SIZE]Wichtig an alle die gepowerlvlt werden möchten !![/SIZE]
08/21/2011 - WarRock - 2 Replies
habe einige Powerlvl service auf e-pvp getestet und auch einiges an geld gezahlt. Doch passt auf sie ziehen euch bloß das geld ab und verschwinden dan :(. Ich dachte wenigstens auf e-pvp wird macn nicht abgezogen aber kann man ja nix machen. mfg damdam9



All times are GMT +1. The time now is 17:54.


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.