Files
Leviathan/Client/Game/game/Resource/NpcResource.h
T
2026-06-01 12:46:52 +02:00

154 lines
4.8 KiB
C

#pragma once
#pragma pack( 1 )
struct NpcResourceBase
{
NpcResourceBase()
{
id = 0;
text_id = 0;
name_text_id = 0;
race_id = 0;
sexsual_id = 0;
x = 0;
y = 0;
z = 0;
face = 0;
local_flag = 0;
face_x = 0;
face_y = 0;
face_z = 0;
memset( model_file, 0, sizeof( model_file ) );
hair_id = 0;
face_id = 0;
body_id = 0;
weapon_item_id = 0;
shield_item_id = 0;
clothes_item_id = 0;
helm_item_id = 0;
gloves_item_id = 0;
boots_item_id = 0;
belt_item_id = 0;
mantle_item_id = 0;
necklace_item_id = 0;
earring_item_id = 0;
ring1_item_id = 0;
ring2_item_id = 0;
motion_id = 0;
is_roam = 0;
roaming_value = 0;
standard_walk_speed = 0;
standard_run_speed = 0;
walk_speed = 0;
run_speed = 0;
attackable = 0;
offensive_type = 0;
spawn_type = 0;
chase_range = 0;
regen_time = 0;
level = 0;
stat_id = 0;
attack_range = 0;
attack_speed_type = 0;
hp = 0;
mp = 0;
attack_point = 0;
magic_point = 0;
defence = 0;
magic_defence = 0;
attack_speed = 0;
magic_speed = 0;
accuracy = 0;
avoid = 0;
magic_accuracy = 0;
magic_avoid = 0;
memset( ai_script, 0, sizeof( ai_script ) );
memset( contact_script, 0, sizeof( contact_script ) );
}
int id; ///< INT NOT NULL, -- 1
int text_id; ///< INT NOT NULL, -- 2
int name_text_id; ///< INT NOT NULL, -- 3
int race_id; ///< INT NOT NULL, -- 4
int sexsual_id; ///< INT NOT NULL, -- 5
int x; ///< INT NOT NULL, -- 6
int y; ///< INT NOT NULL, -- 7
int z; ///< INT NOT NULL, -- 8
int face; ///< INT NOT NULL, -- 9
int local_flag; ///< INT NOT NULL, -- 10
//npc자동생성 NPCEventPeriodResource에서 담당 (is_periodic, begin_period, end_period 삭제)
int face_x; ///< INT NOT NULL, -- 11
int face_y; ///< INT NOT NULL, -- 12
int face_z; ///< INT NOT NULL, -- 13
char model_file[256]; ///< VARCHAR(256) NOT NULL -- 14
int hair_id; ///< INT NOT NULL, -- 15
int face_id; ///< INT NOT NULL, -- 16
int body_id; ///< INT NOT NULL, -- 17
int weapon_item_id; ///< INT NOT NULL, -- 18
int shield_item_id; ///< INT NOT NULL, -- 19
int clothes_item_id; ///< INT NOT NULL, -- 20
int helm_item_id; ///< INT NOT NULL, -- 21
int gloves_item_id; ///< INT NOT NULL, -- 22
int boots_item_id; ///< INT NOT NULL, -- 23
int belt_item_id; ///< INT NOT NULL, -- 24
int mantle_item_id; ///< INT NOT NULL, -- 25
int necklace_item_id; ///< INT NOT NULL, -- 26
int earring_item_id; ///< INT NOT NULL, -- 27
int ring1_item_id; ///< INT NOT NULL, -- 28
int ring2_item_id; ///< INT NOT NULL, -- 29
int motion_id; ///< INT NOT NULL, -- 30
int is_roam; ///< INT NOT NULL, -- 31
int roaming_value; ///< INT NOT NULL, -- 32
int standard_walk_speed; ///< INT NOT NULL, -- 33
int standard_run_speed; ///< INT NOT NULL, -- 34
int walk_speed; ///< INT NOT NULL, -- 35
int run_speed; ///< INT NOT NULL, -- 36
int attackable; ///< TINYINT NOT NULL, -- 37
int offensive_type; ///< TINYINT NOT NULL, -- 38
int spawn_type; ///< INT NOT NULL, -- 39
int chase_range; ///< INT NOT NULL, -- 40
int regen_time; ///< INT NOT NULL, -- 41
int level; ///< INT NOT NULL, -- 42
int stat_id; ///< INT NOT NULL, -- 43
int attack_range; ///< INT NOT NULL, -- 44
int attack_speed_type; ///< INT NOT NULL, -- 45 : 2006/08/02 추가
int hp; ///< INT NOT NULL, -- 46
int mp; ///< INT NOT NULL, -- 47
int attack_point; ///< INT NOT NULL, -- 48
int magic_point; ///< INT NOT NULL, -- 49
int defence; ///< INT NOT NULL, -- 50
int magic_defence; ///< INT NOT NULL, -- 51
int attack_speed; ///< INT NOT NULL, -- 52
int magic_speed; ///< INT NOT NULL, -- 53
int accuracy; ///< INT NOT NULL, -- 54
int avoid; ///< INT NOT NULL, -- 55
int magic_accuracy; ///< INT NOT NULL, -- 56
int magic_avoid; ///< INT NOT NULL, -- 57
char ai_script[256]; ///< VARCHAR(256) NOT NULL -- 58
char contact_script[256]; ///< VARCHAR(256) NOT NULL -- 59
int texture_group; ///< INT NOT NULL -- 60 / -1: 기본 텍스쳐, 0~9 그룹화된 텍스쳐
char type; /// 2011.03.18 기타, 상인, 텔레포터 - prodongi
};
struct NpcEventPeriodResourceBase
{
NpcEventPeriodResourceBase()
{
id = 0;
local_flag = 0;
begin_of_period = 0;
end_of_period = 0;
}
int id; // int NOT NULL, -- 1
int local_flag; // int NOT NULL, -- 2
int begin_of_period; // int NOT NULL, -- 3
int end_of_period; // int NOT NULL, -- 4
};
#pragma pack()