Page 1 of 1

Converting Crystals

Posted: Sat Jun 23, 2007 4:34 am
by Riddler
Hello all,

I am interested in knowing how to add a small script to convert S grade crystals to any of the lower level crystals (eg. A, B, C and D grade) and vice versa.

I have seen it on other servers and now that a friend has started his own up using your latest data, I would like to implement this feature.

Does anyone have it and is willing to share it?

Any help would be greatly appreciated!

Posted: Sat Jun 23, 2007 4:43 am
by MELERIX
You can make a xml multisell for change ;)

Posted: Sat Jun 23, 2007 9:02 am
by Riddler
How do I do that? :oops:

Posted: Sat Jun 23, 2007 4:54 pm
by Deadmeat
Copy and past this text into a file named 200.xml in your \gameserver\data\multisell folder.

Code: Select all

<?xml version='1.0' encoding='utf-8'?>

<!-- Convert crystals -->

<list>

  <!-- [S TO A] for [Crystals] -->
  <item id="1">
    <ingredient id="1462" count="1" enchant="0"/>
    <production id="1461" count="2" enchant="0"/>
  </item>

  <!-- [A TO B] for [Crystals] -->
  <item id="2">
    <ingredient id="1461" count="1" enchant="0"/>
    <production id="1460" count="2" enchant="0"/>
  </item>

  <!-- [B to C] for [Crystals] -->
  <item id="3">
    <ingredient id="1460" count="1" enchant="0"/>
    <production id="1459" count="3" enchant="0"/>
  </item>

  <!-- [C to D] for [Crystals] -->
  <item id="4">
    <ingredient id="1459" count="1" enchant="0"/>
    <production id="1458" count="4" enchant="0"/>
  </item>

  <!-- [D to C] for [Crystals] -->
  <item id="5">
    <ingredient id="1458" count="4" enchant="0"/>
    <production id="1459" count="1" enchant="0"/>
  </item>

  <!-- [C to B] for [Crystals] -->
  <item id="6">
    <ingredient id="1459" count="3" enchant="0"/>
    <production id="1460" count="1" enchant="0"/>
  </item>

  <!-- [B to A] for [Crystals] -->
  <item id="7">
    <ingredient id="1460" count="2" enchant="0"/>
    <production id="1461" count="1" enchant="0"/>
  </item>

  <!-- [A to S] for [Crystals] -->
  <item id="8">
    <ingredient id="1461" count="2" enchant="0"/>
    <production id="1462" count="1" enchant="0"/>
  </item>

</list>
Copy and paste this link into your NPC's htm file.

Code: Select all

<a action="bypass -h npc_%objectId%_multisell 200">Convert Crystals</a><br>

Posted: Sun Jun 24, 2007 12:46 am
by Riddler
awesome thank man!