Jump to content
Easycore

Release: Extended Vending 2.0

Recommended Posts

I applied the patch manually without error but all my custom items cant be sold in the NPC. Its saying "Bound Items cannot be sold" even if the items is not bounded.

Link to comment
Share on other sites

I think its just an information for debug. If vend_loot / item is 0, it shouldnt open.
otherwise, you just can comment that part out?

@@ -7153,6 +7153,13 @@ void clif_openvendingreq(struct map_session_data* sd, int num)
 
 	nullpo_retv(sd);
 
+	// 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;
+	}

Not sure tho. Just wait for easycore to reply.

Edited by Mabuhay
  • Like 1
Link to comment
Share on other sites

46 minutes ago, Mabuhay said:

I think its just an information for debug. If vend_loot / item is 0, it shouldnt open.
otherwise, you just can comment that part out?

@@ -7153,6 +7153,13 @@ void clif_openvendingreq(struct map_session_data* sd, int num)
 
 	nullpo_retv(sd);
 
+	// 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;
+	}

Not sure tho. Just wait for easycore to reply.

i check that part but on my offline server i cant get that debug msg but on my online server i get that

  • Love 1
Link to comment
Share on other sites

23 minutes ago, Bringer said:

i check that part but on my offline server i cant get that debug msg but on my online server i get that

Based on how I understand, its just a warning tho. And reading that part doesnt seem to harm the server in any ways.. May be used for debugging.. But for whatever reason that it is not working consistently on both of your servers, it is best answered by Easycore.

Link to comment
Share on other sites

 

Thanks for sharing Easycore, it was awesome! /no1

 

I have a problem, maybe I did something wrong

When the seller has 2kkk or 2kkk (Cash), the sale is made and completed! Shouldn't the buying player receive a message saying that the store owner has a maximum of Zeny or Cash? And so he could not buy.

I made a video to better exemplify. It is attached.

 

NOTE: Sorry English, I have no practice.

Spoiler

Obrigado por compartilhar Easycore, ficou incrível! /no1

estou com um problema, talvez eu tenha feito algo errado 

quando o vendedor está com 2kkk ou 2kkk (Cash), a venda é feita e concluída!  O jogador que está comprando não deveria receber uma mensagem, dizendo que o proprietário da loja está com o máximo de Zeny ou Cash? E assim ele não conseguiria comprar.

fiz um vídeo para exemplificar melhor.

 

OBS: Desculpe o ingles, eu não tenho prática.

 

Link to comment
Share on other sites

On 11/26/2019 at 5:41 AM, Amauri Melo said:

When the seller has 2kkk or 2kkk (Cash), the sale is made and completed! Shouldn't the buying player receive a message saying that the store owner has a maximum of Zeny or Cash? And so he could not buy.

conf/battle/item.conf
vending_over_max: yes (set to no)

Edited by Haruka Mayumi
  • Upvote 3
Link to comment
Share on other sites

On 6/27/2019 at 3:27 PM, Dissidia said:

//if (sd->inventory.u.items_inventory[k].bound) {
                    //    clif_displaymessage(sd->fd, "Cannot buy with Bound Items.");
                    //    return;
                    //}

this will giving you exploit in bound items. better to change the Clip Display Message

 clif_displaymessage(sd->fd, "Cannot buy with Bound Items.");
To
 clif_displaymessage(sd->fd, "Please put your bound items on your storage and try again..");

or its up to you.

  • Upvote 1
Link to comment
Share on other sites

Hi guys, I'd like to know if someone could help me with the installation, I'm new here and I didn't learn how to use .diff files yet.

 

Thanks

Link to comment
Share on other sites

1 hour ago, AinsLord said:

will this still works on latest git of rathena??

You are still here. Ive been back tracking from page 1 to here. And its a YES for your question. I have applied the patch manually.

I just want to ask whats thisimage.png.dcbb5f0fbb9b0706f52962ef91a8f064.png
 

 

On 11/25/2019 at 9:36 AM, Bringer said:

@Easycore how to fix this problem

image.png.39a0688afb2b840b7dea8ae552b0370e.png

Have you solved yours?


@Easycore hey bud. Thanks! 🙂

Edited by gidzdlcrz
typos
Link to comment
Share on other sites

12 hours ago, gidzdlcrz said:

You are still here. Ive been back tracking from page 1 to here. And its a YES for your question. I have applied the patch manually.

I just want to ask whats thisimage.png.dcbb5f0fbb9b0706f52962ef91a8f064.png
 

 

Have you solved yours?


@Easycore hey bud. Thanks! 🙂

just warning just ignore it

Link to comment
Share on other sites

8 hours ago, Bringer said:

just warning just ignore it

I follow mabuhay's advice. to comment this part out. No more warning. 

 

On 11/25/2019 at 12:21 PM, Mabuhay said:

I think its just an information for debug. If vend_loot / item is 0, it shouldnt open.
otherwise, you just can comment that part out?

@@ -7153,6 +7153,13 @@ void clif_openvendingreq(struct map_session_data* sd, int num)
 
 	nullpo_retv(sd);
 
+	// 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;
+	}

Not sure tho. Just wait for easycore to reply.

This is the solution i guess.

Link to comment
Share on other sites

Hey guys,
I have a problem, I manually installed the diff and managed to compile without errors, however when I make the store and try to buy with another account it is simply not carried out.
I'm trying to put an option for zenny and cash.

obs: forgive the english, i'm using google translator

Link to comment
Share on other sites

On 11/25/2019 at 1:21 AM, Mabuhay said:

I think its just an information for debug. If vend_loot / item is 0, it shouldnt open.
otherwise, you just can comment that part out?

@@ -7153,6 +7153,13 @@ void clif_openvendingreq(struct map_session_data* sd, int num)
 
 	nullpo_retv(sd);
 
+	// 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;
+	}

Not sure tho. Just wait for easycore to reply.

it worked for me!
Thanks

Link to comment
Share on other sites

On 5/12/2020 at 1:38 PM, NakedWolf said:

am using the latest rAthena when using @reload battleconf i get this warning
error6.png.4c5716c79af7418d8c0c9518b7bc136c.png

you probably forgot to add something from battle.cpp
item_cash is not declared.

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.