this?
Code:
class guard : default_npc
parameter_define_begin
string fnHi "chi.htm"
float Attack_DecayRatio 6.600000
float UseSkill_DecayRatio 660xx.xx0000
float Attack_BoostValue 5xx.xx0000
float UseSkill_BoostValue 1000xx.xx0000
parameter_define_end
handler 3 // TALKED
handler_end
handler 1 // ATTACKED
variable_begin
"attacker"
"damage"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_event // attacker
push_const 36
add
fetch_i
push_const 1
push_const 2000
func_call 2 // func[AddAttackDesire]
shift_sp -3
shift_sp -1
handler_end
handler 5 // see on creature :)
variable_begin
"creature"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // if creature karma = 0
push_const 68
add
fetch_i //karma
push_const 412
add
fetch_i
push_const 0
greater
branch_false L1 // if karma count=0 go L1 if >1 go L0 atack
L0
shift_sp 1
push_event // creature
push_const 68
add
fetch_i
push_const 1
push_const 1500
func_call 2 // func[AddAttackDesire]
shift_sp -3
shift_sp -1
L1
handler_end
class_end
and my work simple change L0 and L1?