top-gear
16.10.2005, 11:47
I can't make the special skills of soulless work. I think is a little bit more complicated from the other summons cause of its double special skills. Anyone can help me? here is the script.
AI.obj (for soulless)
class shadeless : summon_magicalattack
handler 10 // MY_DYING
variable_begin
"c0"
"c1"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // c0
push_const 272
add
push_reg_sp
fetch_i
shift_sp 1
func_call 83 // func[GetLastAttacker]
assign
shift_sp -1
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005103
equal
branch_false L47081
L47080
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47083
L47082
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47084
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3371
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47084
branch_false L47086
L47085
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3373
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10052. "ItemSound.quest_itemget"
push_string S10052
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3371
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3371
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3370
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3370
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47086
L47083
jump L47087
L47081
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005102
equal
branch_false L47089
L47088
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47091
L47090
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47092
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3361
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47092
branch_false L47094
L47093
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3363
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10053. "ItemSound.quest_itemget"
push_string S10053
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3361
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3361
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3360
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3360
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47094
L47091
jump L47095
L47089
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005105
equal
branch_false L47097
L47096
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47099
L47098
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47100
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3366
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47100
branch_false L47102
L47101
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3368
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10054. "ItemSound.quest_itemget"
push_string S10054
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3366
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3366
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3365
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3365
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47102
L47099
jump L47103
L47097
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005106
equal
branch_false L47105
L47104
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47107
L47106
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47108
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3376
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47108
branch_false L47110
L47109
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3378
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10055. "ItemSound.quest_itemget"
push_string S10055
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3376
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3376
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3375
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3375
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47110
L47107
jump L47111
L47105
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005107
equal
branch_false L47113
L47112
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47115
L47114
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47116
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3386
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47116
branch_false L47118
L47117
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3388
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10056. "ItemSound.quest_itemget"
push_string S10056
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3386
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3386
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3385
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3385
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47118
L47115
jump L47119
L47113
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005104
equal
branch_false L47121
L47120
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47123
L47122
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47124
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3381
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47124
branch_false L47126
L47125
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3383
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10057. "ItemSound.quest_itemget"
push_string S10057
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3381
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3381
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3380
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3380
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47126
L47123
L47121
L47119
L47111
L47103
L47095
L47087
call_super
handler_end
class_end
AI.obj (magical attack script)
class summon_magicalattack : default_npc
parameter_define_begin
int DDMagic 1024257
parameter_define_end
handler 13 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_const xx.xx0000
func_call 14 // func[AddPetDefaultDesire_Follow]
shift_sp -1
shift_sp -1
handler_end
handler 0 // NO_DESIRE
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_const xx.xx0000
func_call 14 // func[AddPetDefaultDesire_Follow]
shift_sp -1
shift_sp -1
handler_end
handler 32 // MENU_SELECTED
variable_begin
"ask"
"reply"
"i0"
"c0"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // i0
push_const 192
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // master
push_const 2404
add
fetch_i // target_index
push_const 384
add
fetch_i
assign
shift_sp -1
push_event // i0
push_const 192
add
fetch_i
push_const 0
less_equal
branch_false L2101
L2100
exit_handler
L2101
push_event // c0
push_const 272
add
push_reg_sp
fetch_i
shift_sp 1
push_event // i0
push_const 192
add
fetch_i
func_call 30 // func[GetCreatureFromIndex]
shift_sp -1
assign
shift_sp -1
push_event // c0
push_const 272
add
fetch_i
branch_false L2103
L2102
shift_sp 1
push_parameter DDMagic
func_call 155 // func[Skill_GetConsumeMP]
shift_sp -1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // mp
push_const 352
add
fetch_d
less
push_reg_sp
fetch_i
branch_false L2104
shift_sp 1
push_parameter DDMagic
func_call 154 // func[Skill_GetConsumeHP]
shift_sp -1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // hp
push_const 344
add
fetch_d
less
and
push_reg_sp
fetch_i
branch_false L2104
shift_sp 1
push_parameter DDMagic
func_call 160 // func[Skill_InReuseDelay]
shift_sp -1
push_const 0
equal
and
L2104
branch_false L2106
L2105
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // master
push_const 2404
add
fetch_i // target_id
push_const 388
add
fetch_i
push_parameter DDMagic
push_const 0
push_event // reply
push_const 104
add
fetch_i
push_event // ask
push_const 100
add
fetch_i
push_const 1000000
func_call 11 // func[AddUseSkillDesireEx]
shift_sp -6
shift_sp -1
L2106
L2103
handler_end
class_end
npcdata.txt
npc_begin summon 12503 [shadeless_a] level=40 exp=15422929 acquire_exp_rate=5.4 undying=0 can_be_attacked=0 acquire_sp=45 race=humanoid sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_summon_magic_defence} magic_list={} max_item=50 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=7 str=40 int=21 dex=30 wit=20 con=43 men=25 hp_increase=40 mp_increase=7 org_hp_regen=4 org_mp_regen=1.8 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;10} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=1700 org_mp=900 base_defend=220 base_magic_attack=250 base_magic_defend=160 base_physical_attack=380 physical_hit_modify=3.75 physical_avoid_modify=0 base_attack_speed=257 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-484 collision_radius=7 collision_height=28 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[shadeless];{[DDMagic]=@s_poison_cloud1}} corpse_time=7 no_sleep_mode=0 npc_end
Skilldata.txt (for the one skill poison cloud)
skill_begin skill_name = [s_poison_cloud1] /* [??? ????] */ skill_id = 1167 level = 1 operate_type = A2 magic_level = 25 effect = {{t_hp;-18;5}} is_magic = 1 mp_consume1 = 7 mp_consume2 = 27 cast_range = 500 effective_range = 700 skill_hit_time = 4 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 20 activate_rate = 35 lv_bonus_rate = 1 basic_property = men abnormal_time = 30 abnormal_lv = 3 abnormal_type = poison attribute = attr_poison effect_point = -243 target_type = enemy_only affect_scope = range affect_range = 200 affect_object = not_friend next_action = none abnormal_visual_effect = ave_dot_poison skill_end
thanks for your time :)
AI.obj (for soulless)
class shadeless : summon_magicalattack
handler 10 // MY_DYING
variable_begin
"c0"
"c1"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // c0
push_const 272
add
push_reg_sp
fetch_i
shift_sp 1
func_call 83 // func[GetLastAttacker]
assign
shift_sp -1
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005103
equal
branch_false L47081
L47080
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47083
L47082
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47084
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3371
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47084
branch_false L47086
L47085
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3373
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10052. "ItemSound.quest_itemget"
push_string S10052
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3371
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3371
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3370
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3370
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47086
L47083
jump L47087
L47081
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005102
equal
branch_false L47089
L47088
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47091
L47090
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47092
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3361
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47092
branch_false L47094
L47093
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3363
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10053. "ItemSound.quest_itemget"
push_string S10053
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3361
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3361
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3360
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3360
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47094
L47091
jump L47095
L47089
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005105
equal
branch_false L47097
L47096
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47099
L47098
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47100
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3366
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47100
branch_false L47102
L47101
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3368
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10054. "ItemSound.quest_itemget"
push_string S10054
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3366
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3366
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3365
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3365
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47102
L47099
jump L47103
L47097
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005106
equal
branch_false L47105
L47104
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47107
L47106
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47108
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3376
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47108
branch_false L47110
L47109
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3378
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10055. "ItemSound.quest_itemget"
push_string S10055
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3376
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3376
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3375
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3375
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47110
L47107
jump L47111
L47105
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005107
equal
branch_false L47113
L47112
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47115
L47114
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47116
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3386
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47116
branch_false L47118
L47117
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3388
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10056. "ItemSound.quest_itemget"
push_string S10056
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3386
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3386
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3385
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3385
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47118
L47115
jump L47119
L47113
push_event // c0
push_const 272
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
push_const 1005104
equal
branch_false L47121
L47120
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
branch_false L47123
L47122
push_event // c1
push_const 276
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // master
push_const 1684
add
fetch_i
assign
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 230
func_call 59 // func[HaveMemo]
shift_sp -2
push_reg_sp
fetch_i
branch_false L47124
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3381
func_call 81 // func[OwnItemCount]
shift_sp -2
and
L47124
branch_false L47126
L47125
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3383
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
S10057. "ItemSound.quest_itemget"
push_string S10057
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3381
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3381
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3380
shift_sp 1
push_event // c1
push_const 276
add
fetch_i
push_const 3380
func_call 81 // func[OwnItemCount]
shift_sp -2
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L47126
L47123
L47121
L47119
L47111
L47103
L47095
L47087
call_super
handler_end
class_end
AI.obj (magical attack script)
class summon_magicalattack : default_npc
parameter_define_begin
int DDMagic 1024257
parameter_define_end
handler 13 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_const xx.xx0000
func_call 14 // func[AddPetDefaultDesire_Follow]
shift_sp -1
shift_sp -1
handler_end
handler 0 // NO_DESIRE
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_const xx.xx0000
func_call 14 // func[AddPetDefaultDesire_Follow]
shift_sp -1
shift_sp -1
handler_end
handler 32 // MENU_SELECTED
variable_begin
"ask"
"reply"
"i0"
"c0"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // i0
push_const 192
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // master
push_const 2404
add
fetch_i // target_index
push_const 384
add
fetch_i
assign
shift_sp -1
push_event // i0
push_const 192
add
fetch_i
push_const 0
less_equal
branch_false L2101
L2100
exit_handler
L2101
push_event // c0
push_const 272
add
push_reg_sp
fetch_i
shift_sp 1
push_event // i0
push_const 192
add
fetch_i
func_call 30 // func[GetCreatureFromIndex]
shift_sp -1
assign
shift_sp -1
push_event // c0
push_const 272
add
fetch_i
branch_false L2103
L2102
shift_sp 1
push_parameter DDMagic
func_call 155 // func[Skill_GetConsumeMP]
shift_sp -1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // mp
push_const 352
add
fetch_d
less
push_reg_sp
fetch_i
branch_false L2104
shift_sp 1
push_parameter DDMagic
func_call 154 // func[Skill_GetConsumeHP]
shift_sp -1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // hp
push_const 344
add
fetch_d
less
and
push_reg_sp
fetch_i
branch_false L2104
shift_sp 1
push_parameter DDMagic
func_call 160 // func[Skill_InReuseDelay]
shift_sp -1
push_const 0
equal
and
L2104
branch_false L2106
L2105
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // master
push_const 2404
add
fetch_i // target_id
push_const 388
add
fetch_i
push_parameter DDMagic
push_const 0
push_event // reply
push_const 104
add
fetch_i
push_event // ask
push_const 100
add
fetch_i
push_const 1000000
func_call 11 // func[AddUseSkillDesireEx]
shift_sp -6
shift_sp -1
L2106
L2103
handler_end
class_end
npcdata.txt
npc_begin summon 12503 [shadeless_a] level=40 exp=15422929 acquire_exp_rate=5.4 undying=0 can_be_attacked=0 acquire_sp=45 race=humanoid sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_summon_magic_defence} magic_list={} max_item=50 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=7 str=40 int=21 dex=30 wit=20 con=43 men=25 hp_increase=40 mp_increase=7 org_hp_regen=4 org_mp_regen=1.8 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;10} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=1700 org_mp=900 base_defend=220 base_magic_attack=250 base_magic_defend=160 base_physical_attack=380 physical_hit_modify=3.75 physical_avoid_modify=0 base_attack_speed=257 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-484 collision_radius=7 collision_height=28 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[shadeless];{[DDMagic]=@s_poison_cloud1}} corpse_time=7 no_sleep_mode=0 npc_end
Skilldata.txt (for the one skill poison cloud)
skill_begin skill_name = [s_poison_cloud1] /* [??? ????] */ skill_id = 1167 level = 1 operate_type = A2 magic_level = 25 effect = {{t_hp;-18;5}} is_magic = 1 mp_consume1 = 7 mp_consume2 = 27 cast_range = 500 effective_range = 700 skill_hit_time = 4 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 20 activate_rate = 35 lv_bonus_rate = 1 basic_property = men abnormal_time = 30 abnormal_lv = 3 abnormal_type = poison attribute = attr_poison effect_point = -243 target_type = enemy_only affect_scope = range affect_range = 200 affect_object = not_friend next_action = none abnormal_visual_effect = ave_dot_poison skill_end
thanks for your time :)