Introducing Cash Shop Support

Ind

Development Administrator
Staff member
Messages
1,655
Points
113
Cash Shop Support
Hello~! - What?!

  • 1st, getting this together has only been possible thanks to Yommy
  • 2nd, really, without Yommy's help this wouldn't have worked
  • 3rd, did I already mention Yommy made this possible?
attachicon.gif
screenHercules006.jpg
cashshop_db.conf format

//====================================================
//=       _   _                     _
//=      | | | |                   | |
//=      | |_| | ___ _ __ ___ _   _| | ___  ___
//=      |  _  |/ _ \ '__/ __| | | | |/ _ \/ __|
//=      | | | |  __/ | | (__| |_| | |  __/\__ \
//=      \_| |_/\___|_|  \___|\__,_|_|\___||___/
//=                                                  
//=            http://herc.ws/board/                        
//====================================================
//= http://herc.ws/board/topic/367-introducing-cash-shop-support/
cash_shop: (
{
    cat_0: { //New
        Apple:100
        ID531:250
    }
    cat_1: { //Popular
        ID513:100
        Banana_Juice:250
    }
    cat_2: { //Limited
        Grape:100
        ID533:250
    }
    cat_3: { //Rental
        ID515:100
        Carrot_Juice:250
    }
    cat_4: { //Permanent
        Green_Herb:100
        ID510:250
    }
    cat_5: { //Scroll
        ID501:100
        ID502:250
    }
    cat_6: { //Usable
        White_Potion:150
        Blue_Potion:500
    }
    cat_7: { //Other
        ID909:400
        ID907:500
    }
}
)
Is it ready?!

  • The packets work, you can buy, list, etc. BUUUUT I wouldn't bet it is 100% complete -- I'm not very aware of how the cashpoint stuff works, I'd guess the behavior is not 100% -- BUUUT getting the packets to work was the toughest part, just drop us a bug report and we sure will fix any broken formulas instantly.
  • I'm not aware of what the official servers have in it being sold either, I've put random garbage with absurdly high prices in the db (so we all can debug).
  • BTW This only works on ragexe (not ragexere!) clients, e.g. : http://herc.ws/board/topic/289-2013-ragexe-area/
Special Thanks

  • Yommy
  • Yommy
  • ...Yommy!
  • malufett
  • Judas
  • Beret
  • kLabMouse
  • And everyone whos helped us get the 2013 client to work, Thank you All!
  • to Beret and Yommy for the new file format suggestion!
Links~!

screenHercules006.jpg

 
Last edited by a moderator:
woohoooo

