Jump to content
V3ct0r

How to increase temporary bag capacity

Recommended Posts

9 часов назад, Sultan сказал:

I really like it! @V3ct0r By the way, is there possible way to increase Bank capacity?

For all inventories (Character inventory, temporary bag and bank) there is limit in GameServer.exe for 48 items maximum. I will try to increase it.

  • Like 1

Share this post


Link to post
Share on other sites

@Sultan also asked me how to increase temporary bag capacity for existing characters.

Close all GameServers. Open MSSQL Management studio and press button 'New Query' on tool bar or CTRL + N. Then execute (F5) following SQL Query:

USE GameDB;
UPDATE Resource SET content = REPLACE(content, '16', '32') WHERE type_id = 3;

Where 32 is the new size of temporary bag.

Don't forget to make backup!


Share this post


Link to post
Share on other sites
4 часа назад, Jones сказал:

does this mean we can also increase normal inventory space? :D

Yes, but only up to 48 items. Check items with IDs 3088 - 3093


Share this post


Link to post
Share on other sites
36 минуты назад, Jones сказал:

Ahh, so ToP already made it at maximum?

Yes.

I will try to increase this limit


Share this post


Link to post
Share on other sites
On 8/30/2016 at 1:20 PM, Covadola said:

Thanks xD

 

 

sshot-333.png

 

I got it fix

can you tell us how you fixed it? :)


logo-big.png   logo.png

                                   Sunny Go! Online                                                                    pko.host                                                 

Share this post


Link to post
Share on other sites
13 minutes ago, Shako said:

can you tell us how you fixed it? :)

 

Goto GameFolder\scripts\lua\forms
find name frmTempBag and find this

grdTempBag = UI_CreateCompent( frmTempBag, GOODS_GRID_TYPE, "grdTempBag", 184, 158, 7, 36 ) 
UI_SetGridSpace( grdTempBag, 4, 4 )
UI_SetGridContent( grdTempBag, 4, 4 )
UI_SetGridUnitSize( grdTempBag, 32, 32 )
UI_SetMargin( grdTempBag, 21, 4, 0, 0 )

 

PASTE CODE IN THE LAST LINE

 

scrollid = UI_GetScroll( grdTempBag )
UI_SetSize( scrollid, 11, 1 )
UI_LoadImage( scrollid, "texture/ui/PublicC.tga", COMPENT_BACK, 11, 1, 194, 13 )

id = UI_GetScrollObj( scrollid, SCROLL_UP )
UI_LoadButtonImage( id, "texture/ui/PublicC.tga", 11, 9, 166, 0, TRUE )
UI_SetSize( id, 11, 9 )

 id = UI_GetScrollObj( scrollid, SCROLL_SCROLL )
UI_LoadImage( id, "texture/ui/PublicC.tga", COMPENT_BACK, 9, 43, 166, 10 )
UI_SetSize( id, 9, 43 )


id = UI_GetScrollObj( scrollid, SCROLL_DOWN )
UI_LoadButtonImage( id, "texture/ui/PublicC.tga", 11, 9, 166, 0, TRUE )
UI_SetSize( id, 11, 9 )

 

and you will get this, if you wanna se changes make a new char and you will see it
 

 

sshot-2.png

Edited by Covadola
  • Thanks 1

🏴‍☠️☠️God Bless Piracy☠️🏴‍☠️

Share this post


Link to post
Share on other sites
19 hours ago, Covadola said:

 

Goto GameFolder\scripts\lua\forms
find name frmTempBag and find this

grdTempBag = UI_CreateCompent( frmTempBag, GOODS_GRID_TYPE, "grdTempBag", 184, 158, 7, 36 ) 
UI_SetGridSpace( grdTempBag, 4, 4 )
UI_SetGridContent( grdTempBag, 4, 4 )
UI_SetGridUnitSize( grdTempBag, 32, 32 )
UI_SetMargin( grdTempBag, 21, 4, 0, 0 )

 

PASTE CODE IN THE LAST LINE

 

scrollid = UI_GetScroll( grdTempBag )
UI_SetSize( scrollid, 11, 1 )
UI_LoadImage( scrollid, "texture/ui/PublicC.tga", COMPENT_BACK, 11, 1, 194, 13 )

id = UI_GetScrollObj( scrollid, SCROLL_UP )
UI_LoadButtonImage( id, "texture/ui/PublicC.tga", 11, 9, 166, 0, TRUE )
UI_SetSize( id, 11, 9 )

 id = UI_GetScrollObj( scrollid, SCROLL_SCROLL )
UI_LoadImage( id, "texture/ui/PublicC.tga", COMPENT_BACK, 9, 43, 166, 10 )
UI_SetSize( id, 9, 43 )


id = UI_GetScrollObj( scrollid, SCROLL_DOWN )
UI_LoadButtonImage( id, "texture/ui/PublicC.tga", 11, 9, 166, 0, TRUE )
UI_SetSize( id, 11, 9 )

 

and you will get this, if you wanna se changes make a new char and you will see it
 

 

sshot-2.png

Just like @V3ct0r said in his guide. :P 

Share this post


Link to post
Share on other sites
15 minutes ago, Angelix said:

Just like @V3ct0r said in his guide. :P 

 

yes but on his lines he makes for dark skin
texture/ui/xDesign/PublicC.tga

i got the same problem until i fix for normal skin


🏴‍☠️☠️God Bless Piracy☠️🏴‍☠️

Share this post


Link to post
Share on other sites
15 часов назад, Sultan сказал:

@V3ct0r Is there a possibility yet for Bank capacity increase? It would be really good and useful feature.

 

Have no idea how to do it for now


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...