Jump to content

Recommended Posts

Posted

sir help me abot this

[Warning]: vend loot = 674
[Warning]: vend loot = 7539
[Warning]: vend loot = 7179
[Warning]: vend loot = 675
[Warning]: vend loot = 7179
[Warning]: vend loot = 7539
[Warning]: vend loot = 7227

this warning  show to putty

how to fix this?

Posted
On 10/8/2021 at 2:46 AM, masterzeus said:

rAthena clean (update today)
Rev7


ZNREs4C.png

 

trunk/conf/battle/feature.conf
 

// Item ID for Zeny. Set to 0 if you don't want use Zeny.
item_zeny: 0

// Item ID for Cash. Set to 0 if you don't want use Cash.
item_cash: 0

 

trunk/db/item_vending.txt

// Proof of Donation
7179
// TCG Card
7227
// Mithril Coin
674
// Silver Coin
675
// Bronze Coin
673
// Poring Coin
7539

Posted
41 minutes ago, DevilingKing said:

sir help me abot this

[Warning]: vend loot = 674
[Warning]: vend loot = 7539
[Warning]: vend loot = 7179
[Warning]: vend loot = 675
[Warning]: vend loot = 7179
[Warning]: vend loot = 7539
[Warning]: vend loot = 7227

this warning  show to putty

how to fix this?

@solved

remove this coding

/src/map/clif.cpp
 
-    // Vending shouldn't open if vend_loot is 0 and extended vending is enabled [Easycore]
-    // ShowWarning("vend loot = %d\n", sd->vend_loot);
-    if (battle_config.extended_vending && sd->vend_loot == 0) {
-        sd->state.prevend = 0;
-        return;
-    }
 

Posted (edited)

anyone still have the v5 of this extended vending?

thanks

image.png.58f28800380fd7befd16364c7534f25d.png

why this kind of error showing in my consol

im using the latest rev of rathena and v7 of EVS

can anyone help

thanks

Edited by AinsLord
more info
Posted
7 hours ago, AinsLord said:

anyone still have the v5 of this extended vending?

thanks

image.png.58f28800380fd7befd16364c7534f25d.png

why this kind of error showing in my consol

im using the latest rev of rathena and v7 of EVS

can anyone help

thanks

are you sure you're using latest git revision? are you updating or fresh clone from rathena git?
 

Here's the v6 and v5.

ExtendedVending_rev5.diff ExtendedVending_rev6.diff

  • Love 1
Posted
2 hours ago, AinsLord said:

thanks man

yea thats a fresh git from rathena

 

in that case, maybe you are missing some line of code when patching your sever. Try to patch manually instead. 

the rev7 works just fine for me, except its not working when buying with items. 

Posted
6 hours ago, ryukazuna said:

in that case, maybe you are missing some line of code when patching your sever. Try to patch manually instead. 

the rev7 works just fine for me, except its not working when buying with items. 

having hard time implementing this to the server i work

i combined v5 and v6 

Posted (edited)
On 11/18/2021 at 12:19 PM, iMillenium said:

I would like to modify the system to accept only 3 types of currency:

cash
Zeny
custompoint

Could someone guide me on how to do it?

it automatically sets cash/zeny for vending

for using only zeny and cash

put 0 to the item IDs in item_vending.txt <--- this file is not existing you just need to create it on db/item_vending.txt

+// Specific items for Vending System
+// Format: ItemID
+// Max items is equal MAX_INVENTORY ( 100 by default )
+
+// TCG Card
+7227
+// Mithril Coin
+674
+// Silver Coin
+675
+// Bronze Coin
+673

but for custom currency or points

it will make some additional scripts/modification on src

 

Edited by AinsLord
Posted
On 11/20/2021 at 3:42 AM, AinsLord said:

it automatically sets cash/zeny for vending

for using only zeny and cash

put 0 to the item IDs in item_vending.txt <--- this file is not existing you just need to create it on db/item_vending.txt

+// Specific items for Vending System
+// Format: ItemID
+// Max items is equal MAX_INVENTORY ( 100 by default )
+
+// TCG Card
+7227
+// Mithril Coin
+674
+// Silver Coin
+675
+// Bronze Coin
+673

but for custom currency or points

it will make some additional scripts/modification on src

 

how to set up the item_vending.yaml

i can see the item currency but i cant buy it,

  • 6 months later...
Posted (edited)

I used the Extended Vending Rev4 and Rev5 but I got this error, i applied the patch manually
image.thumb.png.1beeeb014ee5a126aeb6c9bf330e657a.png
can someone help me please? Thank you.

Edited by xFoo
  • 4 weeks later...
Posted

I already tried v4, v5 ,v6

quick question guys

about these setting

// Item ID for Zeny. Set to 0 if you don't want use Zeny.
item_zeny: 0

do this literally convert the item id into zeny when used? i kinda confused

Posted
On 9/25/2021 at 12:01 PM, Easycore said:

New Version:
Working on latest Git: 6672bf

  • Refactored 'item_vending.txt' to YAML Format 'item_vending_db.yml'.
  • Fixed an issue regarding bound items in the buyer's inventory.
  • Added a config to enable/disable buying with bounded items.
  • Prevent buying if seller has the Max Item in the inventory (30,000 ea).
  • Added GetComma for a better visualization of the amount of zeny received (Vending Report).
  • Code clean-up.

Status: Pending Approval.

Vender has 29990 credits on inventory

example Vender sells 1 credit for jellopy

the buyer has 20 credits

the buyer buys 1 pc jellopy it will say the vender does not have space in inventory

now drop or storage 10 credits on the buyer

buy 1 pc jellopy and it will buy out the jellopy or bulk by 10 until the vender fills out the 30,000 limit

 

  • 2 months later...
Posted
On 9/8/2022 at 1:00 AM, il3ol2ed said:

can someone help me please? Thank you.
i use version Rev.7

image.thumb.png.d36a125ddbd2cdad07a52746ea6c4ec2.png

saw this at discord answered by nitrous

Change `struct item_data *itemdata` to `std::shared_ptr<item_data> item_data`

  • 1 month later...
Posted (edited)

I made some corrections, it was tested on revisions 17687 and 17700.
ExtendedVending_Rev9.1.diff

 

@Edit

 Manual fix for 'You do not have enough items' (diff 9.1)

in src/map/vending.cpp search for:

if (battle_config.ex_buying_bound) {
	for (k = 0; k < MAX_INVENTORY; k++) {
		if (sd->inventory.u.items_inventory[k].nameid == vsd->vend_loot) {
			if (sd->inventory.u.items_inventory[k].bound) {
				clif_displaymessage(sd->fd, msg_txt(sd,1604));
				return;
			}
			loot_count += sd->inventory.u.items_inventory[k].amount;
		}
	}
}

and replace with:

for (k = 0; k < MAX_INVENTORY; k++) {
	if (sd->inventory.u.items_inventory[k].nameid == vsd->vend_loot) {
		if (sd->inventory.u.items_inventory[k].bound && !battle_config.ex_buying_bound) {
			clif_displaymessage(sd->fd, msg_txt(sd,1604));
			return;
		}
		loot_count += sd->inventory.u.items_inventory[k].amount;
	}
}

Obs: When I have some time I will update the diff to 9.2 and remove this manual fix.

Edited by Hyroshima
  • Love 1
  • Like 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...