Jump to content

Release: Cart Config [Client 2015-08-26 or newer]


Cydh

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Cart Config [Client 2015-08-26 or newer]


INFORMATION: The main target for usage only for server that use kRO client Client 2015-08-26 or newer or some functions (especially the cart selection) will be fail

This mod in few words,
You can set Genetic's cart sprite for level 1 Merchant, change its max weight and max item numbers

rAthena Requirement: Git Hash: 2e15fae7 (2018-05-05)

You can config cart related values for

  • Weight limit
  • Max item numbers
  • Level requirement
  • Job requirement

But, because the client is not customizable (I meant I can't edit the client), there are things that cannot be changed related with client/PACKETVER.
So, because I modified the MC_CHANGECART to MC_CARTDECORATE (sending ZC_SELECTCART)

PACKETVER MAX_CARTS ZC_SELECTCART Weight Limit Max Items Level Req Job Req
20150826 + 12 YES YES YES YES YES
20120201 + 9 not supported YES YES useless useless
Older 5 not supported YES YES useless useless

 

Don't forget to add MC_CARTDECORATE as quest skill to preferred player.

Forgot to took SS, so just watch the Video

 

Ok, that's all. Any bug & suggestion please tell me. If you find a way or know how to make patch (hex the client) to add more carts, please tell the community

Spoiler

And you can give me some $ to my Paypal [email protected]

 


  • Submitter
  • Submitted
    06/07/2018
  • Category
  • Video
    https://www.youtube.com/watch?v=jeUUAQoGMGA
  • Content Author
    Cydh

 

  • Upvote 1
  • MVP 2
Link to comment
Share on other sites

  • 9 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  4
  • Reputation:   0
  • Joined:  12/11/12
  • Last Seen:  

Hi, how are you? 
I would like to know one thing about Cart system is that it can check if the person has a cart before opening the window to change, 
because in my it opens the window to select the cart without having the cart in the character. 
tks

 

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   1
  • Joined:  05/18/19
  • Last Seen:  

Hello, When I turn on the server I got the error:

"[Error]: map_cart_read_config: Cannot read 'conf/carts.yml'."

How I can fix ?

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.08
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

1 hour ago, Motoharo said:

Hello, When I turn on the server I got the error:

"[Error]: map_cart_read_config: Cannot read 'conf/carts.yml'."

How I can fix ?

 

don't forget to recompile server after modification.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   1
  • Joined:  05/18/19
  • Last Seen:  

1 hour ago, Quesooo said:

don't forget to recompile server after modification.

I recompiled. I'm using the latest version of rathena.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.08
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

3 hours ago, Motoharo said:

I recompiled. I'm using the latest version of rathena.

hmmm maybe double check the file name? 

Quote

'conf/carts.yml'."

it should be carts.yml not carts.yml. ( a dot at the end )

Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   62
  • Joined:  02/04/19
  • Last Seen:  

Is giving this error after this new rA update: https://github.com/rathena/rathena/commit/e72c7360cf9108b9aa5b5ad7891f8a8dcf16af49

/rAthena/src/map/map.cpp: In function 'void map_cart_read_config()':
/rAthena/src/map/map.cpp:4771:68: error: cannot convert 'int*' to 'int64* {aka long int*}' for argument '2' to 'bool script_get_constant(const char*, int64*)' if (script_get_constant(it->as<std::string>().c_str(), &jobid))

 

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  08/12/13
  • Last Seen:  

On 1/19/2020 at 4:37 AM, M a p l e said:

Is giving this error after this new rA update: https://github.com/rathena/rathena/commit/e72c7360cf9108b9aa5b5ad7891f8a8dcf16af49


/rAthena/src/map/map.cpp: In function 'void map_cart_read_config()':
/rAthena/src/map/map.cpp:4771:68: error: cannot convert 'int*' to 'int64* {aka long int*}' for argument '2' to 'bool script_get_constant(const char*, int64*)' if (script_get_constant(it->as<std::string>().c_str(), &jobid))

 

just add 64 bit support, in the issue that you share the script_get_constant function, pass from an int value to int64

search
                        int jobid = 0;
remplace to
                       int64 jobid = 0;
and enjoy.!

Link to comment
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.   Paste as plain text instead

  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...