Mehan1k
17.04.2006, 06:22
Народ помогите разобраться.
enter_catacomb1
ai.obj
class enter_catacomb1 : instant_teleporter
//Catacomb of Brandet (Enter)
handler 28 // TELEPORT_REQUESTED
variable_begin
"talker"
"i6"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 46508
push_const 170303
push_const -4984
func_call 46 // func[InstantTeleport]
shift_sp -4
shift_sp -1
handler_end
class_end
npcdata.txt
npc_begin teleporter 8115 [enter_catacomb1] level=70 exp=4296345xx.xx5 acquire_exp_rate= 1.2 undying=1 can_be_attacked=0 acquire_sp=144 race=human sex=female temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} magic_list={} max_item=80 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} slot_chest=[] slot_rhand=[] slot_lhand=[] base_attack_type=fist base_can_penetrate=0 base_attack_range=40 base_damage_range= {0;0;80;120} base_rand_dam=30 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase= 40 mp_increase=7 org_hp_regen=7.5 org_mp_regen=2.7 ground_low={80;0;10} ground_high= {120;-30;30} underwater_low={50;0;10} underwater_high={0;0;30} fly_low={0;0;10} fly_high={0;-30;30} float_low={0;0;10} float_high={0;-30;30} org_earshot=100 sight= {0;0;2500;120;5} agro_range=1000 org_hp=24xx.xx818899627 org_mp=1345.8 base_defend= 2xx.xx597408024 base_magic_attack=4xx.xx4627426724 base_magic_defend= 2xx.xx8467292763 base_physical_attack=6xx.xx3725587608 physical_hit_modify=4.75 physical_avoid_modify=0 base_attack_speed=253 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=8 collision_height=25 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[enter_catacomb1];{[fnHi] = [enter_catacomb_001.htm]}} corpse_time=7 no_sleep_mode=0 npc_end
npcpos.txt
npcmaker_begin [Branded_21_23_f1] initial_spawn=all
npc_begin [enter_catacomb1] pos={45770;170299;-4985;0} total=1 respawn=2min npc_end
npcmaker_end
enter_catacomb2
ai.obj
class enter_catacomb2 : instant_teleporter
// Dark Omen Catacomb (Enter)
handler 28 // TELEPORT_REQUESTED
variable_begin
"talker"
"i6"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const -19090
push_const 13500
push_const -4816
func_call 46 // func[InstantTeleport]
shift_sp -4
shift_sp -1
handler_end
class_end
npcdata.txt
npc_begin teleporter 8115 [enter_catacomb2] level=70 exp=4296345xx.xx5 acquire_exp_rate= 1.2 undying=1 can_be_attacked=0 acquire_sp=144 race=human sex=female temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} magic_list={} max_item=80 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} slot_chest=[] slot_rhand=[] slot_lhand=[] base_attack_type=fist base_can_penetrate=0 base_attack_range=40 base_damage_range= {0;0;80;120} base_rand_dam=30 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase= 40 mp_increase=7 org_hp_regen=7.5 org_mp_regen=2.7 ground_low={80;0;10} ground_high= {120;-30;30} underwater_low={50;0;10} underwater_high={0;0;30} fly_low={0;0;10} fly_high={0;-30;30} float_low={0;0;10} float_high={0;-30;30} org_earshot=100 sight= {0;0;2500;120;5} agro_range=1000 org_hp=24xx.xx818899627 org_mp=1345.8 base_defend= 2xx.xx597408024 base_magic_attack=4xx.xx4627426724 base_magic_defend= 2xx.xx8467292763 base_physical_attack=6xx.xx3725587608 physical_hit_modify=4.75 physical_avoid_modify=0 base_attack_speed=253 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=8 collision_height=25 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[enter_catacomb2];{[fnHi] = [enter_catacomb_001.htm]}} corpse_time=7 no_sleep_mode=0 npc_end
npcpos.txt
npcmaker_begin [DOC_EnterGK] initial_spawn = all maximum_npc=1
npc_begin [enter_catacomb2] pos={-19750;13500;-4816;32768} total=1 respawn =1min npc_end
npcmaker_end
спавнятся оба телепортера правильно но enter_teleporter1 телепортирует не по своим координатам в ai.obj а по координатам enter_teleporter2. Первого телепортера аи и npcdata переделывал со второго.
Может ещё какие данные сменить надо в аи кроме push_const ? Кто знает подскажите?
enter_catacomb1
ai.obj
class enter_catacomb1 : instant_teleporter
//Catacomb of Brandet (Enter)
handler 28 // TELEPORT_REQUESTED
variable_begin
"talker"
"i6"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 46508
push_const 170303
push_const -4984
func_call 46 // func[InstantTeleport]
shift_sp -4
shift_sp -1
handler_end
class_end
npcdata.txt
npc_begin teleporter 8115 [enter_catacomb1] level=70 exp=4296345xx.xx5 acquire_exp_rate= 1.2 undying=1 can_be_attacked=0 acquire_sp=144 race=human sex=female temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} magic_list={} max_item=80 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} slot_chest=[] slot_rhand=[] slot_lhand=[] base_attack_type=fist base_can_penetrate=0 base_attack_range=40 base_damage_range= {0;0;80;120} base_rand_dam=30 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase= 40 mp_increase=7 org_hp_regen=7.5 org_mp_regen=2.7 ground_low={80;0;10} ground_high= {120;-30;30} underwater_low={50;0;10} underwater_high={0;0;30} fly_low={0;0;10} fly_high={0;-30;30} float_low={0;0;10} float_high={0;-30;30} org_earshot=100 sight= {0;0;2500;120;5} agro_range=1000 org_hp=24xx.xx818899627 org_mp=1345.8 base_defend= 2xx.xx597408024 base_magic_attack=4xx.xx4627426724 base_magic_defend= 2xx.xx8467292763 base_physical_attack=6xx.xx3725587608 physical_hit_modify=4.75 physical_avoid_modify=0 base_attack_speed=253 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=8 collision_height=25 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[enter_catacomb1];{[fnHi] = [enter_catacomb_001.htm]}} corpse_time=7 no_sleep_mode=0 npc_end
npcpos.txt
npcmaker_begin [Branded_21_23_f1] initial_spawn=all
npc_begin [enter_catacomb1] pos={45770;170299;-4985;0} total=1 respawn=2min npc_end
npcmaker_end
enter_catacomb2
ai.obj
class enter_catacomb2 : instant_teleporter
// Dark Omen Catacomb (Enter)
handler 28 // TELEPORT_REQUESTED
variable_begin
"talker"
"i6"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const -19090
push_const 13500
push_const -4816
func_call 46 // func[InstantTeleport]
shift_sp -4
shift_sp -1
handler_end
class_end
npcdata.txt
npc_begin teleporter 8115 [enter_catacomb2] level=70 exp=4296345xx.xx5 acquire_exp_rate= 1.2 undying=1 can_be_attacked=0 acquire_sp=144 race=human sex=female temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} magic_list={} max_item=80 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} slot_chest=[] slot_rhand=[] slot_lhand=[] base_attack_type=fist base_can_penetrate=0 base_attack_range=40 base_damage_range= {0;0;80;120} base_rand_dam=30 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase= 40 mp_increase=7 org_hp_regen=7.5 org_mp_regen=2.7 ground_low={80;0;10} ground_high= {120;-30;30} underwater_low={50;0;10} underwater_high={0;0;30} fly_low={0;0;10} fly_high={0;-30;30} float_low={0;0;10} float_high={0;-30;30} org_earshot=100 sight= {0;0;2500;120;5} agro_range=1000 org_hp=24xx.xx818899627 org_mp=1345.8 base_defend= 2xx.xx597408024 base_magic_attack=4xx.xx4627426724 base_magic_defend= 2xx.xx8467292763 base_physical_attack=6xx.xx3725587608 physical_hit_modify=4.75 physical_avoid_modify=0 base_attack_speed=253 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=8 collision_height=25 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[enter_catacomb2];{[fnHi] = [enter_catacomb_001.htm]}} corpse_time=7 no_sleep_mode=0 npc_end
npcpos.txt
npcmaker_begin [DOC_EnterGK] initial_spawn = all maximum_npc=1
npc_begin [enter_catacomb2] pos={-19750;13500;-4816;32768} total=1 respawn =1min npc_end
npcmaker_end
спавнятся оба телепортера правильно но enter_teleporter1 телепортирует не по своим координатам в ai.obj а по координатам enter_teleporter2. Первого телепортера аи и npcdata переделывал со второго.
Может ещё какие данные сменить надо в аи кроме push_const ? Кто знает подскажите?