Jump to content
  • 0

New Cash Shop format


konishiwa

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   1
  • Joined:  11/15/14
  • Last Seen:  

hi community, i want to ask when i'm trying to download new rathena server but there's change in cash shop from txt to yml, my question is how to put my items of choices in new cash shop yml, how i put the items in different categories? and one more thing i found there 2 file named item_cash.yml in rathena-master\db and rathena-master\db\import, which one should i choose?

or can someone shared their item_cash.yml file so i can learned myself?, thank you in advanced ??

1.jpg

2.jpg

Edited by konishiwa
Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1536
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

2 hours ago, konishiwa said:

hi community, i want to ask when i'm trying to download new rathena server but there's change in cash shop from txt to yml, my question is how to put my items of choices in new cash shop yml, how i put the items in different categories? and one more thing i found there 2 file named item_cash.yml in rathena-master\db and rathena-master\db\import, which one should i choose?

or can someone shared their item_cash.yml file so i can learned myself?, thank you in advanced ??

1.jpg

2.jpg

see the documentation above theres already the settings that u can follow, just remove the #

 

Here some example :

Body:
- Tab: Hot
    Items:
      - Item: Kafra_Card
        Price: 1
  - Tab: Hot
    Items:
      - Item: Yggdrasilberry_Box_
        Price: 2
  - Tab: Hot
    Items:
      - Item: Acidbomb_10_Box
        Price: 3
  - Tab: Hot
    Items:
      - Item: Poison_Bottle_10_Box
        Price: 3

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   1
  • Joined:  11/15/14
  • Last Seen:  

14 minutes ago, Chaos92 said:

see the documentation above theres already the settings that u can follow, just remove the #

 

Here some example :

Body:
- Tab: Hot
    Items:
      - Item: Kafra_Card
        Price: 1
  - Tab: Hot
    Items:
      - Item: Yggdrasilberry_Box_
        Price: 2
  - Tab: Hot
    Items:
      - Item: Acidbomb_10_Box
        Price: 3
  - Tab: Hot
    Items:
      - Item: Poison_Bottle_10_Box
        Price: 3

 

i thank you for reply, so we put the items name instead of items id? and where's i should put at item_cash.yml?. in "rathena-master\db" or "rathena-master\db\import" ??

Edited by konishiwa
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   10
  • Joined:  08/22/22
  • Last Seen:  

3 hours ago, Chaos92 said:

see the documentation above theres already the settings that u can follow, just remove the #

 

Here some example :

Body:
- Tab: Hot
    Items:
      - Item: Kafra_Card
        Price: 1
  - Tab: Hot
    Items:
      - Item: Yggdrasilberry_Box_
        Price: 2
  - Tab: Hot
    Items:
      - Item: Acidbomb_10_Box
        Price: 3
  - Tab: Hot
    Items:
      - Item: Poison_Bottle_10_Box
        Price: 3

 

You don't need to repeat the TAB, if you are going to add several items in 1 tab.

3 hours ago, konishiwa said:

i thank you for reply, so we put the items name instead of items id? and where's i should put at item_cash.yml?. in "rathena-master\db" or "rathena-master\db\import" ??

Use db/import/

My Example:

###########################################################################
# - Tab                     Cash shop tab. Available tabs are New, Hot, Limited, Rental, Permanent, Scrolls, Consumables, Other, Sale.
#   Items:                  List of possible items.
#     - Item                Item name.
#       Price               Item cost in cash points (#CASHPOINTS).
###########################################################################

Header:
  Type: ITEM_CASH_DB
  Version: 1

Body:
  - Tab: New
    Items:
     - Item: C_Spot_Light
       Price: 500
     - Item: C_Released_Ground
       Price: 1000
  - Tab: Hot
    Items:
     - Item: Lightning_Cloud
       Price: 1000
     - Item: Rain_Cloud
       Price: 1000
     - Item: C_Let_It_Snow
       Price: 1000
  - Tab: Limited
    Items:
     - Item: C_Evil_Druid_Cross
       Price: 1000
     - Item: C_Black_Strong_Hair
       Price: 1000
  - Tab: Rental
    Items:
     - Item: C_Blossom_Fluttering
       Price: 1000
     - Item: C_Vampire_Hairband
       Price: 1000
  - Tab: Permanent
    Items:
     - Item: C_Angel_Fluttering
       Price: 1000
     - Item: C_Soulless_Wing
       Price: 1000
  - Tab: Scrolls
    Items:
     - Item: Battle_Manual_X3
       Price: 300
     - Item: HE_Battle_Manual
       Price: 200
  - Tab: Consumables
    Items:
     - Item: Infinity_Drink
       Price: 10
     - Item: ASPD_Potion
       Price: 10
     - Item: Red_Booster
       Price: 10
  - Tab: Other
    Items:
     - Item: Inventory_Ex_Evt
       Price: 100
     - Item: Insurance
       Price: 5

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   1
  • Joined:  11/15/14
  • Last Seen:  

