Jump to content
  • 0

Vending Item Limitation


Question

4 answers to this question

Recommended Posts

Posted
	if( sd->vend_num < 5 ){
		sprintf(atcmd_output, "Vending required minimum 5 items, but you only vending with %d item.", sd->vend_num);
		clif_displaymessage(fd, atcmd_output);
		return -1;
	}

add this ...

Posted (edited)

Wont work :(

 

I added it below

 

    // check number of items in shop
    if( count < 1 || count > MAX_VENDING || count > 2 + vending_skill_lvl )
    {    // invalid item count
        clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0);
        return;
    }

vending.c

 

> and i can't open any vending shop.

Edited by Godric
Posted

Wont work :(

 

I added it below

 

 

    // check number of items in shop

    if( count < 1 || count > MAX_VENDING || count > 2 + vending_skill_lvl )

    {    // invalid item count

        clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0);

        return;

    }

vending.c

 

> and i can't open any vending shop.

 

 

 if( count < 7 || count > MAX_VENDING || count > 2 + vending_skill_lvl )

    {    // invalid item count

        clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0);

        return;

    }

Join the conversation

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

Guest
Answer this question...

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