Jump to content

Extended Vending System [1.8]


Lilith

Recommended Posts


  • Group:  Members
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  224
  • Reputation:   4
  • Joined:  02/09/12
  • Last Seen:  

Just want to know if there's new working patch for 

 Revision 17704

 

Already Have Working Copy but when i change item_vending.txt still not see the item on window

Edited by simplexjay2
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

I applied this on the new revision, manually and it should work guys. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

Support rAthena 11892.

can i know which revision?

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

Any news?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   2
  • Joined:  08/12/12
  • Last Seen:  

Got this working on older eA Revisions.

Replace "USESKILL_FAIL_LEVEL" with "0" without the quotations, and replace "LOG_TYPE_VENDING" with ""V"" including the quotations. Look at your output build in Visual Studio to know where to replace them, it should tell you the line number where the errors are.

 

Since you have to put the patch in manually, I'd suggest downloading a .diff reader. I use GVIM. All the manual additions are straightforward, don't change any of it, except the changes above, even if it looks like it doesn't fit with the rest of the parameters.

 

Be careful of the itemdb.c addition, make sure the code is above:

/*======================================

  * Applies gender restrictions according to settings. [Skotlex]

  *======================================*/

If all is done correctly, the only warning that comes up is "warning C4020: 'pc_delitem' : too many actual parameters", but you can ignore this. Or you can just remove the ",6", since you're using the eA_patch, to get rid of the warning.

Edited by Pillows
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  90
  • Topics Per Day:  0.02
  • Content Count:  361
  • Reputation:   18
  • Joined:  01/09/13
  • Last Seen:  

Got it work on latest Revision, Today (9/20/2014)
Got no Problem at all, I just follow the instructions then voila ! :)

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

Hi i have a little problem, i cant patch this with my server.

 

I download the server from https://github.com/rathena/rathena

 

and i download the patch version 1.8.1.

 

How can i patch this great feature to my server?

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  09/10/14
  • Last Seen:  

I have rAthena... With Patch I have 10 errors and 13 Warning... After use Virtual studio...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   2
  • Joined:  02/05/12
  • Last Seen:  

I have rAthena... With Patch I have 10 errors and 13 Warning... After use Virtual studio...

 

add the code by hand

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

if you guys are having issue with this. please see this Napster update this source code to latest.

 

http://rathena.org/board/topic/97889-extended-vending-system-19-cleanup-fix/

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   1
  • Joined:  09/19/14
  • Last Seen:  

how to put the patch 

Discord: https://discord.gg/uh3GJ9XxqQ

Edited by Dev-Merot
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

how to put the patch 

 ExtendedVendingSystem_1.8.1.patch you mean

 

It's either you apply it manually or like this https://rathena.org/board/topic/84289-how-to-apply-patch-by-use-diff-on-linux/

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   35
  • Joined:  04/01/13
  • Last Seen:  

Does anyone know how to solve this problem ?

 

PrintScreen

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Does anyone know how to solve this problem ?

 

PrintScreen

 

You might need to follow some fixes and update it on this thread https://rathena.org/board/topic/97889-extended-vending-system-19-cleanup-fix/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   35
  • Joined:  04/01/13
  • Last Seen:  

 

Does anyone know how to solve this problem ?

 

PrintScreen

 

You might need to follow some fixes and update it on this thread https://rathena.org/board/topic/97889-extended-vending-system-19-cleanup-fix/

 

Thank you, had downloaded the current version of the system, without being using the latest update of the emulator .

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Nice! 

Edited by uDe
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   2
  • Joined:  08/02/12
  • Last Seen:  

Last rathena github patch  fail  please fix  or add how to manual patch

Link to comment
Share on other sites

  • 10 months later...

  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

help is this working on latest rathena svn right now ? 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

HI im having error on Tax Deduction .

I change TCG to Poring Coin then i Enable the tax in  conf/battle/items.conf i set Tax to: 2000
means 1000 poring Coin = to 800 Poring Coin

Example 

