Jump to content
  • 0

Vending Item Limitation


vBrenth

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  311
  • Reputation:   46
  • Joined:  11/06/11
  • Last Seen:  

Players can't vend 7 items below.

 

Is this possible?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  311
  • Reputation:   46
  • Joined:  11/06/11
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

i not sure about the vending.c .... because i used that code in @autotrade ...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

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;

    }

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

×
×
  • Create New...