Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to fix CashShop?

Newbie Spellweaver
Joined
Jun 19, 2009
Messages
8
Reaction score
0
08-09 16:45:07 > [CashShopService.CashShopService][CashShopService.CashShopService (864)][CashShopService] - Connecting to CashShop : 127.0.0.1:6500
08-09 16:45:08 > [CashShopService.CashShopService][CashShopService.CashShopService (864)][CashShopService] - CashShop Connection Failed... No connection could be made because the target machine actively refused it 127.0.0.1:6500
 
Newbie Spellweaver
Joined
Aug 29, 2018
Messages
32
Reaction score
5
Well, besides changing the port from 6500 to 42 and enabling CashShop on the DBs, it fails to "Query Inventory". Already checked the "ShopList.aspx" path... I'm stuck...
 
Upvote 0
Newbie Spellweaver
Joined
Aug 29, 2018
Messages
32
Reaction score
5
Well, besides changing the port from 6500 to 42 and enabling CashShop on the DBs, it fails to "Query Inventory". Already checked the "ShopList.aspx" path... I'm stuck...

So, I managed to open it! It was failing to parse the "ShopList.aspx" file.
Sho - How to fix CashShop? - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Aug 29, 2018
Messages
32
Reaction score
5
So, I managed to open it! It was failing to parse the "ShopList.aspx" file.
View attachment 163662

And I think I've made the CashShop work!!!

Need a proper table in "ShopList.aspx" with categories by "IngameCashShop_category.txt".
Last you catch the request inside the "Purchase.aspx" and add the products inside the table
and return an ErrorCode.
 
Upvote 0
Newbie Spellweaver
Joined
Jun 23, 2018
Messages
56
Reaction score
12
it is cool ! maybe it need other files to match each other.

ingame_cashshop_shopListURL
http://shop.heroes.nexon.com/shoplist.aspx?passport=%s
ingame_cashshop_giftURLhttp://shop.heroes.nexon.com/Purchase.aspx?passport=%s&ServerCode=%d&productno=%d&quantity=%d&characterid=%I64d&giftcharacterid=%I64d&giftmessage=%s
ingame_cashshop_purchaseURLhttp://shop.heroes.nexon.com/Purchase.aspx?passport=%s&ServerCode=%d&productno=%d&quantity=%d&characterid=%I64d&giftcharacterid=%d&giftmessage=%s
ingame_cashshop_couponURLhttp://shop.heroes.nexon.com/Coupon.aspx?passport=%s&ServerCode=%d&characterid=%I64d&coupon=%s&pccafeonly=%d
ingame_cashshop_historyURLhttp://shop.heroes.nexon.com/History.aspx?listType=%s&Passport=%s&Servercode=%d&characterid=%I64d

data in client's heroes.db3: FeatureMatrix

%d means a real number like 1,2,3
%s sholud mean a strings. it needs some information in official server.
%I64d ... what is this XD
 
Upvote 0
Newbie Spellweaver
Joined
Aug 29, 2018
Messages
32
Reaction score
5
%I64d ... what is this XD

It's a 64-bit signed integer which has a huge wide number range.

And I think I've made the CashShop work!!!

Need a proper table in "ShopList.aspx" with categories by "IngameCashShop_category.txt".
Last you catch the request inside the "Purchase.aspx" and add the products inside the table
and return an ErrorCode.

Here is a small incomplete guide:
Make sure you have a working "ShopList.aspx" with categories by "IngameCashShop_category.txt"

- Locate in the FeatureMatrix the feature "ingame_cashshop_shopListURL":
Default EN-US-X-GM: http:/ /store.nexon.net/vindictus/cashshop/ShopList.aspx
Note: I've changed mine to point it to my server's file.

- You need to have a "ShopList.aspx" file in your server in that location.
Note: ".aspx" is a "ASP.NET Web Server" script and since I'm working on "PHP" script I've changed mine to ".php".

- You can download a working sample from Nexon's:

Note: Do not open to copy, instead right click "Save as" or place the URI in a download software.

- Search for your GameCode's table and edit the "category_no" to point to your client's categories.
Note: You can find the categories inside the "scripts\IngameCashShop_category.txt" in one of the ".hfs" files.

- Enable CashShop in FeatureMatrix:
Code:
UPDATE FeatureMatrix SET "EN-US-X-GM" = '1' WHERE Feature = 'CashShop';
UPDATE FeatureMatrix SET "EN-US-X-GM" = NULL WHERE Feature = 'InGameCashShopDialog_V2';

Catch the request inside the "Purchase.aspx", add the products inside the table and return an ErrorCode for the Client

- OK, this last step is programing. You need to create an ASP.NET or PHP script to do that...
Note: The Client will send a GET parameter based on "ingame_cashshop_purchaseURL" with all information about the user's purchase.

PS: I've stopped my research here for now... With more time I'll see what table to place the items from the purchase. I've also noticed that the "CashShop Service" goes crazy after a purchase, I'm not sure if it is waiting for the items to arrive in the table or...
I just got the server and I'm still configuring it. I've created a script to fix the "PvpInfo" table (I'm not even sure if PvP works lol I just saw that the table wasn't loading...) and I'm creating some other scripts to fix for instance the "Random Items". I'll try to release them here once I'm done.
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Mar 22, 2024
Messages
18
Reaction score
1
Hi!

Can get me template or example Purchase.aspx and ShopList.aspx?
 
Upvote 0
Back
Top