View Full Version : [Share] Baium Reborn
hamidouch
08.02.2006, 15:14
Well old AI for baium using superclass trick, is just crappy
baium were using fists, and almost everytime the same skill,
and he wasnt aggroing under many conditions .
I remade his AI,
he now only use skills, no fists, most of time he use baium general attack.
he should randomnly use his 5 skills, but ATM he only use baium normal hit, energy wave, and baium paralyse.
AND, he is fukin regenning too fast, cant understand why.
I DOn't GET /know why, code seems clean ....
Anyway im sharing what i did, AI + sources
If peeps who know AI can help me thks !!
hamidouch
08.02.2006, 15:21
uploaded new version, i forgot baium npcdata
tnx i will test and see the code if we can make a better then.
What about the problem with people just kiteing him, and he never changes agro?
There is no cheks for Consume MP/HP and mainly no checks for SkillInReuseDelay....
Ifproblem is regeneration ... how about just setting a special pasive skill for baium in npcdata ?
Something like:
p_hp_regen;(all);-80;per
or something like this.... Then regeneration will no longer be a problem ;)
hp on baium is not stable it ir restoring very fast :/
toolpunk
08.02.2006, 19:46
first thanks for the nice share...
but would you mind explaining me what the 9000 in:
AddUseSkillDesire(creature, PhysicalSpecial, @ST_ATTACK, @AMT_MOVE_TO_TARGET, 9000);
means?
i guess its the damage to be dealt...
about the too fast regenarating hp and all...
why dont we just change the
org_hp_regen and org_mp_regen settings?
aha, hp_regen=5 any ideas?
Megatronpt
08.02.2006, 19:56
I'll take a look into it this weekend.
Thanks for sharing!
toolpunk
08.02.2006, 20:00
KTPSMF i got NO hp_regen=5 in my file...
you must err...
hp_increase=40 mp_increase=7 org_hp_regen=5.5 org_mp_regen=x.x
may be it`s in percents? 5% from 1kk hp = 50000 hp/sek regen
Phantom2005
08.02.2006, 21:39
1 question... anyone ever saw baium_npc use flame strike on retail?
If not:
skill_list={@s_flame_strike3}
to
skill_list={}
first thanks for the nice share...
but would you mind explaining me what the 9000 in:
AddUseSkillDesire(creature, PhysicalSpecial, @ST_ATTACK, @AMT_MOVE_TO_TARGET, 9000);
means?
i guess its the damage to be dealt...
about the too fast regenarating hp and all...
why dont we just change the
org_hp_regen and org_mp_regen settings?
9000 is the desire that is added to use that skill. if no other desire is higher than 9000 atm, the NPC will use that skill.
hamidouch
08.02.2006, 22:10
1 question... anyone ever saw baium_npc use flame strike on retail?
If not:
skill_list={@s_flame_strike3}
to
skill_list={}
its just the npc which is used to summon baium, the statue of baium, i didnt even edit it, and whats the problem with an active skill as passsive skill? -none-
TheOrder
09.02.2006, 11:13
Tnx Hami !!! Realy a good work !!!
good work , working really greate with little ai fix
toolpunk
09.02.2006, 17:07
thanks for the explanation mayii :)
2 Hamidouch
Good work man, can i ask you, titanium set, is that c4 items?
Can you share itemdata for items drops by baium?
Sorry for my English
Phantom2005
09.02.2006, 18:13
1 question... anyone ever saw baium_npc use flame strike on retail?
If not:
skill_list={@s_flame_strike3}
to
skill_list={}
its just the npc which is used to summon baium, the statue of baium, i didnt even edit it, and whats the problem with an active skill as passsive skill? -none-
Trust me i've seen it... baium_npc attacked me with flame strike...
well but skill_list={} is only for passives skills
hamidouch
09.02.2006, 23:08
1 question... anyone ever saw baium_npc use flame strike on retail?
If not:
skill_list={@s_flame_strike3}
to
skill_list={}
its just the npc which is used to summon baium, the statue of baium, i didnt even edit it, and whats the problem with an active skill as passsive skill? -none-
Trust me i've seen it... baium_npc attacked me with flame strike...
gimme the place of your weed dealer ^^
TheOrder
10.02.2006, 08:22
lol hami
hamidouch
12.02.2006, 20:33
so on the 126 peeps who dled it noone fixed any feature?
usefull to share and ask for help seems :(
point isn't the change in the random "engine", it's the same just done in a different way, but the myself.sm instead of attacker because the target_type is self in the skilldata of those skills; and the check for enough MP and HP should be there every time you use a skill.
EventHandler ATTACKED(attacker, damage, i0)
{
i0 = Rand(6);
if(i0 == 1)
{
if(Skill_GetConsumeMP(PhysicalSpecial) < myself.sm.mp && Skill_GetConsumeHP(PhysicalSpecial) < myself.sm.hp)
AddUseSkillDesire(attacker, PhysicalSpecial, @ST_ATTACK, @AMT_MOVE_TO_TARGET, damage*50);
}
else if(i0 == 2)
{
if(Skill_GetConsumeMP(DeBuff) < myself.sm.mp && Skill_GetConsumeHP(DeBuff < myself.sm.hp)
AddUseSkillDesire(attacker, DeBuff, @ST_ATTACK, @AMT_MOVE_TO_TARGET, damage*50);
}
else if(i0 == 3)
{
if(Skill_GetConsumeMP(HoldMagic) < myself.sm.mp && Skill_GetConsumeHP(HoldMagic) < myself.sm.hp)
AddUseSkillDesire(attacker, HoldMagic, @ST_ATTACK, @AMT_MOVE_TO_TARGET, damage*50);
}
else if(i0 == 4)
{
if(Skill_GetConsumeMP(SelfRangeDDMagic) < myself.sm.mp && Skill_GetConsumeHP(SelfRangeDDMagic) < myself.sm.hp)
AddUseSkillDesire(myself.sm, SelfRangeDDMagic, @ST_ATTACK, @AMT_MOVE_TO_TARGET, damage*50);
}
else if(i0 == 5)
{
if(Skill_GetConsumeMP(SleepMagic) < myself.sm.mp && Skill_GetConsumeHP(SleepMagic) < myself.sm.hp)
AddUseSkillDesire(myself.sm, SleepMagic, @ST_ATTACK, @AMT_MOVE_TO_TARGET, damage*50);
}
}
EventHandler SEE_SPELL(speller, skill_name_id)
{
if(Skill_GetEffectPoint(skill_name_id) > 0)
AddUseSkillDesire(speller, DeBuff, @ST_ATTACK, @AMT_STAND, Skill_GetEffectPoint(skill_name_id)*100);
}
remove the CLAN_ATTACKED Handler, it's pointless.
this should slow down the regen speed to something "normal".
npc_begin boss 12372 [baium] level=84 exp=2127179090 acquire_exp_rate=600 undying=0 can_be_attacked=1 acquire_sp=5600 race=humanoid sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} magic_list={} max_item=50 item_make_list={} corpse_make_list={} additional_make_list={{[adena];100000000;200000000;100};{[adena];100000000;200000000;100};{[adena];100000000;200000000;100};{[adena];100000000;200000000;100};{[adena];100000000;200000000;100};{[hero_mobs_token];1;1;100};{[hero_mobs_token];1;1;100};{[hero_mobs_token];1;1;100};{[hero_mobs_token];1;1;100};{[hero_mobs_token];1;1;100};{[temple_barton];1;1;100};{[temple_staff];1;1;100};{[xp_scroll2];1;1;100};{[xp_scroll2];1;1;100};{[blessed_scroll_of_escape];10;15;100};{[God's_Blade*God's_Blade_haste];1;2;100};{[heavy_titanium_helmet];1;1;20};{[heavy_titanium_body];1;1;20};{[heavy_titanium_gloves];1;1;50};{[heavy_titanium_boots];1;1;50}} additional_make_multi_list={} slot_chest=[] slot_rhand=[] slot_lhand=[] base_attack_type=fist base_can_penetrate=0 base_attack_range=130 base_damage_range={0;0;540;580} base_rand_dam=10 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase=12 mp_increase=7 org_hp_regen=5.5 org_mp_regen=2.7 ground_low={50;0;10} ground_high={140;-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=1200 org_hp=3000000 org_mp=24355 base_defend=4104 base_magic_attack=3859 base_magic_defend=2273 base_physical_attack=5148 physical_hit_modify=4.75 physical_avoid_modify=2.5 base_attack_speed=250 base_reuse_delay=0 base_critical=8 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=65 collision_height=174 category={} clan={@angel_clan} clan_help_range=450 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[baium]} corpse_time=30 no_sleep_mode=1 npc_end
that should work fine, didn't test it tho.
hamidouch
12.02.2006, 21:42
well i fixed all of those already, thks
so im gonna post where i am
hamidouch
12.02.2006, 21:45
current problems:
no more regen problem,
but he scream like if he [glow=red:1223a0a659]was dying each time he is hit[/glow:1223a0a659]. but his hp is normal.
the rest is more o less fixed, he use skills on conditions, checks for mp hp added, some summoning skiller feature, some fstring feats u got to change etc....
current npcdata:
npc_begin warrior 12372 [baium] level=84 exp=2127179090 acquire_exp_rate=300 undying=0 can_be_attacked=1 acquire_sp=8000 race=humanoid sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_full_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=120 base_damage_range={0;0;540;580} base_rand_dam=10 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=1200 org_hp=2235699 org_mp=24355 base_defend=3947 base_magic_attack=3859 base_magic_defend=2412 base_physical_attack=5148 physical_hit_modify=4.75 physical_avoid_modify=2.5 base_attack_speed=250 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=65 collision_height=174 category={} clan={} clan_help_range=350 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[baium]} corpse_time=30 no_sleep_mode=0 npc_end
current skilldata:
skill_begin skill_name = [s_baium_normal_attack] /* [baium_skill] */ skill_id = 4127 level = 1 operate_type = A1 magic_level = 80 effect = {{i_m_attack;500}} is_magic = 0 mp_consume2 = 50 cast_range = 120 effective_range = 150 skill_hit_time = 1.5 skill_cool_time = 0.7 skill_hit_cancel_time = 0.1 reuse_delay = 0 attribute = attr_none effect_point = -600 target_type = enemy_only affect_scope = range affect_range = 100 affect_object = not_friend next_action = none skill_end
skill_begin skill_name = [s_energy_wave] /* [baium_skill] */ skill_id = 4128 level = 1 operate_type = A1 magic_level = 80 effect = {{i_m_attack;1200};{i_fly_away}} is_magic = 0 mp_consume2 = 50 cast_range = 400 effective_range = 600 skill_hit_time = 2.3 skill_cool_time = 2.7 skill_hit_cancel_time = 0.1 reuse_delay = 0 attribute = attr_none effect_point = -600 target_type = enemy_only affect_scope = range affect_range = 200 affect_object = not_friend next_action = none skill_end
skill_begin skill_name = [s_earth_quake] /* [baium_skill] */ skill_id = 4129 level = 1 operate_type = A1 magic_level = 80 effect = {{i_m_attack;1100}} is_magic = 0 mp_consume2 = 50 cast_range = -1 effective_range = -1 skill_hit_time = 2.3 skill_cool_time = 3 skill_hit_cancel_time = 0.1 reuse_delay = 0 activate_rate = -1 lv_bonus_rate = 0 basic_property = none attribute = attr_fire effect_point = -400 target_type = self affect_scope = point_blank affect_range = 500 affect_object = not_friend next_action = none skill_end
skill_begin skill_name = [s_thunderbolt] /* [baium_skill] */ skill_id = 4130 level = 1 operate_type = A2 magic_level = 80 effect = {{i_m_attack;900};{t_hp;-35;1}} is_magic = 0 mp_consume2 = 50 cast_range = -1 effective_range = -1 skill_hit_time = 3 skill_cool_time = 3 skill_hit_cancel_time = 0.1 reuse_delay = 0 activate_rate = -1 lv_bonus_rate = 0 basic_property = none abnormal_time = 9 abnormal_lv = 1 abnormal_type = root attribute = attr_hold effect_point = -400 target_type = self affect_scope = point_blank affect_range = 1500 affect_object = not_friend next_action = none abnormal_visual_effect = ave_dot_bleeding skill_end
skill_begin skill_name = [s_baium_paralyze] /* [baium_skill] */ skill_id = 4131 level = 1 operate_type = A2 magic_level = 80 effect = {{p_block_act}} is_magic = 0 mp_consume2 = 0 cast_range = 500 effective_range = 700 skill_hit_time = 2.9 skill_cool_time = 2.7 skill_hit_cancel_time = 0.1 reuse_delay = 10 attribute = attr_none abnormal_type = paralyze activate_rate = 90 abnormal_time = 30 abnormal_lv = 8 effect_point = -600 target_type = enemy_only affect_scope = range affect_range = 200 affect_object = not_friend next_action = none abnormal_visual_effect = ave_paralyze skill_end
current ai source :
class baium2 : default_npc
{
parameter:
int PhysicalSpecial = @s_baium_normal_attack;
int HoldMagic = @s_baium_paralyze;
int SelfRangeDDMagic = @s_earth_quake;
int DeBuff = @s_energy_wave;
int SleepMagic = @s_thunderbolt;
float Attack_DecayRatio = 6.6;
float UseSkill_DecayRatio = 66000;
float Attack_BoostValue = 500.0;
float UseSkill_BoostValue = 100000.0;
handler:
EventHandler NO_DESIRE()
{
AddDoNothingDesire(40, 5);
}
EventHandler SEE_CREATURE(creature)
{
if(GetLifeTime() > 7 && InMyTerritory(myself.sm))
AddUseSkillDesire(creature, PhysicalSpecial, @ST_ATTACK, @AMT_MOVE_TO_TARGET, 9000);
}
EventHandler ATTACKED(attacker, damage, skill_name_id)
{
if((attacker.is_pc != 0 || IsInCategory(@summon_npc_group, attacker.npc_class_id)))
{
if(Skill_GetAttribute(skill_name_id) == @attr_fire && Rand(100) < 70 && InMyTerritory(attacker))
{
if(Skill_GetConsumeMP(DeBuff) < myself.sm.mp && Skill_GetConsumeHP(DeBuff) < myself.sm.hp)
AddUseSkillDesire(attacker, DeBuff, @ST_ATTACK, @AMT_MOVE_TO_TARGET, 1000000);
}
else if(DistFromMe(attacker) > 500 && Rand(100) < 35)
{
if(Skill_GetConsumeMP(HoldMagic) < myself.sm.mp && Skill_GetConsumeHP(HoldMagic) < myself.sm.hp)
AddUseSkillDesire(attacker, HoldMagic, @ST_ATTACK, @AMT_STAND, 1000000);
}
else if(DistFromMe(attacker) > 150 && DistFromMe(attacker) < 500 && Rand(100) < 30)
{
if(Rand(100) < 50)
{
if(Skill_GetConsumeMP(SelfRangeDDMagic) < myself.sm.mp && Skill_GetConsumeHP(SelfRangeDDMagic) < myself.sm.hp)
AddUseSkillDesire(myself.sm, SelfRangeDDMagic, @ST_ATTACK, @AMT_MOVE_TO_TARGET, 1000000);
}
else
{
if(Skill_GetConsumeMP(SleepMagic) < myself.sm.mp && Skill_GetConsumeHP(SleepMagic) < myself.sm.hp)
AddUseSkillDesire(myself.sm, SleepMagic, @ST_ATTACK, @AMT_MOVE_TO_TARGET, 1000000);
}
}
else if(Rand(100) < 40)
AddEffectActionDesire(myself.sm, 1, (60 * 1000) / 30, 3000000);
{
if(attacker.is_pc != 0 || IsInCategory(@summon_npc_group, attacker.npc_class_id))
AddUseSkillDesire(attacker, PhysicalSpecial, @ST_ATTACK, @AMT_MOVE_TO_TARGET, (damage/myself.sm.max_hp/0.05) * damage * myself.sm.weight_point * 1000);
}
}
}
EventHandler SEE_SPELL(speller, skill_name_id, i0)
{
if (Skill_GetEffectPoint(skill_name_id) > 0 && Rand(100) < 20)
{
i0 = Rand(100);
if(i0 < 25)
Say(MakeFString(1000028, speller.name, "", "", "", ""));
else if(i0 < 50)
Say(MakeFString(1000029, speller.name, "", "", "", ""));
else if(i0 < 75)
Say(MakeFString(1000030, speller.name, "", "", "", ""));
else
Say(MakeFString(1000031, speller.name, "", "", "", ""));
InstantTeleport(speller, FloatToInt(myself.sm.x), FloatToInt(myself.sm.y), FloatToInt(myself.sm.z));
{
if(Skill_GetConsumeMP(DeBuff) < myself.sm.mp && Skill_GetConsumeHP(DeBuff) < myself.sm.hp)
AddUseSkillDesire(speller, DeBuff, @ST_ATTACK, @AMT_MOVE_TO_TARGET, 1000000);
}
;
}
super;
}
EventHandler MY_DYING()
{
Say(MakeFString(1000004,"","","","",""));
Say(MakeFString(1000005,"","","","",""));
Say(MakeFString(1000006,"","","","",""));
}
}
current ai compiled :
class baium : default_npc
parameter_define_begin
int PhysicalSpecial 1056513
int HoldMagic 1057537
int SelfRangeDDMagic 1057025
int DeBuff 1056769
int SleepMagic 1057281
float Attack_DecayRatio 6.600000
float UseSkill_DecayRatio 660xx.xx0000
float Attack_BoostValue 5xx.xx0000
float UseSkill_BoostValue 1000xx.xx0000
parameter_define_end
handler 0 // NO_DESIRE
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_const 40
push_const 5
func_call 1 // func[AddDoNothingDesire]
shift_sp -2
shift_sp -1
handler_end
handler 5 // SEE_CREATURE
variable_begin
"creature"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
func_call 20 // func[GetLifeTime]
push_const 7
greater
push_reg_sp
fetch_i
branch_false L858993283
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i
func_call 177 // func[InMyTerritory]
shift_sp -1
and
L858993283
branch_false L858993281
L858993282
shift_sp 1
push_event // creature
push_const 68
add
fetch_i
push_parameter PhysicalSpecial
push_const 0
push_const 1
push_const 9000
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
L858993281
handler_end
handler 1 // ATTACKED
variable_begin
"attacker"
"damage"
"skill_name_id"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // attacker
push_const 36
add
fetch_i // is_pc
push_const 108
add
fetch_i
push_const 0
not_equal
push_reg_sp
fetch_i
branch_true L858993280
shift_sp 1
push_const 9
push_event // attacker
push_const 36
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
func_call 143 // func[IsInCategory]
shift_sp -2
or
L858993280
branch_false L858993278
L858993279
shift_sp 1
push_event // skill_name_id
push_const 120
add
fetch_i
func_call 157 // func[Skill_GetAttribute]
shift_sp -1
push_const 12
equal
push_reg_sp
fetch_i
branch_false L858993277
shift_sp 1
push_const 100
func_call 55 // func[Rand]
shift_sp -1
push_const 70
less
and
push_reg_sp
fetch_i
branch_false L858993277
shift_sp 1
push_event // attacker
push_const 36
add
fetch_i
func_call 177 // func[InMyTerritory]
shift_sp -1
and
L858993277
branch_false L858993275
L858993276
shift_sp 1
push_parameter DeBuff
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 L858993274
shift_sp 1
push_parameter DeBuff
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
L858993274
branch_false L858993272
L858993273
shift_sp 1
push_event // attacker
push_const 36
add
fetch_i
push_parameter DeBuff
push_const 0
push_const 1
push_const 1000000
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
L858993272
jump L858993271
L858993275
shift_sp 1
push_event // attacker
push_const 36
add
fetch_i
func_call 51 // func[DistFromMe]
shift_sp -1
push_const 500
greater
push_reg_sp
fetch_i
branch_false L858993270
shift_sp 1
push_const 100
func_call 55 // func[Rand]
shift_sp -1
push_const 35
less
and
L858993270
branch_false L858993268
L858993269
shift_sp 1
push_parameter HoldMagic
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 L858993267
shift_sp 1
push_parameter HoldMagic
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
L858993267
branch_false L858993265
L858993266
shift_sp 1
push_event // attacker
push_const 36
add
fetch_i
push_parameter HoldMagic
push_const 0
push_const 0
push_const 1000000
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
L858993265
jump L858993264
L858993268
shift_sp 1
push_event // attacker
push_const 36
add
fetch_i
func_call 51 // func[DistFromMe]
shift_sp -1
push_const 150
greater
push_reg_sp
fetch_i
branch_false L858993263
shift_sp 1
push_event // attacker
push_const 36
add
fetch_i
func_call 51 // func[DistFromMe]
shift_sp -1
push_const 500
less
and
push_reg_sp
fetch_i
branch_false L858993263
shift_sp 1
push_const 100
func_call 55 // func[Rand]
shift_sp -1
push_const 30
less
and
L858993263
branch_false L858993261
L858993262
shift_sp 1
push_const 100
func_call 55 // func[Rand]
shift_sp -1
push_const 50
less
branch_false L858993259
L858993260
shift_sp 1
push_parameter SelfRangeDDMagic
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 L858993258
shift_sp 1
push_parameter SelfRangeDDMagic
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
L858993258
branch_false L858993256
L858993257
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i
push_parameter SelfRangeDDMagic
push_const 0
push_const 1
push_const 1000000
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
L858993256
jump L858993255
L858993259
shift_sp 1
push_parameter SleepMagic
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 L858993254
shift_sp 1
push_parameter SleepMagic
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
L858993254
branch_false L858993252
L858993253
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i
push_parameter SleepMagic
push_const 0
push_const 1
push_const 1000000
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
L858993252
L858993255
jump L858993251
L858993261
shift_sp 1
push_const 100
func_call 55 // func[Rand]
shift_sp -1
push_const 40
less
branch_false L858993249
L858993250
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i
push_const 1
push_const 60
push_const 1000
mul
push_const 30
div
push_const 3000000
func_call 13 // func[AddEffectActionDesire]
shift_sp -4
shift_sp -1
L858993249
L858993251
L858993264
L858993271
push_event // attacker
push_const 36
add
fetch_i // is_pc
push_const 108
add
fetch_i
push_const 0
not_equal
push_reg_sp
fetch_i
branch_true L858993248
shift_sp 1
push_const 9
push_event // attacker
push_const 36
add
fetch_i // npc_class_id
push_const 1620
add
fetch_i
func_call 143 // func[IsInCategory]
shift_sp -2
or
L858993248
branch_false L858993246
L858993247
shift_sp 1
push_event // attacker
push_const 36
add
fetch_i
push_parameter PhysicalSpecial
push_const 0
push_const 1
push_event // damage
push_const 84
add
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // max_hp
push_const 1000
add
fetch_d
div
push_const 0.050000
div
push_event // damage
push_const 84
add
fetch_i
mul
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // weight_point
push_const 1624
add
fetch_i
mul
push_const 1000
mul
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
L858993246
L858993278
handler_end
handler 16 // SEE_SPELL
variable_begin
"speller"
"skill_name_id"
"i0"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_event // skill_name_id
push_const 120
add
fetch_i
func_call 156 // func[Skill_GetEffectPoint]
shift_sp -1
push_const 0
greater
push_reg_sp
fetch_i
branch_false L858993245
shift_sp 1
push_const 100
func_call 55 // func[Rand]
shift_sp -1
push_const 20
less
and
L858993245
branch_false L858993243
L858993244
push_event // i0
push_const 192
add
push_reg_sp
fetch_i
shift_sp 1
push_const 100
func_call 55 // func[Rand]
shift_sp -1
assign
shift_sp -1
push_event // i0
push_const 192
add
fetch_i
push_const 25
less
branch_false L858993241
L858993242
shift_sp 1
shift_sp 1
push_const 1000028
push_event // speller
push_const 56
add
fetch_i // name
push_const 160
add
S858993448. ""
push_string S858993448
S858993447. ""
push_string S858993447
S858993446. ""
push_string S858993446
S858993445. ""
push_string S858993445
func_call 89 // func[MakeFString]
shift_sp -6
func_call 37 // func[Say]
shift_sp -1
shift_sp -1
jump L858993240
L858993241
push_event // i0
push_const 192
add
fetch_i
push_const 50
less
branch_false L858993238
L858993239
shift_sp 1
shift_sp 1
push_const 1000029
push_event // speller
push_const 56
add
fetch_i // name
push_const 160
add
S858993444. ""
push_string S858993444
S858993443. ""
push_string S858993443
S858993442. ""
push_string S858993442
S858993441. ""
push_string S858993441
func_call 89 // func[MakeFString]
shift_sp -6
func_call 37 // func[Say]
shift_sp -1
shift_sp -1
jump L858993237
L858993238
push_event // i0
push_const 192
add
fetch_i
push_const 75
less
branch_false L858993235
L858993236
shift_sp 1
shift_sp 1
push_const 1000030
push_event // speller
push_const 56
add
fetch_i // name
push_const 160
add
S858993440. ""
push_string S858993440
S858993439. ""
push_string S858993439
S858993438. ""
push_string S858993438
S858993437. ""
push_string S858993437
func_call 89 // func[MakeFString]
shift_sp -6
func_call 37 // func[Say]
shift_sp -1
shift_sp -1
jump L858993234
L858993235
shift_sp 1
shift_sp 1
push_const 1000031
push_event // speller
push_const 56
add
fetch_i // name
push_const 160
add
S858993436. ""
push_string S858993436
S858993435. ""
push_string S858993435
S858993434. ""
push_string S858993434
S858993433. ""
push_string S858993433
func_call 89 // func[MakeFString]
shift_sp -6
func_call 37 // func[Say]
shift_sp -1
shift_sp -1
L858993234
L858993237
L858993240
shift_sp 1
push_event // speller
push_const 56
add
fetch_i
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // x
push_const 8
add
fetch_d
func_call 57 // func[FloatToInt]
shift_sp -1
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // y
push_const 16
add
fetch_d
func_call 57 // func[FloatToInt]
shift_sp -1
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // z
push_const 24
add
fetch_d
func_call 57 // func[FloatToInt]
shift_sp -1
func_call 46 // func[InstantTeleport]
shift_sp -4
shift_sp -1
shift_sp 1
push_parameter DeBuff
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 L858993233
shift_sp 1
push_parameter DeBuff
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
L858993233
branch_false L858993231
L858993232
shift_sp 1
push_event // speller
push_const 56
add
fetch_i
push_parameter DeBuff
push_const 0
push_const 1
push_const 1000000
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
L858993231
L858993243
call_super
handler_end
handler 10 // MY_DYING
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
shift_sp 1
push_const 1000004
S858993432. ""
push_string S858993432
S858993431. ""
push_string S858993431
S858993430. ""
push_string S858993430
S858993429. ""
push_string S858993429
S858993428. ""
push_string S858993428
func_call 89 // func[MakeFString]
shift_sp -6
func_call 37 // func[Say]
shift_sp -1
shift_sp -1
shift_sp 1
shift_sp 1
push_const 1000005
S858993427. ""
push_string S858993427
S858993426. ""
push_string S858993426
S858993425. ""
push_string S858993425
S858993424. ""
push_string S858993424
S858993423. ""
push_string S858993423
func_call 89 // func[MakeFString]
shift_sp -6
func_call 37 // func[Say]
shift_sp -1
shift_sp -1
shift_sp 1
shift_sp 1
push_const 1000006
S858993422. ""
push_string S858993422
S858993421. ""
push_string S858993421
S858993420. ""
push_string S858993420
S858993419. ""
push_string S858993419
S858993418. ""
push_string S858993418
func_call 89 // func[MakeFString]
shift_sp -6
func_call 37 // func[Say]
shift_sp -1
shift_sp -1
handler_end
class_end
hamidouch
14.02.2006, 13:56
Bump!
toolpunk
14.02.2006, 18:17
hmm...
your code looks very confusing...
maybe its cause of the board, i dont mind anyway...
but it looks like there arent enough closing braces :?
could you check that in your source file?
I think this baium have a problem with summoning feature.... if i hit baium... and later i use buff on me... baium teleport me to him... this is great but... i go far ... use 3 gatekeepers... go to giran arena... and again buff me.... BAIUM TELEPORT ME TO TOI! :shock: ... it happens too if i use a npc buff... baium teleports npc to him... the only way to discard this is restarting. :D
lol go around and ask people to buff you :D
LOL LOL LOL
if ppl buff me that person are teleported under baium
to somebody to worked to him or no?
Using this AI... and Soapy AI (https://postpacific.loc-online.com/forum/viewtopic.php?t=1932&postdays=0&postorder=asc&start=0)
with C3 Client i think he regenerate HP very fast... but... HP isn't the problem... with C4 client i can see if a monster level up.... MY BAIUM IS LEVEL UP every time i hit him... is imposible to kill... 5 players with 10000 P.Atk hit Baium... and every time he decrease HP 1/4 (maximum i can see)... he level up... and get FULL HP.
I try to found the problem in AI but i can see where it is... im newbie in AI.. sorry.