6 hours ago, Pokye said:

You don't need to repeat the TAB, if you are going to add several items in 1 tab.

Use db/import/

My Example:

###########################################################################
# - Tab                     Cash shop tab. Available tabs are New, Hot, Limited, Rental, Permanent, Scrolls, Consumables, Other, Sale.
#   Items:                  List of possible items.
#     - Item                Item name.
#       Price               Item cost in cash points (#CASHPOINTS).
###########################################################################

Header:
  Type: ITEM_CASH_DB
  Version: 1

Body:
  - Tab: New
    Items:
     - Item: C_Spot_Light
       Price: 500
     - Item: C_Released_Ground
       Price: 1000
  - Tab: Hot
    Items:
     - Item: Lightning_Cloud
       Price: 1000
     - Item: Rain_Cloud
       Price: 1000
     - Item: C_Let_It_Snow
       Price: 1000
  - Tab: Limited
    Items:
     - Item: C_Evil_Druid_Cross
       Price: 1000
     - Item: C_Black_Strong_Hair
       Price: 1000
  - Tab: Rental
    Items:
     - Item: C_Blossom_Fluttering
       Price: 1000
     - Item: C_Vampire_Hairband
       Price: 1000
  - Tab: Permanent
    Items:
     - Item: C_Angel_Fluttering
       Price: 1000
     - Item: C_Soulless_Wing
       Price: 1000
  - Tab: Scrolls
    Items:
     - Item: Battle_Manual_X3
       Price: 300
     - Item: HE_Battle_Manual
       Price: 200
  - Tab: Consumables
    Items:
     - Item: Infinity_Drink
       Price: 10
     - Item: ASPD_Potion
       Price: 10
     - Item: Red_Booster
       Price: 10
  - Tab: Other
    Items:
     - Item: Inventory_Ex_Evt
       Price: 100
     - Item: Insurance
       Price: 5

 

thank you my man, this one works too and it's more simplified..:D ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  05/13/23
  • Last Seen:  

I'm just wondering whether I can still use item id or not.

Because I'm have pretty complete cash shop with txt and itemid format..

Is there any quick and feasible to convert it into  yml format one ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1536
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

On 5/13/2023 at 11:34 PM, ROIndo said:

I'm just wondering whether I can still use item id or not.

Because I'm have pretty complete cash shop with txt and itemid format..

Is there any quick and feasible to convert it into  yml format one ?

https://github.com/rathena/rathena/tree/master/tools

have tools to convert it. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  05/13/23
  • Last Seen:  

How to utilize sale tab ? since i tried to use it but it didn't show up on the sale / account limited tab.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   10
  • Joined:  08/22/22
  • Last Seen:  

12 hours ago, ROIndo said:

How to utilize sale tab ? since i tried to use it but it didn't show up on the sale / account limited tab.

not yet implemented in rA as packets for new client version 2020+. @Lemongrass maybe post later in the year.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.02
  • Content Count:  121
  • Reputation:   0
  • Joined:  09/02/20
  • Last Seen:  

 can someone help me what's wrong with this ? i got this error while add item in cash shop

 

image.thumb.jpeg.2499cf8e7f9edb19f14f839d46ac7396.jpeg

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1536
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

14 minutes ago, ManokStreZ said:

 can someone help me what's wrong with this ? i got this error while add item in cash shop

 

image.thumb.jpeg.2499cf8e7f9edb19f14f839d46ac7396.jpeg

 

try add a few first and see. most probably something is wrong/incorrect in what you add there.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.02
  • Content Count:  121
  • Reputation:   0
  • Joined:  09/02/20
  • Last Seen:  

39 minutes ago, Chaos92 said:

try add a few first and see. most probably something is wrong/incorrect in what you add there.

yes im doing just like you said, the problem is there is some "space" !!  what i know, someone tell me yml never use "space" and hes right
my problem solved just now ! thanks @Chaos92

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
Answer this question...

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