Xoxland FORUM Суббота, 05.10.2024, 21:23
Главная страница | Регистрация | Вход Приветствую Вас Гость | RSS
[Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Создание ГМ шоп на джава сервере!
XoxlandDate: Четверг, 26.04.2007, 20:11 | Message # 1
Admin
Group: Батька
Posts: 126
Reputation: 9
Status: Offline
В папке C:\server\gameserver\data\multisell\
Есть файлы ХМД формата, в которых есть инфа о разных вещах.
Теперь нам нужно создать какогото ГМшопера к примеру "Алексис" у которого люди смогут покупать любые вещи:
Идем по адресу gameserver\data\html\merchant\.
Создаем предварительно в надежном месте (например, в моих документах ) текстовый файлик. Назовем его 7099.
Теперь открываем его и пишем следующее:
Код:
<html>
<head>
<body>
<table width=240>
<tr><td><font color="FF0066">Магазин</font></td></tr>
<tr>
<td>
<BR>
ГМ-шоп<br>
</td></tr>
</table>
<br>
<table width=224 border=0>
<tr>
<td width=32 height=34><img src=icon.etc_alphabet_l_i00 width=32 height=32 align=center></td>
<td width=32 height=34><img src=icon.etc_alphabet_i_i00 width=32 height=32 align=center></td>
<td width=32 height=34><img src=icon.etc_alphabet_n_i00 width=32 height=32 align=center></td>
<td width=32 height=34><img src=icon.etc_alphabet_e_i00 width=32 height=32 align=center></td>
<td width=32 height=34><img src=icon.etc_alphabet_a_i00 width=32 height=32 align=center></td>
<td width=32 height=34><img src=icon.etc_alphabet_g_i00 width=32 height=32 align=center></td>
<td width=32 height=34><img src=icon.etc_alphabet_e_i00 width=32 height=32 align=center></td>
<td width=32 height=34><img src=icon.etc_alphabet_e_i00 width=32 height=32 align=center></td>
</tr>
<tr>
</tr>
<tr>
<td width=32 height=34></td>
<td width=32 height=34></td>
<td width=32 height=34></td>
<td width=32 height=34><img src=icon.etc_alphabet_ii_i00 width=32 height=32 align=center></td>
<td width=32 height=34></td>
<td width=32 height=34></td>
<td width=32 height=34></td>
</tr>
</table>
</center>
<br>
<center>
<img src="L2UI.SquareWhite" width=200 height=1>
</center>
<br>
<center>
<font color="LEVEL">Гм шоп</font>
</center>
<br>
<center>
<img src="L2UI.SquareWhite" width=260 height=1>
</center>
<br>
<center>
<button value="Swords(Single)" action="bypass -h npc_%objectId%_multisell 5555" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Swords(With SA)" action="bypass -h npc_%objectId%_multisell 5556" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Swords(Dual)" action="bypass -h npc_%objectId%_multisell 5557" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Daggers" action="bypass -h npc_%objectId%_multisell 5558" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Bows/Arrows" action="bypass -h npc_%objectId%_multisell 5559" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Fists" action="bypass -h npc_%objectId%_multisell 5560" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Polearms" action="bypass -h npc_%objectId%_multisell 5561" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Blunts" action="bypass -h npc_%objectId%_multisell 5562" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Staffs" action="bypass -h npc_%objectId%_multisell 5563" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Mob Items" action="bypass -h npc_%objectId%_multisell 5564" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Infinity Items" action="bypass -h npc_%objectId%_multisell 5565" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Crystal Carol" action="bypass -h npc_%objectId%_multisell 5566" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<button value="Soski" action="bypass -h npc_%objectId%_multisell 1000" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
<br>
<br>
<button value="Sell" action="bypass -h npc_%objectId%_Sell" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">
</center>
<br>
<center>
<img src="L2UI.SquareWhite" width=260 height=1>
</center>
</body>
</html>






ОТК
 
XoxlandDate: Четверг, 26.04.2007, 20:11 | Message # 2
Admin
Group: Батька
Posts: 126
Reputation: 9
Status: Offline
Сохряняем этот файл как 7099.html, затем копируем его в C:\server\gameserver\data\html\merchant\

Для того, чтобы разобраться с мультиселл, приведу пример.
<button value="Soski" action="bypass -h npc_%objectId%_multisell 1000" width=204 height=20 back="sek.cbui36" fore="sek.cbui75">






ОТК
 
XoxlandDate: Четверг, 26.04.2007, 20:12 | Message # 3
Admin
Group: Батька
Posts: 126
Reputation: 9
Status: Offline
Где 1000 это ваша XML таблица в C:\server\gameserver\data\multisell\
В ней размещены все ИД,цены вещей которые будут продаватся именно в разделе "Soski"(это сс и бсс)

Итак, половина работы выполнена.

Далее. Открываем \gameserver\data\multisell\
И приступаем к добавлению вещей
(Я расскажу на примере "Soski", а дальше вы уже сами ищите ИД.)

Делаем копию любого файла из папки в любое удобное место. Открываем его, удаляем все, что там есть, и вписываем это:

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

<!-- Store: ss/sps/bsps DCBA -->

<list>

<!-- [SoulShots D Grade] for [Adena] -->
<item id="1">
<ingredient id="57" count="25" enchant="0"/>
<production id="1463" count="1" enchant="0"/>
</item>
<!-- [SoulShots C Grade] for [Adena] -->
<item id="2">
<ingredient id="57" count="60" enchant="0"/>
<production id="1464" count="1" enchant="0"/>
</item>
<!-- [SoulShots B Grade] for [Adena] -->
<item id="3">
<ingredient id="57" count="90" enchant="0"/>
<production id="1465" count="1" enchant="0"/>
</item>
<!-- [SoulShots A Grade] for [Adena] -->
<item id="4">
<ingredient id="57" count="110" enchant="0"/>
<production id="1466" count="1" enchant="0"/>
</item>
<!-- [SpiritShots D Grade] for [Adena] -->
<item id="5">
<ingredient id="57" count="100" enchant="0"/>
<production id="2510" count="1" enchant="0"/>
</item>
<!-- [SpiritShots C Grade] for [Adena] -->
<item id="6">
<ingredient id="57" count="190" enchant="0"/>
<production id="2511" count="1" enchant="0"/>
</item>
<!-- [SpiritShots B Grade] for [Adena] -->
<item id="7">
<ingredient id="57" count="260" enchant="0"/>
<production id="2512" count="1" enchant="0"/>
</item>
<!-- [SpiritShots A Grade] for [Adena] -->
<item id="8">
<ingredient id="57" count="310" enchant="0"/>
<production id="2513" count="1" enchant="0"/>
</item>
<!-- [Blessed SpiritShots D Grade] for [Adena] -->
<item id="9">
<ingredient id="57" count="110" enchant="0"/>
<production id="3948" count="1" enchant="0"/>
</item>
<!-- [Blessed SpiritShots C Grade] for [Adena] -->
<item id="10">
<ingredient id="57" count="220" enchant="0"/>
<production id="3949" count="1" enchant="0"/>
</item>
<!-- [Blessed SpiritShots B Grade] for [Adena] -->
<item id="11">
<ingredient id="57" count="310" enchant="0"/>
<production id="3950" count="1" enchant="0"/>
</item>
<!-- [Blessed SpiritShots A Grade] for [Adena] -->
<item id="12">
<ingredient id="57" count="380" enchant="0"/>
<production id="3948" count="1" enchant="0"/>
</item>
<!-- [SpiritShots No-Grade] for [Adena] -->
<item id="14">
<ingredient id="57" count="40" enchant="0"/>
<production id="2509" count="1" enchant="0"/>
</item>
<!-- [Blessed SpiritShots No-Grade] for [Adena] -->
<item id="15">
<ingredient id="57" count="60" enchant="0"/>
<production id="3947" count="1" enchant="0"/>
</item>
</list>






ОТК
 
XoxlandDate: Четверг, 26.04.2007, 20:13 | Message # 4
Admin
Group: Батька
Posts: 126
Reputation: 9
Status: Offline
Примечание:
<ingredient id="57" count="60" enchant="0"/> - это ИД Адены(57) а 60 это стоимость одного предмета.
<production id="3947" count="1" enchant="0"/>Здесь ИД(3947) блесседа но грейд, а "1" - это количество сосок по цене 60 аден.

Сохряняем и переименовуем эту таблицу в 1000.xml, затем копируем ее в папку gameserver\data\multisell\

Вот и все. Как видите, ничег сложного. Лучше потратить день-два на создание своего, приятного вам, чем создавать тут кучу тем с названием "дайте норм ГМ шоп". Надеюсь, понятно объяснил.






ОТК
 
  • Страница 1 из 1
  • 1
Поиск:

Copyright MyCorp © 2007