Jump to content

Кастомные предметы


cLereAt

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   5
  • Joined:  12/23/11
  • Last Seen:  

1.  Структура
2. Размещение вещей в Папке Данных
2.1 idnum2itemdisplaynametable.txt
2.2 idnum2itemdesctable.txt
2.3 idnum2itemresnametable.txt
2.4 itemslotcounttable.txt
2.5 Файлы не определенных вещей
3.  Клиент
4. Просмотр IDs, получить кастомные вещи без Xray
5.  Модификации
5.1  Замена спрайтов
5.2  Ограничение вещей
5.3  Скрипты вещей
5.4 Решение оружейных спрайтов (временно)

Во-первых, давайте взглянем на item_db в db папке, и его структуру:

ID,DBName,ScreenName,Type,Price,Sell,Weight,ATK,DEF,Range,Slot,Job,Upper,Gender,Loc,wLV,eLV,
Refineable,View,{Script},{OnEquip_Script},{OnUnequip_Script}

  • ID: ID вещи
  • DB Name: Это первое имя DB имени. Когда вы используете @item, и вы знаете название вещи, но не ID - это имя вместо этого.
  • ScreenName: Это имя для просмотра на сервере.
  • Type: Назначение вещи.

0 = Используемое : зелья
2 = Используемое : остальное
3 = Разное
4 = Оружие
5 = Доспех
6 = Карта
7 = Яйцо питомца
8 = Экипировка питомца
10 = Стрелы/Боеприпасы
11 = Используемое : задержка (вещи со скриптом "питомец" или "itemskill")

  • Price: По умолчанию цена у НПС
  • Sell: Цена продажи в зени НПСу
  • Weight: Вес вещи * 10. Значит, она весит 0,1, для каждой, должны быть введены как 1.
  • ATK: В случае оружия - базовая атака.

In RE enabled servers this field have a optional delimiter : to define this item's weaponMATK bonus, for example, 30:50 would mean the item gives 30 atk and 50 weaponMATK

  • DEF: Базовая защита для брони
  • Range: Maximum range in map cells a weapon allows to be the player apart from it's target.
  • Slot: Количество слотов для карт
  • Job: Профессия, доступная для этой вещи. Значения ниже могут объединять для одной вещи несколько проф., т.е. 0x2|0x4 -> 0x6 (Мечник+Маг)


(S.) Novice		 (2^00): 0x00000001
Swordman			(2^01): 0x00000002
Mage				(2^02): 0x00000004
Archer			  (2^03): 0x00000008
Acolyte			 (2^04): 0x00000010
Merchant			(2^05): 0x00000020
Thief			   (2^06): 0x00000040
Knight			  (2^07): 0x00000080
Priest			  (2^08): 0x00000100
Wizard			  (2^09): 0x00000200
Blacksmith		  (2^10): 0x00000400
Hunter			  (2^11): 0x00000800
Assassin			(2^12): 0x00001000
Unused			  (2^13): 0x00002000
Crusader			(2^14): 0x00004000
Monk				(2^15): 0x00008000
Sage				(2^16): 0x00010000
Rogue			   (2^17): 0x00020000
Alchemist		   (2^18): 0x00040000
Bard/Dancer		 (2^19): 0x00080000
Unused			  (2^20): 0x00100000
Taekwon			 (2^21): 0x00200000
StarGladiator	   (2^22): 0x00400000
Soul Linker		 (2^23): 0x00800000
Gunslinger		  (2^24): 0x01000000
Ninja			   (2^25): 0x02000000
All Classes			   : 0xFFFFFFFF
Every Job Except Novice   : 0xFFFFFFFE

  • Upper: Указывает, будет ли предмет использован обычным, ребенком или возрожденным классом. Значения ниже могут быть объединены, т.е. 1 | 4 -> 5 (Обычный + Бэбик)

1 = Normal
2 = Reborn Classes (High Wizards, Champions etc.)
4 = Baby Classes

  • Gender: Половые ограничение для предмета.

