Converting Crystals

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Riddler
Posts: 3
Joined: Tue May 29, 2007 9:13 am

Converting Crystals

Post 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!
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Post by MELERIX »

You can make a xml multisell for change ;)
Riddler
Posts: 3
Joined: Tue May 29, 2007 9:13 am

Post by Riddler »

How do I do that? :oops:
Deadmeat
Posts: 286
Joined: Fri Sep 22, 2006 1:03 am
Location: Red Rock, Mars

Post 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>
Riddler
Posts: 3
Joined: Tue May 29, 2007 9:13 am

Post by Riddler »

awesome thank man!
Post Reply