Jump to content
  • 0
Sign in to follow this  
mrlongshen

GM Command

Question

6 answers to this question

Recommended Posts

  • 0

@@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;	}

Share this post


Link to post
Share on other sites
  • 0

 

@@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 !! 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.