Jump to content
  • 0

Disable Selling Item on NPC


PewN

Question


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

is this possible ? cuz on 

groups.conf

can_trade: false

you can't trade / you can't drop / you can't vend / you can't mail

how about you can't sell items? 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  547
  • Reputation:   270
  • Joined:  11/08/11
  • Last Seen:  

db/re/item_trade.txt

 

//8:Item can't be sold to npcs

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

possible

 

I saw some people try to extract every part of @security. LOL

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

possible

 

I saw some people try to extract every part of @security. LOL

ahahaha. but i will not use in on @security

db/re/item_trade.txt

 

//8:Item can't be sold to npcs

not that

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you mean something like this ?

 

	if( !pc_has_permission( sd, PC_PERM_TRADE ) ){
		clif_displaymessage( fd,"You dont have permission to sell items" );
		return;
	}

 

i am using 17049 ~ i think might have abit different in line numbers.. but it's inside the

/// Presents list of items, that can be sold to an NPC shop (ZC_PC_SELL_ITEMLIST).
/// 00c7 <packet len>.W { <index>.W <price>.L <overcharge price>.L }*
void clif_selllist(struct map_session_data *sd)

 

 

i am not really good in src stuff...perhap other can help you to enhance it or fix bug...

the current bug is that....the player will be unable to move.. LOL..xD

 

NSCDGyV.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

you mean something like this ?

 

	if( !pc_has_permission( sd, PC_PERM_TRADE ) ){
		clif_displaymessage( fd,"You dont have permission to sell items" );
		return;
	}

 

i am using 17049 ~ i think might have abit different in line numbers.. but it's inside the

/// Presents list of items, that can be sold to an NPC shop (ZC_PC_SELL_ITEMLIST).
/// 00c7 <packet len>.W { <index>.W <price>.L <overcharge price>.L }*
void clif_selllist(struct map_session_data *sd)

 

 

i am not really good in src stuff...perhap other can help you to enhance it or fix bug...

the current bug is that....the player will be unable to move.. LOL..xD

 

NSCDGyV.jpg

i figure it out now thanks for this

now i can move :D

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