Page 1 of 1

Custom item - Multisell how not to sell/trade/drop item or change sell price

Posted: Tue Aug 04, 2015 6:26 am
by paris
Hi guys,

I have a custom NPC to sell hair accessories, It is working perfect.
Sample of a piece of my custom multisell XML:

Code: Select all

 <!-- antharas slayer -->
 <item>
    <ingredient id="57" count="50000"/>
    <production id="8568" count="1"/>
  </item>
  <!-- valakas slayer -->
 <item>
    <ingredient id="57" count="50000"/>
    <production id="8567" count="1"/>
  </item>
The problem is, my players are buying my accesories from my custom NPC adena $50K and then they sell it to the grocer by adena $3KK

My two questions are:

- How can I setup the items sold by my custom NPC to sell price adena $0?
- How can I setup the items sold by my custom NPC to no sell/no drop/ no trade?


Kind regards.

Re: Custom item - Multisell how not to sell/trade/drop item or change sell price

Posted: Tue Aug 04, 2015 12:45 pm
by CostyKiller
Hello!

1. You can set the price in the items you want to 0 in items xmls.

Code: Select all

<set name="price" val="0" />
2. You can add these values to the items you want in items xmls.

Code: Select all

<set name="is_tradable" val="false" />
<set name="is_dropable" val="false" />
<set name="is_sellable" val="false" />

Re: Custom item - Multisell how not to sell/trade/drop item or change sell price

Posted: Tue Aug 04, 2015 4:04 pm
by paris
Thanks,

But, what if I want no sell/trade/drop for items only sold by my custom NPC?
Changing the data/stats/items xml will change items globally.

Best regards

Re: Custom item - Multisell how not to sell/trade/drop item or change sell price

Posted: Tue Aug 04, 2015 4:23 pm
by Avanael92
You could try to give them an custom ID (in custom.xml) without changing the items globally. Then just simply add values whether it should be sellable or not and add this custom item to your shop :)

Re: Custom item - Multisell how not to sell/trade/drop item or change sell price

Posted: Tue Aug 04, 2015 4:41 pm
by sahar
As Avanael92 said you can create a custom clone of the items you want to sell and then you'll achieve what you want.
I say simply quit it and don't even bother getting in such complex situation, using custom items has some known bugs.