[REQUEST BEFORE RELEASE] Parser item

08/14/2016 20:26 forsatus#1
Hi, i work on public release of customisable parser for the item.dat file (maybe for your own p-server ??)

Someone know how to know if the item is (main weapon, armor, gloves etc ...) ?

Tell me all you know about this file (for fast coding).

Code:
VNUM 1 70
NAME zts3e
INDEX 0 0 0 0 1 0
TYPE 0 1
FLAG 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DATA 1 20 28 20 4 70 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BUFF -1 80 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
LINEDESC 1
zts4e
END
#========================================================
Code:
VNUM (VNUM) (PRICE)
NAME (NAME ZTS)
INDEX 0 (item_type) (class_item) (eq_slot) (id) (item_eff)
TYPE 0 1
FLAG 0 0 0 (can_sell) (can_drop) (can_trade) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (hero_lvl)
DATA 1 20 28 20 4 70 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BUFF -1 80 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
LINEDESC 1
zts4e
END
#========================================================
08/14/2016 21:14 SC909#2
Maybe have a look at the TYPE:
TYPE 0 1 - Main weapon (Adv.)
TYPE 1 1 - Second weapon (Adv.)
TYPE 0 2 - Main weapon (Sword)
TYPE 0 4 - Second weapon (Arch)
TYPE 0 8 - SP Mage
TYPE 1 2 - Second weapon (Sword)

and so on.. And I remember there was something similar to it, I remember something to do with ernilos and his dump tool if I remember well.
08/14/2016 21:17 forsatus#3
Quote:
Originally Posted by SC909 View Post
Maybe have a look at the TYPE:
TYPE 0 1 - Main weapon (Adv.)
TYPE 1 1 - Second weapon (Adv.)
TYPE 0 2 - Main weapon (Sword)
TYPE 0 4 - Second weapon (Arch)
TYPE 0 8 - SP Mage
TYPE 1 2 - Second weapon (Sword)

and so on.. And I remember there was something similar to it, I remember something to do with ernilos and his dump tool if I remember well.
ok thx

maybe it look like :
TYPE (CLASSE) (EQUIPEMENT SLOT) ??
08/14/2016 21:17 FI0w#4
Pn'd
08/14/2016 21:19 SC909#5
Quote:
Originally Posted by forsatus View Post
ok thx

maybe it look like :
TYPE (CLASSE) (EQUIPEMENT SLOT) ??
[Only registered and activated users can see links. Click Here To Register...]

0 1 = Adventurer
0 2 = Swordsman
1 4 = Archer
2 8 = Mage

0 - melee, 1 - range, 2 - magic
1, 2, 4, 8 - classes :D

It's not correct, but that is what I've got

TYPE 0 0 - gloves, shoes, masks, pairy, jewellery, amulets, tarots, pearls - pet and partner

TYPE 0 14 - masks, hats, costumes
TYPE 0 15 - adv hats, hippo hat
TYPE 0 1 - adv weapon, adv hat, kovolt hat/mask, masks(glasses)
TYPE 1 1 - 2nd adv weapon
TYPE 0 1 - adv clothes
TYPE 0 2 - sp warrior
TYPE 0 2 - weapon warrior
TYPE 0 4 - 2nd weapon archer, sp archer
TYPE 0 8 - sp mage
TYPE 1 0 - boxes
TYPE 1 2 - 2nd weapon warrior
TYPE 1 4 - weapon archer
08/14/2016 22:23 forsatus#6
INDEX <inventoy_type> <Equipement_slot> ??
08/14/2016 22:56 SC909#7
Quote:
Originally Posted by forsatus View Post
INDEX <inventoy_type> <Equipement_slot> ??
Have a look at INDEX 4 cause what I got for it is:
Act 5.1: main weapons, second weapons, armor, hats, masks, tarots, some costumes, pet pearls, a bit of event stuff, box raid(like sp5/6,act4..)sp pirate.

INDEX ?? <item_type> <class_item> <eq_slot> <img> <item_eff>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

FLAG 0 0 0 <sell> <drop> <trade> 0 0 <special??> <onlyName> <production??> <??> 0 0 0 0 0 0 0 <rep_item> <heroLv?> 0

I was only able to identify part of FLAG: if sell = 1 then if you look at the item in the game, it will display sell is not an option.
I don't know about special and production as all the items that I checked are production items (scrolls) also special items too (raid seals, campfire, flags).
The "??" seems to be used for Cylloan water and some kind of a box that I've never seen before.

As for the topic use eq_slot from INDEX, and VNUM id to define which items are weapons, armor etc.