Easycore

Release: Extended Vending 2.0

Recommended Posts

thnx ill try this

thats my problem also when i reboot the server with @at players on the map the shop/item can be bought using zeny

Share this post


Link to post
Share on other sites
32 minutes ago, AinsLord said:

thnx ill try this

thats my problem also when i reboot the server with @at players on the map the shop/item can be bought using zeny

This corrects the problem.

Share this post


Link to post
Share on other sites
On 12/4/2018 at 10:08 AM, SBK_ said:

This corrects the problem.

in what src file do i need to edit?? im keep on looking where to add those lines

but it seems i cant find what cpp or hpp src file is it located

Edited by AinsLord

Share this post


Link to post
Share on other sites
On 1/26/2019 at 6:52 PM, AinsLord said:

in what src file do i need to edit?? im keep on looking where to add those lines

but it seems i cant find what cpp or hpp src file is it located

@AinsLord

 

FOR EXAMPLE:

diff --git a/conf/battle/feature.conf b/conf/battle/feature.conf
index cf26b9b..8bc79ac 100644
--- a/conf/battle/feature.conf
+++ b/conf/battle/feature.conf
@@ -78,3 +78,27 @@ feature.attendance: off
 // Private Airship System (Note 1)
 // Requires: 2018-03-21aRagexeRE or later
 feature.privateairship: off
+
+// Extended Vending System [Lilith]
+// Enable or disable extended vending system? (Note 1)
+extended_vending: on
+
+// Enable show broadcas info when player click vending board (Note 1)
+show_broadcas_info: on
+
+// Show currency's name in vending board? (Note 1)
+show_item_vending: on
+
+// Show more info about buying? (Note 1)
+ex_vending_info: on
+
+// Easycore Feature
+// Send a Vending Report to mailbox/rodex vendor? (Note 1)
+// Set the variable 'NOVREPORT' for avoid mails to a player
+ex_vending_report: on
+
+// Item ID for Zeny. Set to 0 if you don't want use Zeny.
+item_zeny: 30000
+
+// Item ID for Cash. Set to 0 if you don't want use Cash.
+item_cash: 30001

 

diff --git a/conf/battle/feature.conf b/conf/battle/feature.conf  do you see thin line on the top. you will find this on about each paragraph.

ex: find that file in your trunk >conf/battle/feature

and

+ mean add line start given with + at front

for EXAMPLE:

feature.privateairship: off
+
+// Extended Vending System [Lilith]
+// Enable or disable extended vending system? (Note 1)

fine the line feature.privateairship: off " below the line add "

// Extended Vending System [Lilith] (dont forget to remove the plus at front).

// Enable or disable extended vending system? (Note 1)

-  means delete the line which already exists there

-------------------------------------------

note:

if your using a old rAthena trunk you wont fine cpp or hpp u will find only cp and hp

i think this should help you understand how to do it
thank you.

Share this post


Link to post
Share on other sites

im asking for this fix i already implemented this extended vending system

the problem is when the server restart the items can be bought by zeny

when @at is on

 

On 11/22/2018 at 4:49 PM, SBK_ said:

You need to make a fix on the system so that the @autotrade system after rebooting the server returns with the item that was selected for trading, quite simple.

In the do_init_vending_autotrade function, find:

at-> sd-> state.monster_ignore = (battle_config.autotrade_monsterignore);

add after:

// Extended Vending System Fix Bug [CreativeSD]
at-> sd-> vend_loot = at-> vend_loot;

 

where this codes should be entered

@SBK_

Edited by AinsLord

Share this post


Link to post
Share on other sites

HI! tried to manually put these files in my folders. Rebuilt it with visual studio.

I got some errors. Can anyone point out what might be the cause?

ev.PNG

evv.PNG

Share this post


Link to post
Share on other sites
On 11/22/2018 at 5:49 AM, SBK_ said:

You need to make a fix on the system so that the @autotrade system after rebooting the server returns with the item that was selected for trading, quite simple.

