Sign in to follow this  
Followers 0
4144

Some upcoming hercules features

6 posts in this topic

Futures already added to hercules:

Inventory expanding

 QK3O60RA1MGOMU301NUO.gif

Supported from clients: 2018-10-31 ragexe/ragexeRE, 2018-11-14 zero.

For expand inventory need to have in inventory item Inventory_Extension_Coupon (25793)

 

Barter shop

 unknown.png

Supported from  clients: 2019-01-16 ragexe/ragexeRE, 2018-12-26 zero.

For shop barter shop need uncomment line

"npc/custom/bartershop.txt",

in npc/scripts_custom.conf. Barter shop demo npc will be added in prontera at (159, 284).

 

Most client exes can be downloaded here: http://nemo.herc.ws/downloads/

Share this post


Link to post
Share on other sites

Now hercules version released and this features can be used from stable or master branch.

Share this post


Link to post
Share on other sites

already mentioned in script_commands.txt

*expandInventory(<value>)

Adjust player inventory to given value.
Maximum inventory size is MAX_INVENTORY.
Minimum inventory size is FIXED_INVENTORY_SIZE.
For supported clients it send inventory change packet. For old clients,
this change is silent.
Current max inventory size can be read by function getInventorySize().

https://github.com/HerculesWS/Hercules/blob/82d634ad431b2ffe7077a561f4eafd2486ede44b/doc/script_commands.txt#L10349

https://github.com/HerculesWS/Hercules/blob/82d634ad431b2ffe7077a561f4eafd2486ede44b/src/common/mmo.h#L170

Share this post


Link to post
Share on other sites

In other words default values for MAX_INVENTORY is 200

for FIXED_INVENTORY_SIZE is 100

 

Share this post


Link to post
Share on other sites

wait a moment ... why the *expandInventory has the I as capital letter ?

I remember there was a script standardization topic, forgot where issit now, discussed years ago

1. all constants should be CAPITAL LETTERS -> QUEUEOPT_LOGOUT, IOT_PARTY,  GETTIME_WEEKDAY ...
2. all functions start with F_, and Capitial Letters only on word -> F_MesInfo, F_MesColor, F_InsertComma, F_SaveQuestSkills
3. all script commands should be low cap
4. and the ... no idea when ... variables ...

for example your *getInventorySize() has I and S capital, opposed to *getinventorylist() all low cap

 

hercules script engine is case-sensitive, so we have to be extra be careful when apply the capital letters
... although there are already some controversial ... like the "All" vs "all" ... reported #784

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0