mrlongshen 22 Posted June 23, 2015 Hi all, how to set? gm cant drop item gm cant trade gm can view sell item Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted June 24, 2015 @@mrlongshen just remove the permission in vending.c FIND THIS : /*========================================== * Request a shop's item list *------------------------------------------*/void vending_vendinglistreq(struct map_session_data* sd, unsigned int id) { struct map_session_data* vsd; nullpo_retv(sd); if( (vsd = map->id2sd(id)) == NULL ) return; if( !vsd->state.vending ) return; // not vending if (!pc_can_give_items(sd) || !pc_can_give_items(vsd)) { //check if both GMs are allowed to trade // GM is not allowed to trade clif->message(sd->fd, msg_sd(sd,246)); return; } sd->vended_id = vsd->vender_id; // register vending uid clif->vendinglist(sd, id, vsd->vending);} Remove this line if (!pc_can_give_items(sd) || !pc_can_give_items(vsd)) { //check if both GMs are allowed to trade // GM is not allowed to trade clif->message(sd->fd, msg_sd(sd,246)); return; } 1 mrlongshen reacted to this Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted June 23, 2015 groups.confunder permission can_trade : false Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted June 23, 2015 groups.conf under permission can_trade : false cant view sell item from player Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted June 23, 2015 you need to modified it in vending.c Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted June 23, 2015 you need to modified it in vending.c ok thanks Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted June 24, 2015 @@mrlongshen just remove the permission in vending.c FIND THIS : /*========================================== * Request a shop's item list *------------------------------------------*/void vending_vendinglistreq(struct map_session_data* sd, unsigned int id) { struct map_session_data* vsd; nullpo_retv(sd); if( (vsd = map->id2sd(id)) == NULL ) return; if( !vsd->state.vending ) return; // not vending if (!pc_can_give_items(sd) || !pc_can_give_items(vsd)) { //check if both GMs are allowed to trade // GM is not allowed to trade clif->message(sd->fd, msg_sd(sd,246)); return; } sd->vended_id = vsd->vender_id; // register vending uid clif->vendinglist(sd, id, vsd->vending);} Remove this line if (!pc_can_give_items(sd) || !pc_can_give_items(vsd)) { //check if both GMs are allowed to trade // GM is not allowed to trade clif->message(sd->fd, msg_sd(sd,246)); return; } thanks alot !! Quote Share this post Link to post Share on other sites
Hi all, how to set?
Share this post
Link to post
Share on other sites