Introducing Cash Shop Support

how do i add the cash shop item ?
for now you'd need to add such items using the 'ID' syntax e.g. 'ID2115:70' for valkyrie shield.

valkyrie shield itemd id is 2115 use ID2115 then the price is 70

example like this:

ID2115:70

how do i add the cash shop item ?
for now you'd need to add such items using the 'ID' syntax e.g. 'ID2115:70' for valkyrie shield.

valkyrie shield itemd id is 2115 use ID2115 then the price is 70

example like this:

ID2115:70
You're able to use the item's constant as well.
where to edit it ? 

 
where to edit it ?
Your reply is in the first post of the topic:

As you can see, it's located on db/cashshop_db.conf.

P.S.: Please, avoid quoting large and redundant pieces of text. It difficults reading.
ok. sorry sir
default_sad.png


 
i was testing last tuesday hercules for the first time and since my test server is a rathena my client was made in that way

in that emulator i was in need to do source changes and packet's every new update to make work my cash shop

but went i use my client to test this emulator ,,, What was my surprise!!!!

Cash Shop works just perfect out of the box!!!! omg this is getting nicer with the plus of the WPE Free addition

i am thinking seriously to move here i am starting to love it ..... 

Great!!!!!! Work!!! +++++++++++++++++
default_wub.png
:wub:
default_wub.png
:wub:
default_wub.png
  Thanks @Yommy

 
Last edited by a moderator:
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?

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~!

[*]Commit

[*]cashshop_db.conf file
how do you buy there? or how do you get cash points? is it variable? or item?

 
#KAFRAPOINTS and #CASHPOINTS in the global_reg_value table of your database.

greetings

Tepoo

 
What if we don't want to use kafra points in the cash shop, and want to use Loyalty, Event, Vote Points or Donate points?

How can we change it?

 
[*]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?
i guess we cant do without yommy
default_tongue.png


 
#KAFRAPOINTS and #CASHPOINTS in the global_reg_value table of your database.

greetings

Tepoo
i can not found global_reg_value table in my database.

i found :

1. global_acc_reg_num_db and

2. global_acc_reg_str_db

which one is the correct one ?

 
#KAFRAPOINTS and #CASHPOINTS in the global_reg_value table of your database.

greetings

Tepoo
i can not found global_reg_value table in my database.

i found :

1. global_acc_reg_num_db and

2. global_acc_reg_str_db

which one is the correct one ?
its not from both of them

Those #CASHPOINTS and #KAFRAPOINTS variables are stored in

Code:
acc_reg_num_db
 
Back
Top