New hercules feature: Expanded barter shop

4144

Core Developers
Staff member
Messages
1,191
Points
83
Discord
4144
IRC Nickname
_41444d494e_
Github
4144
Emulator
Client Version
latest
From last release in hercules was added new shop type: expanded barter shop.

This shop allow buy item with different amount and pay with other items or with money. For removed items supported refine levels.

Also this shop allow infinite or limited numbers in shop. Limited numbers saved into database.

For use shop example script uncomment in file npc/scripts_custom.conf this line:

//"npc/custom/expandedbartershop.txt",




This shop supported from clients:

Ragexe: 2019-11-20 and newer

RagexeRE: 2019-11-06 and newer

Ragexe zero: 2019-11-27 and newer

Same sample images:

unknown.png


expanded_barter_shop.png


 
This is pretty cool an actual official way to make "quest shops" very nice ! 

 
From last release in hercules was added new shop type: expanded barter shop.

This shop allow buy item with different amount and pay with other items or with money. For removed items supported refine levels.

Also this shop allow infinite or limited numbers in shop. Limited numbers saved into database.

For use shop example script uncomment in file npc/scripts_custom.conf this line:

//"npc/custom/expandedbartershop.txt",

//"npc/custom/expandedbartershop.txt",




This shop supported from clients:

Ragexe: 2019-11-20 and newer

RagexeRE: 2019-11-06 and newer

Ragexe zero: 2019-11-27 and newer

Same sample images:

unknown.png


expanded_barter_shop.png
any news on this?

 
what news?

it works from post date. or you have issues?

 
From last release in hercules was added new shop type: expanded barter shop.

This shop allow buy item with different amount and pay with other items or with money. For removed items supported refine levels.

Also this shop allow infinite or limited numbers in shop. Limited numbers saved into database.

For use shop example script uncomment in file npc/scripts_custom.conf this line:

//"npc/custom/expandedbartershop.txt",

//"npc/custom/expandedbartershop.txt",




This shop supported from clients:

Ragexe: 2019-11-20 and newer

RagexeRE: 2019-11-06 and newer

Ragexe zero: 2019-11-27 and newer

Same sample images:

unknown.png


expanded_barter_shop.png
hi guy.

i'm use 2020-07-28aRagexeRE and set #define PACKETVER in mmo.h to Ver 20201224 but shop can't open and don't show error message on console. please help, thanks

 
your client look like not exists.

also if you set wrong packet version or client type you can get many different issues.

here should be all clients from 2010 and newer. here your client name is not present

http://nemo.herc.ws/clients/

 
Last edited by a moderator:
you link is not working,

you can see in shop more than one item?

if no probably you again build hercules in wrong way?

 
you link is not working,

you can see in shop more than one item?

if no probably you again build hercules in wrong way?
The script contains every item in the script. I just turn it off because everything looks good. However, when exchanging, the system warns that you are overweight and cannot exchange equipment items. Except that the maximum weight is over 6000 or more when I try the Mechanic class and the skill increases the maximum weight to 8000+, so I can trade items.

How can I solve this problem?

this is video

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
i checked in your client version.

look like this client using weight as raw value. other clients using it as multiply to 10.

i will try to do generic fix for old clients.

but for you for quick fix, find in clif.c line

item->weight = id->weight * 10;


and replace to this

Code:
item->weight = id->weight;
 
i checked in your client version.

look like this client using weight as raw value. other clients using it as multiply to 10.

i will try to do generic fix for old clients.

but for you for quick fix, find in clif.c line

item->weight = id->weight * 10;

item->weight = id->weight * 10;


and replace to this

item->weight = id->weight;

item->weight = id->weight;

i'm done, Thank.

 
Back
Top