vBrenth Posted June 24, 2013 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 311 Reputation: 46 Joined: 11/06/11 Last Seen: 46 minutes ago Share Posted June 24, 2013 Players can't vend 7 items below. Is this possible? Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 25, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 23 hours ago Share Posted June 25, 2013 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 ... Quote Link to comment Share on other sites More sharing options...
vBrenth Posted June 25, 2013 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 311 Reputation: 46 Joined: 11/06/11 Last Seen: 46 minutes ago Author Share Posted June 25, 2013 (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 June 25, 2013 by Godric Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 25, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 23 hours ago Share Posted June 25, 2013 i not sure about the vending.c .... because i used that code in @autotrade ... Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted June 25, 2013 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted June 25, 2013 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; } Quote Link to comment Share on other sites More sharing options...
Question
vBrenth
Players can't vend 7 items below.
Is this possible?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.