Jump to content

Release: Extended Vending 2.0


Easycore

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/14/16
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/14/16
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/14/16
  • Last Seen:  

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;
-    }
 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  07/03/19
  • Last Seen:  

Does anyone have the .txt version?

Before this .yml template

@Easycore

Link to comment
Share on other sites


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

12 hours ago, EOOQBOOM said:
Does anyone have the .txt version?

Before this .yml template

@Easycore

i think i have this rev4 i dont have the rev5

 

@Easycore i hope you can still upload the previous files TY.. i do really love this extended vending of yours ❤️

 

 

Extended_Vending_[Rev4].zip

Edited by AinsLord
more info
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   10
  • Joined:  09/14/21
  • Last Seen:  

On 10/8/2021 at 10:43 PM, Snaehild said:


@Easycore

I tried this on a fresh 6672bf

But it doesn't seem to recognize the items.

"You do not have enough items"

https://streamable.com/oxqcwx

yeah the same here. for now better use the v5 or v6 version and cleanup some code to replicating the rev7 @Easycore. it works like a charm for me.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  6
  • Reputation:   0
  • Joined:  11/30/19
  • Last Seen:  

map-server got crashed when using whitesmith weapon refiner skill.
anyone know how to fix this?

Link to comment
Share on other sites


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

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   10
  • Joined:  09/14/21
  • Last Seen:  

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
Link to comment
Share on other sites


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

1 hour ago, ryukazuna said:

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 27.39 kB · 1 download ExtendedVending_rev6.diff 27.68 kB · 1 download

thanks man

yea thats a fresh git from rathena

 

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   10
  • Joined:  09/14/21
  • Last Seen:  

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. 

Link to comment
Share on other sites


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

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 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   8
  • Joined:  08/09/18
  • Last Seen:  

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?

Link to comment
Share on other sites


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

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  72
  • Reputation:   7
  • Joined:  06/23/14
  • Last Seen:  

Any plans to support buying @Easycore?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   29
  • Joined:  10/21/12
  • Last Seen:  

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,

Link to comment
Share on other sites

  • 6 months later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  03/04/20
  • Last Seen:  

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
Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

On 10/8/2021 at 11:43 PM, Snaehild said:


@Easycore

I tried this on a fresh 6672bf

But it doesn't seem to recognize the items.

"You do not have enough items"

https://streamable.com/oxqcwx

For some reasons, i was able to fix this by removing j in vending.cpp:
 

int k, j, loot_count = 0, vsd_w = 0;

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

On 10/5/2021 at 8:15 AM, Snaehild said:

Any idea what I missed?

image.png.8e2d7c24992838d7c9eaf2ab21da1929.png

i have the same error how did you fix this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  4
  • Reputation:   0
  • Joined:  07/18/19
  • Last Seen:  

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

image.thumb.png.d36a125ddbd2cdad07a52746ea6c4ec2.png

Edited by il3ol2ed
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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`

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

is it safe players cant dupe

just

ex_buying_bound: off  ? 

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   58
  • Joined:  07/11/14
  • Last Seen:  

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
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...