mrlongshen
Noobies
Hi all, how to set?
- gm cant drop item
- gm cant trade
- gm can view sell item
cant view sell item from playergroups.conf
under permission
can_trade : false
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; }
@@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; }
We use essential cookies to make this site work, and optional cookies to enhance your experience.