In the do_init_vending_autotrade function, find:

at-> sd-> state.monster_ignore = (battle_config.autotrade_monsterignore);

add after:

// Extended Vending System Fix Bug [CreativeSD]
at-> sd-> vend_loot = at-> vend_loot;

 

worked perfectly, thank you very much ❤️

Share this post


Link to post
Share on other sites
On 2/21/2019 at 11:20 PM, ferota said:

worked perfectly, thank you very much ❤️

where did you put those text??

i mean what src file did you edit?

@ferota

Edited by AinsLord

Share this post


Link to post
Share on other sites
15 minutes ago, AinsLord said:

where did you put those text??

i mean what src file did you edit?

@ferota

i think its at  src/map/vending.cpp 
crtl+f type : battle_config.autotrade_monsterignore

and u should find it
but when i tried to compile server i got error u try and let me know if it worked for u

if am wrong please correct me 
thank you.

Edited by NakedWolf
was not sure

Share this post


Link to post
Share on other sites

@Kuroe

please check your src/map/skill.cpp and see if you have copy pasted it properly

Edited by NakedWolf

Share this post


Link to post
Share on other sites

1 More problem.
When I sell an item using mithril coin it sells the item even the player doesn't have mithril coins and the seller doesn't even get anything

Edit:
Got it working. I just had to re-do from the top.

Edited by Kuroe
Removed Video, added text

Share this post


Link to post
Share on other sites

@NakedWolf sir where to put this codes what src file????

On 11/22/2018 at 4:49 PM, SBK_ said:

You need to make a fix on the system so that the @autotrade system after rebooting the server returns with the item that was selected for trading, quite simple.

In the do_init_vending_autotrade function, find:

at-> sd-> state.monster_ignore = (battle_config.autotrade_monsterignore);

add after:

// Extended Vending System Fix Bug [CreativeSD]
at-> sd-> vend_loot = at-> vend_loot;

 

TIA

Share this post


Link to post
Share on other sites
On 10/5/2018 at 3:20 PM, Keitenai said:

 

in vending.cpp find this code:

sprintf(message + strlen(message), "Total profit: %s x %d", "Zeny" ,(mailprofit -= mailprofit * (battle_config.vending_tax / 10000.)));

 

change it to this:

sprintf(message + strlen(message), "Total profit: %s x %d", "Zeny" ,(mailprofit -= mailprofit * (int)(battle_config.vending_tax / 10000.)));

 

is my solution correct @Easycore ?

had the same problem as above, it did fix the problem on visual studio but it is not now allowing me to connect to the server said "Failed to connect to server"

Share this post


Link to post
Share on other sites
Posted (edited)
On 10/5/2018 at 3:20 PM, Keitenai said:

 

in vending.cpp find this code:

sprintf(message + strlen(message), "Total profit: %s x %d", "Zeny" ,(mailprofit -= mailprofit * (battle_config.vending_tax / 10000.)));

 

change it to this:

sprintf(message + strlen(message), "Total profit: %s x %d", "Zeny" ,(mailprofit -= mailprofit * (int)(battle_config.vending_tax / 10000.)));

 

is my solution correct @Easycore ?

had the same problem as above, it did fix the problem on visual studio but it is not now allowing me to connect to the server said "Failed to connect to server"

"SOLVED" 
It works but be careful with the packet version you use and change on the diff file. It needs to be the same.

Edited by Dev G Inc
Solved
  • Upvote 1

Share this post


Link to post
Share on other sites
On 3/9/2019 at 12:00 AM, _Lilith_ said:

LOL, my 'child' is still alive ... Very nice ☺️

Thanks for the contribution mate and to those who still keep it alive. very useful system.

  • Like 1

Share this post


Link to post
Share on other sites
On 3/22/2019 at 5:51 PM, Haikenz said:

Yes!

i got an error regarding applying this patch 😞 im using anacondaqq test file

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...