Jump to content
  • 0

Disable Selling Item on NPC


Question

Posted

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? 

5 answers to this question

Recommended Posts

Posted

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

Posted

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

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...