Показать сообщение отдельно
Непрочитано 26.04.2009, 18:53   #5
Аватар для Padiator
Пользователь

По умолчанию Ответ: Написание продавца

Вот один из 4 мультиселлов:
В HTML шопа пробовал выставлять только один мультиселл, остальные стирал, та же самая ситуация.
Данные мультиселлы у меня не заняты, так что думаю не в номерах дело (пробовал другие делать).
Код:
<?xml version='1.0' encoding='utf-8'?>

<list maintainEnchantment="true">

  <!-- Stem -->
  <item id="1">
    <ingredient id="57" count="3000"/>
    <production id="1864" count="1"/>
  </item>

  <!-- Animal Bone -->
  <item id="2">
    <ingredient id="57" count="3000"/>
    <production id="1872" count="1"/>
  </item>

  <!-- Animal Skin -->
  <item id="3">
    <ingredient id="57" count="3000"/>
    <production id="1867" count="1"/>
  </item>

  <!-- Thread -->
  <item id="4">
    <ingredient id="57" count="3000"/>
    <production id="1868" count="1"/>
  </item>

  <!-- Coal -->
  <item id="5">
    <ingredient id="57" count="4000"/>
    <production id="1870" count="1"/>
  </item>

  <!-- Charcoal -->
  <item id="6">
    <ingredient id="57" count="4000"/>
    <production id="1871" count="1"/>
  </item>

  <!-- Varnish -->
  <item id="7">
    <ingredient id="57" count="6000"/>
    <production id="1865" count="1"/>
  </item>

  <!-- Cord -->
  <item id="8">
    <ingredient id="57" count="9000"/>
    <production id="1884" count="1"/>
  </item>

  <!-- Suede -->
  <item id="9">
    <ingredient id="57" count="12000"/>
    <production id="1866" count="1"/>
  </item>

  <!-- Braided Hemp -->
  <item id="10">
    <ingredient id="57" count="14000"/>
    <production id="1878" count="1"/>
  </item>

  <!-- Leather -->
  <item id="11">
    <ingredient id="57" count="20000"/>
    <production id="1882" count="1"/>
  </item>

  <!-- Silver Nugget -->
  <item id="12">
    <ingredient id="57" count="20000"/>
    <production id="1873" count="1"/>
  </item>

  <!-- Cokes -->
  <item id="13">
    <ingredient id="57" count="30000"/>
    <production id="1879" count="1"/>
  </item>

  <!-- Mithril Ore -->
  <item id="14">
    <ingredient id="57" count="30000"/>
    <production id="1876" count="1"/>
  </item>

  <!-- Compound Braid -->
  <item id="15">
    <ingredient id="57" count="90000"/>
    <production id="1889" count="1"/>
  </item>

  <!-- Oriharukon Ore -->
  <item id="16">
    <ingredient id="57" count="100000"/>
    <production id="1874" count="1"/>
  </item>

  <!-- Metal Hardener -->
  <item id="17">
    <ingredient id="57" count="150000"/>
    <production id="5220" count="1"/>
  </item>

  <!-- Asofe -->
  <item id="18">
    <ingredient id="57" count="200000"/>
    <production id="4043" count="1"/>
  </item>

  <!-- Thons -->
  <item id="19">
    <ingredient id="57" count="200000"/>
    <production id="4044" count="1"/>
  </item>

  <!-- Mold Lubricant -->
  <item id="20">
    <ingredient id="57" count="300000"/>
    <production id="4040" count="1"/>
  </item>

  <!-- Mold Glue -->
  <item id="21">
    <ingredient id="57" count="300000"/>
    <production id="4039" count="1"/>
  </item>

  <!-- Mold Hardener -->
  <item id="22">
    <ingredient id="57" count="300000"/>
    <production id="4041" count="1"/>
  </item>

  <!-- Stone of Purity -->
  <item id="23">
    <ingredient id="57" count="300000"/>
    <production id="1875" count="1"/>
  </item>

  <!-- Enria -->
  <item id="24">
    <ingredient id="57" count="500000"/>
    <production id="4042" count="1"/>
  </item>

</list>
Вот HTML шопа
Код:
<html><title>Resurser</title>
<body>
<center>
<img src="L2UI_CH3.herotower_deco" width=256 height=32>
</center>
<br>
<center>
<table width=270>
<tr><td align=center ><button value="Ресурсы" action="bypass -h npc_%objectId%_multisell 2000" width=150 height=31 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr><br>
<tr><td align=center ><button value="Рецепты" action="bypass -h npc_%objectId%_multisell 2001" width=150 height=31 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr><br>
<tr><td align=center ><button value="Куски" action="bypass -h npc_%objectId%_multisell 2002" width=150 height=31 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr><br>
<tr><td align=center ><button value="Соски" action="bypass -h npc_%objectId%_multisell 2003" width=150 height=31 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr>
</table>
<br>
<center>
<img src="L2UI_CH3.herotower_deco" width=256 height=32>
</center>
</body>
</html>
Вот создание торговца, который в итоге торгует Ц пухами за кристаллы
Код:
INSERT INTO `npc` VALUES ('2000', '111', 'Resurser', '1', 'Pokupai-Naletai', '1', 'LineageMonster4.Avatar_A', '10.00', '24.00', '70', 'male', 'L2Merchant', '40', '3862', '1493', null, null, '40', '43', '30', '21', '35', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '999', '0', '0', '0', '80', '120', null, '0', '0', '0', 'LAST_HIT', '0', '0', '0', 'fighter', 'false');
А вот торговец, который продает эхо кристаллы:
Код:
INSERT INTO `npc` VALUES ('2100', '30837', 'Resurs', '1', 'Bay-Craft', '1', 'L2Merchant', '20.00', '25.00', '70', 'male',  'L2Merchant', '40', '3862', '1493', '13.43', '3.09', '40', '43', '30', '21', '35', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '253', '0', '0', '0', '80', '120', null, '0', '0', '0', 'LAST_HIT');

Последний раз редактировалось Padiator; 27.04.2009 в 12:20.
Padiator вне форума Ответить с цитированием