0 = Female
1 = Male
2 = No restriction (both)

  • Loc: Определяет вещь: ботинки, аксессуар, доспех. Значения ниже могут быть объединены, т.е. 136 будет означать как аксессуар слоты (типичное значение для аксессуаров).

(2^0) 001 = Lower headgear
(2^1) 002 = Right hand
(2^2) 004 = Mantle
(2^3) 008 = Accessory 1
(2^4) 016 = Armor
(2^5) 032 = Left hand
(2^6) 064 = Shoes
(2^7) 128 = Accessory 2
(2^8) 256 = Upper headgear
(2^9) 512 = Middle headgear
(2^15) 32768 = Arrow (arrow-type items only)

  • wLV: Weapon level of an item (1-4), other items 0.
  • eLV: Минимальный базовый уровень для использования.
  • Refineable: Whether the item is available for refining (1) or not (0).
  • View: Specifies the client-side look for the item.

Типы оружия:

  1. Daggers
  2. One-Handed Swords
  3. Two-Handed Swords
  4. One-Handed Spears
  5. Two-Handed Spears
  6. One-Handed Axes
  7. Two-Handed Axes
  8. Maces
  9. (not used)
  10. Wand/Staff
  11. Bows/Crossbows
  12. Knuckle Weapons
  13. Musical Instruments
  14. Whips
  15. Books
  16. Katars
  17. Revolvers
  18. Rifles
  19. Shotguns
  20. Gatling guns
  21. Grenade launchers
  22. Fuuma shuriken

Типы щитов:

  1. Guard, Novice Guard
  2. Buckler
  3. Shield, Holy Guard, Evangelist
  4. Mirror Shield

Типы боеприпасов:

  1. Arrows
  2. Throw-able daggers
  3. Bullets
  4. Shells
  5. Grenades
  6. Shuriken
  7. Kunai

Типы головных уборов. Пожалуйста, обратитесь к разделу Просмотр идентификаторов данного руководства.

  • {Script}: This is where you put your item bonus. Whether it's an usable item or an equip item, it will take effect according to the item type.
  • {OnEquip_Script}: This is where the bonus you want to be applied upon equipping goes. It will only execute as soon as you equip the item.
  • {OnUnequip_Script}: This is where the bonus you want to be applied upon unequipping goes. It will only execute as soon as you unequip the item.

In the doc folder look for a text file called "item_bonus", it shows all the scripts items can have and how they work.

Размещение вещей в Папке Данных

После создания предмета, вставьте в конец файла item_db2.txt свой код, так что вы не столкнетесь с проблемами обновления SVN. Затем перейдите в папку данных и измените следующие файлы по-порядку.

idnum2itemdisplaynametable.txt

Этот файл содержит имена предметов, как показано внутри клиента. Каждый элемент, добавляется как:

​ItemID#ItemName#

ItemID is the number from your ID column inside the item db. If your item name contains spaces, replace those with _ (underscore).

Не удаляйте тему!

Завершение следует...

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

Пункт Upper следует обновить - добавить значение для 3-их профессий.

8 = Third Classes

Следует отметить, что сложение значений в пункте Job производится не в десятичной системе, а в 16-ричной.

Например:

0x00000002(Swordman)+0x00000004(Mage)+0x00000008(Archer) = 0x00000016 0x0000000E

Добавить ещё один пункт в Type:

17 = Метательный предмет 

Добавить ещё три пункта в Loc:

(2^10) 1024 = Costume Top Headgear
(2^11) 2048 = Costume Mid Headgear
(2^12) 4096 = Costume Low Headgear
Edited by Lilith
  • Upvote 1
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  02/09/12
  • Last Seen:  

4. Просмотр IDs, получить кастомные вещи без Xray

тыкни пальцем где это? лично я ничего не понял с твоего поста как получить вещи 6е3 Храя

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

Не удаляйте тему!

Завершение следует...

Сколько же нам его ждать... :P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...