1 Orange Potion = 1,000 Poring Coin

after it sell it will tax 200 poring coin the vendor will recieve 800  Poring Coin like what i highlight in the image below " REVENUE 800" but the vendor still get the 1000 Poring COIN ?? how to fix this i follow this Rewrite in Vending.c  

post-467-0-34159500-1457768812_thumb.png

And Here's my Vending.c 

 

 

/**

* Extended Vending system [Lilith]
**/
if(battle_config.extended_vending){
if(vsd->vend_loot == ITEMID_ZENY || !vsd->vend_loot) {
 
//Logs (V)ending Zeny [Lupus]
log_zeny(vsd, LOG_TYPE_VENDING, sd, (int)z);
 
pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
 
} else if(vsd->vend_loot == ITEMID_CASH) {
pc_paycash(sd,(int)z,0, LOG_TYPE_VENDING);
pc_getcash(vsd,(int)z,0, LOG_TYPE_VENDING);
} else {
for( i = 0; i < MAX_INVENTORY; i++)
if(sd->status.inventory.nameid == vsd->vend_loot)
{
struct item *item;
item = &sd->status.inventory;
pc_additem(vsd,item,(int)z, LOG_TYPE_VENDING);
}
pc_delitem(sd,pc_search_inventory(sd, vsd->vend_loot),(int)z,0,6, LOG_TYPE_VENDING);
 
}
}else{
pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
}

 

@suyothegreat

Another Scene, 
Char 1 Sells Banana for 1 cash
Char 2 buy the banana
on the side of Char 1
on the Chatbox says; Revenue from "Char2" is: 0 but the item is sold and cash is reduce from char 2

what would be the possible problem for this ? 

Tax

 

Kadze already fix that.

 

 

in vending.c

 

rewrite



pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
 

to 

else
{
pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
}

 

 

Fix for 1.8.3

-Added new rev 17288

-Fix Tax Credit to @kadze

 

[Note]

Always have a backup and use first on test server.

 

attachicon.gifExtendedVendingSystem_1.8.3.patch

Thanks You ROCK ! Solid2005

 

 

 

this i can't fix 

 

 

Char 1 Sells: Apple for 1 Cash
And Char 2 Buy 1 Apple for 1 Cash.
In order to buy the apple it needs 1zeny and 1 cash.
If zeny is 0 I can't buy the item using cash.

 

unless seperate the variable for zeny and for the custom, variable z is the zeny count.

 

 

@suyothegreat

Another Scene, 
Char 1 Sells Banana for 1 cash
Char 2 buy the banana
on the side of Char 1
on the Chatbox says; Revenue from "Char2" is: 0 but the item is sold and cash is reduce from char 2

what would be the possible problem for this ? 

Tax

 

Kadze already fix that.

 

 

in vending.c

 

rewrite



pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
 

to 

else
{
pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
}

 

 

Fix for 1.8.3

-Added new rev 17288

-Fix Tax Credit to @kadze

 

[Note]

Always have a backup and use first on test server.

 

attachicon.gifExtendedVendingSystem_1.8.3.patch

 

Edited by Kariton Revolution
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

ahmm should i put this to battle/features.conf??


// Extended Vending System [Lilith]
// Enable or disable extended vending system? (Note 1)
extended_vending: yes
// Show currency's name in vending board? (Note 1)
show_item_vending: yes
// Show more info about buying? (Note 1)
ex_vending_info: yes
// 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


bump


is this working on rAmod???

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  90
  • Topics Per Day:  0.02
  • Content Count:  361
  • Reputation:   18
  • Joined:  01/09/13
  • Last Seen:  

it's really hard to manually put in your src, but you have to read carefully it's still working on newer revisions. /lv

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  04/14/16
  • Last Seen:  

*..*

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

will this work on the latest rev on git??

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

Hi I manage to make it work.. but the problem is when i try to purchase an item in vend it says " you do not have enough items" even tho i have all the requirements :( what could be the problem?

Link to comment
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.

×
×
  • Create New...