thank you Ind, and all those contributed, and Yommy too!!

 
Thanks ind knew that you were able to.
I have a suggestion couldn't use a conf file example.
 
 
Code:
New: ({	/* new itens cash shop */		New_itens: {		Item_name1		Item_name2		Item_name3		Item_name4		Item_name5	}
 
Last edited by a moderator:
Oh man this is too good to be true! Awesome work Ind and special thanks to Yommy for releasing it!

 
good job, finally made me switching my heavily customized ra to hercules xD

the pain of applying every change i made >.<

 
Thanks ind knew that you were able to.
I have a suggestion couldn't use a conf file example.
 
 
New: ({ /* new itens cash shop */ New_itens: { Item_name1 Item_name2 Item_name3 Item_name4 Item_name5 }
whats wrong with the one we have now? o_O The file will have less lines and is less crowded. With this new one, you're just crowding the file with un-needed lines and space.

 
Thanks ind knew that you were able to.
I have a suggestion couldn't use a conf file example.
 
 
New: ({ /* new itens cash shop */ New_itens: { Item_name1 Item_name2 Item_name3 Item_name4 Item_name5 }
whats wrong with the one we have now? o_O The file will have less lines and is less crowded. With this new one, you're just crowding the file with un-needed lines and space.

Only a segment of the aegis. 
default_smile.png


Code:
t_shop_type={        SIMPLE_CASH_NEW                 = 0,        SIMPLE_CASH_POPULAR     = 1,        SIMPLE_CASH_LIMITED     = 2,        SIMPLE_CASH_RENTAL              = 3,        SIMPLE_CASH_PERPETUITY  = 4,        SIMPLE_CASH_BUFF                = 5,        SIMPLE_CASH_RECOVERY    = 6,        SIMPLE_CASH_ETC                 = 7,};t_item_price ={        {t_shop_type.SIMPLE_CASH_NEW,   "Boarding_Halter_Box",39},        {t_shop_type.SIMPLE_CASH_POPULAR,       "Boarding_Halter_Box",39},        {t_shop_type.SIMPLE_CASH_LIMITED,       "Token_Of_Siegfried_Box",25},        {t_shop_type.SIMPLE_CASH_RENTAL,        "Boarding_Halter_Box",39},                {t_shop_type.SIMPLE_CASH_PERPETUITY,    "Leaf_Cat_Box",159},                {t_shop_type.SIMPLE_CASH_BUFF,          "Str_Dish_Box",10},        {t_shop_type.SIMPLE_CASH_BUFF,          "Agi_Dish_Box",10},        {t_shop_type.SIMPLE_CASH_BUFF,          "Int_Dish_Box",10},        {t_shop_type.SIMPLE_CASH_BUFF,          "Dex_Dish_Box",10},        {t_shop_type.SIMPLE_CASH_BUFF,          "Luk_Dish_Box",10},        {t_shop_type.SIMPLE_CASH_BUFF,          "Vit_Dish_Box",10},                {t_shop_type.SIMPLE_CASH_RECOVERY,      "Small_Life_Potion_Box50",129},                {t_shop_type.SIMPLE_CASH_ETC,   "Enriched_Elunium_Box",15},        {t_shop_type.SIMPLE_CASH_ETC,   "Enriched_Oridecon_Box",15},};
 
I think the text format should be enough. Another suggestion, @reloadshopdb or w/e reload name for simplier reload of the cash shop feature. Also, thanks for the update! I'm also glad and surprised that Yommy shared his knowledge about this feature since only his server has a 100% working cash shop feature. 

 
Sweet !!! Yommy thanks for the care and share & share & share
default_tongue.png
and thanks Judas and Ind and Beret and everyone else who worked on this feature and the client
default_biggrin.png
.

 
@Mysterious - lines and space are not some rare commodity that are running out and need to be saved, simplicity shoud be more important
default_smile.png


@Beret , @Ind - very good idea, but i would suggest like

cash_shop { cat_0 { // New category Pr_Reset_Stone_Box,79; Fire_Type_Scroll,79; } cat_1 { // Popular category etc; etc; }}
remove the hardcoded category names, servers should edit the images to create there own category setup

@Arzzae - i only gave Ind the related packet structures, i doubt this cash shop is what players look for in a server. @reloadcashshop is a good idea though
default_wink.png


also, i would suggest you use the item_name instead of itemid, it makes it so much more readable when editing your shop

unless you know every itemid in your head, or comment them
default_tongue.png


<3

 
remove the hardcoded category names, servers should edit the images to create there own category setup
+1 since all international servers don't have the same category in their cash shops...

default_ani_meow.gif


 
Yommy finally! now i can also use your Cash Shop on my server! MUAHAHAHAHAHA!

thanks YOMNOMNOM

ofcourse for Ind & 3v3ryb0d3y

 
Last edited by a moderator:
Good news! Thanks
default_smile.png


But hey, I think you should thank Yommy, dude. You didn't even mention Yommy.

remove the hardcoded category names, servers should edit the images to create there own category setup
+2

 
Last edited by a moderator:
@Mysterious - lines and space are not some rare commodity that are running out and need to be saved, simplicity shoud be more important
default_smile.png
Yup, I understand that Yommy, but creating more unnecessary lines in the document increases its size. I know that putty it into categories and breaking the items down in lines is good and organized but it's not necessary to really have since you can just categorize the item by commenting the line out.

// Grape, New Item

something like that.

Instead of

New: {- Item list- Item List- Item List},Rental: {- Item List- Item List- Item List}
Dunno. It could really go both ways depending how people see it. For me, I just find it fine the way it's organized now.

 
@Mysterious - lines and space are not some rare commodity that are running out and need to be saved, simplicity shoud be more important
default_smile.png


@Beret , @Ind - very good idea, but i would suggest like

cash_shop { cat_0 { // New category Pr_Reset_Stone_Box,79; Fire_Type_Scroll,79; } cat_1 { // Popular category etc; etc; }}remove the hardcoded category names, servers should edit the images to create there own category setup
@Arzzae - i only gave Ind the related packet structures, i doubt this cash shop is what players look for in a server. @reloadcashshop is a good idea though
default_wink.png


also, i would suggest you use the item_name instead of itemid, it makes it so much more readable when editing your shop

unless you know every itemid in your head, or comment them
default_tongue.png


<3
remove the hardcoded category names, servers should edit the images to create there own category setup
+1 since all international servers don't have the same category in their cash shops...
default_ani_meow.gif
alright, will put it on my list.
 
Last edited by a moderator:
Back
Top