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

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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