tpuNIsher
04.11.2006, 07:51
Well, this is my current attempt on sharing and helping the community.
This thread discusses on how to get a retail like itemdata ( as stat ).
A lot of us should already know about it, so, this thread is directed to the newcomers and to the people that doesn't know about it.
What you need to understand this thread is knowledge on client editting, understanding client files, a brain and server sided scripting knowledge as well.
Let's start with 1 single item 1st.
Itemname-e:
id name add_name description popup set_ids set_bonus_desc set_extra_id set_extra_desc unk[0] unk[1] special_enchant_amount special_enchant_desc
7880 Steel Sword -1 0 0 0
Above, we can see the name of the item and etc descriptions. That really doesn't help you much if you want to create the item scriptwise(itemdata). So, what can you do to gather the information on how to make it as retail?
You can:
1. research the web and find more info on the item which sucks cos' it's not always that the info is accurate.
OR
2. you can gather the information from the c5 retail client files ;) ( which is the best way )
We will follow the second way in this tutorial. You might have a question about how to do so..
Well, we are getting to that.
First of all, let's make the item serversided just so we have something to work on.
Itemdata:
item_begin weapon 7880 [iron_sword] item_type=weapon slot_bit_type={rhand} armor_type=none etcitem_type=none recipe_id=0 blessed=0 weight=2100 default_action=action_equip consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=2 spiritshot_count=2 reduced_soulshot={} reduced_spiritshot={} reduced_mp_consume={} immediate_effect=1 price=0 default_price=768 item_skill=[none] critical_attack_skill=[none] attack_skill=[none] magic_skill=[none] item_skill_enchanted_four=[none] material_type=steel crystal_type=d crystal_count=139 is_trade=1 is_drop=1 is_destruct=1 physical_damage=49 random_damage=10 weapon_type=sword can_penetrate=0 critical=8 hit_modify=0 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=40 damage_range={0;0;40;120} attack_speed=325 reuse_delay=0 mp_consume=0 magical_damage=26 durability=95 damaged=0 physical_defense=0 magical_defense=0 mp_bonus=0 category={} enchanted=0 html=[item_default.htm] equip_pet={0} magic_weapon=0 enchant_enable=0 can_equip_sex=-1 can_equip_race={} can_equip_change_class=-1 can_equip_class={} can_equip_agit=-1 can_equip_castle=-1 can_equip_castle_num={} can_equip_clan_leader=-1 can_equip_clan_level=-1 can_equip_hero=-1 can_equip_nobless=-1 can_equip_chaotic=-1 item_end
Well, you might question about where did i get the weight and other stats from..
Well, take a look at weapongrp.
Weapongrp:
tag id drop_type drop_anim_type drop_radius drop_height UNK_0 drop_meshtex[0] drop_meshtex[1] icon[0] icon[1] icon[2] icon[3] icon[4] icon[5] icon[6] icon[7] icon[8] durability weight material crystallizable projectile_? body_part handness mt_pair_cntm mt_pair_m[0] mt_pair_m[1] mt_pair_cntt mt_pair_t[0] mt_pair_t[1] mt_pair_t[2] item_sound_cnt item_sound[0] item_sound[1] item_sound[2] item_sound[3] drop_sound equip_sound effect random_damage patt matt weapon_type crystal_type critical hit_mod avoid_mod shield_pdef shield_rate speed mp_consume SS_count SPS_count curvature UNK_2 is_hero UNK_3 effA effB junk1A[0] junk1A[1] junk1A[2] junk1A[3] junk1A[4] junk1B[0] junk1B[1] junk1B[2] junk1B[3] junk1B[4] rangeA rangeB junk2A[0] junk2A[1] junk2A[2] junk2A[3] junk2A[4] junk2A[5] junk2B[0] junk2B[1] junk2B[2] junk2B[3] junk2B[4] junk2B[5]
0 7880 1 1 7 10 0 LineageWeapons.iron_sword_m00_wp LineageWeaponsTex.iron_sword_t00_wp icon.weapon_iron_sword_i00 95 2100 51 1 0 14 2 1 LineageWeapons.iron_sword_m00_wp 1 LineageWeaponsTex.iron_sword_t00_wp 4 ItemSound.sword_great_7 ItemSound.sword_great_4 ItemSound.sword_big_9 ItemSound.public_sword_shing_8 ItemSound.itemdrop_sword ItemSound.itemequip_sword 10 49 26 1 1 8 0 0 0 0 325 0 2 2 1000 0 -1 0 0.00000000 0.00000000 0.00000000 1.00000000 1.00000000 LineageWeapons.rangesample 1.60000002 0.80000001 0.80000001 xx.xx000000 0.00000000 0.00000000
What are the things that will help us get a retail like itemdata for that item?
tag id drop_meshtex[0] durability weight material crystallizable projectile_? body_part handness random_damage patt matt weapon_type crystal_type critical hit_mod avoid_mod shield_pdef shield_rate speed mp_consume SS_count SPS_count curvature UNK_2 is_hero
0 7880 LineageWeapons.iron_sword_m00_wp 95 2100 51 1 0 14 2 10 49 26 1 1 8 0 0 0 0 325 0 2 2 1000 0 -1
There, you have the: id as "7880", name as "", "durability=95", "weight=2100" "material_type=steel",
"is_destruct=1", "item_type=weapon", "slot_bit_type={rhand}", "physical_damage=49", "magical_damage=26", "weapon_type=sword", "crystal_type=d", "critical=8", "hit_modify=0", "avoid_modify=0", "shield_defense=0", "shield_defense_rate=0", "attack_speed=325", "mp_consume=0", "soulshot_count=2", "spiritshot_count=2", "can_equip_hero=-1".
How to understand which are the types? Well, compare with other items for example, small_sword. Look up the id in weapongrp (1) and check the types for material / bodypart etc. If you compare enough, you can make your own type list for each and you can get a itemdata as good as retail without having to look up the web and just from your own client files ;)
Well then, that was short wasn't it? :p
Now, go finish the rest and post them :p
My 1st version of some of the items is attached to this post. Please post if you have something to contribute or if you have questions regarding understanding the thread -.-
[i]Вложения из исходного сообщения (сами файлы в копии отсутствуют):
itemdata_c5.rar — 4976 байт
This thread discusses on how to get a retail like itemdata ( as stat ).
A lot of us should already know about it, so, this thread is directed to the newcomers and to the people that doesn't know about it.
What you need to understand this thread is knowledge on client editting, understanding client files, a brain and server sided scripting knowledge as well.
Let's start with 1 single item 1st.
Itemname-e:
id name add_name description popup set_ids set_bonus_desc set_extra_id set_extra_desc unk[0] unk[1] special_enchant_amount special_enchant_desc
7880 Steel Sword -1 0 0 0
Above, we can see the name of the item and etc descriptions. That really doesn't help you much if you want to create the item scriptwise(itemdata). So, what can you do to gather the information on how to make it as retail?
You can:
1. research the web and find more info on the item which sucks cos' it's not always that the info is accurate.
OR
2. you can gather the information from the c5 retail client files ;) ( which is the best way )
We will follow the second way in this tutorial. You might have a question about how to do so..
Well, we are getting to that.
First of all, let's make the item serversided just so we have something to work on.
Itemdata:
item_begin weapon 7880 [iron_sword] item_type=weapon slot_bit_type={rhand} armor_type=none etcitem_type=none recipe_id=0 blessed=0 weight=2100 default_action=action_equip consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=2 spiritshot_count=2 reduced_soulshot={} reduced_spiritshot={} reduced_mp_consume={} immediate_effect=1 price=0 default_price=768 item_skill=[none] critical_attack_skill=[none] attack_skill=[none] magic_skill=[none] item_skill_enchanted_four=[none] material_type=steel crystal_type=d crystal_count=139 is_trade=1 is_drop=1 is_destruct=1 physical_damage=49 random_damage=10 weapon_type=sword can_penetrate=0 critical=8 hit_modify=0 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=40 damage_range={0;0;40;120} attack_speed=325 reuse_delay=0 mp_consume=0 magical_damage=26 durability=95 damaged=0 physical_defense=0 magical_defense=0 mp_bonus=0 category={} enchanted=0 html=[item_default.htm] equip_pet={0} magic_weapon=0 enchant_enable=0 can_equip_sex=-1 can_equip_race={} can_equip_change_class=-1 can_equip_class={} can_equip_agit=-1 can_equip_castle=-1 can_equip_castle_num={} can_equip_clan_leader=-1 can_equip_clan_level=-1 can_equip_hero=-1 can_equip_nobless=-1 can_equip_chaotic=-1 item_end
Well, you might question about where did i get the weight and other stats from..
Well, take a look at weapongrp.
Weapongrp:
tag id drop_type drop_anim_type drop_radius drop_height UNK_0 drop_meshtex[0] drop_meshtex[1] icon[0] icon[1] icon[2] icon[3] icon[4] icon[5] icon[6] icon[7] icon[8] durability weight material crystallizable projectile_? body_part handness mt_pair_cntm mt_pair_m[0] mt_pair_m[1] mt_pair_cntt mt_pair_t[0] mt_pair_t[1] mt_pair_t[2] item_sound_cnt item_sound[0] item_sound[1] item_sound[2] item_sound[3] drop_sound equip_sound effect random_damage patt matt weapon_type crystal_type critical hit_mod avoid_mod shield_pdef shield_rate speed mp_consume SS_count SPS_count curvature UNK_2 is_hero UNK_3 effA effB junk1A[0] junk1A[1] junk1A[2] junk1A[3] junk1A[4] junk1B[0] junk1B[1] junk1B[2] junk1B[3] junk1B[4] rangeA rangeB junk2A[0] junk2A[1] junk2A[2] junk2A[3] junk2A[4] junk2A[5] junk2B[0] junk2B[1] junk2B[2] junk2B[3] junk2B[4] junk2B[5]
0 7880 1 1 7 10 0 LineageWeapons.iron_sword_m00_wp LineageWeaponsTex.iron_sword_t00_wp icon.weapon_iron_sword_i00 95 2100 51 1 0 14 2 1 LineageWeapons.iron_sword_m00_wp 1 LineageWeaponsTex.iron_sword_t00_wp 4 ItemSound.sword_great_7 ItemSound.sword_great_4 ItemSound.sword_big_9 ItemSound.public_sword_shing_8 ItemSound.itemdrop_sword ItemSound.itemequip_sword 10 49 26 1 1 8 0 0 0 0 325 0 2 2 1000 0 -1 0 0.00000000 0.00000000 0.00000000 1.00000000 1.00000000 LineageWeapons.rangesample 1.60000002 0.80000001 0.80000001 xx.xx000000 0.00000000 0.00000000
What are the things that will help us get a retail like itemdata for that item?
tag id drop_meshtex[0] durability weight material crystallizable projectile_? body_part handness random_damage patt matt weapon_type crystal_type critical hit_mod avoid_mod shield_pdef shield_rate speed mp_consume SS_count SPS_count curvature UNK_2 is_hero
0 7880 LineageWeapons.iron_sword_m00_wp 95 2100 51 1 0 14 2 10 49 26 1 1 8 0 0 0 0 325 0 2 2 1000 0 -1
There, you have the: id as "7880", name as "", "durability=95", "weight=2100" "material_type=steel",
"is_destruct=1", "item_type=weapon", "slot_bit_type={rhand}", "physical_damage=49", "magical_damage=26", "weapon_type=sword", "crystal_type=d", "critical=8", "hit_modify=0", "avoid_modify=0", "shield_defense=0", "shield_defense_rate=0", "attack_speed=325", "mp_consume=0", "soulshot_count=2", "spiritshot_count=2", "can_equip_hero=-1".
How to understand which are the types? Well, compare with other items for example, small_sword. Look up the id in weapongrp (1) and check the types for material / bodypart etc. If you compare enough, you can make your own type list for each and you can get a itemdata as good as retail without having to look up the web and just from your own client files ;)
Well then, that was short wasn't it? :p
Now, go finish the rest and post them :p
My 1st version of some of the items is attached to this post. Please post if you have something to contribute or if you have questions regarding understanding the thread -.-
[i]Вложения из исходного сообщения (сами файлы в копии отсутствуют):
itemdata_c5.rar — 4976 байт