Jump to content
  • 0

Remove put option from npc


cder

Question


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.02
  • Content Count:  96
  • Reputation:   0
  • Joined:  08/06/18
  • Last Seen:  

Português:

Alguem pode me dizer como remover a opção que um npc tem de um jogador conseguir vender seus itens em um npc ?

Só quero preservar a opção de comprar coisas, mas não quero que jogadores vendam itens no npc...

Inglês:

Can someone tell me how to remove an npc's option for a player to be able to sell their items on an npc?

I just want to preserve the option to buy things, but I don't want players to sell items on npc ...

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

you can try deleting this part on a separate function 

 

		switch (flag) {
			case 1: npc_buysellsel(sd,nd->bl.id,0); break; //Buy window
			case 2: npc_buysellsel(sd,nd->bl.id,1); break; //Sell window
			default: clif_npcbuysell(sd,nd->bl.id); break; //Show menu
		}
			case 2: npc_buysellsel(sd,nd->bl.id,1); break; //Sell window

 

could be the other one though

  • MVP 1
Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...