![]() |
|
|
#2 |
|
Архивный участник
Join Date: Apr 2005
Posts: 151
|
1) You can add in the citizen AI a small attack code but be careful you have to test it because some AI must be change after it (for example the Bingo chest from the Clan Level 4 quest)
this is for the citizen AI There is a random value because I think that sometime it can be also a mistake that a player attack a NPC so there is only a 30% chance that the NPC cast the skill (just change it) Code:
handler 1 28 // ATTACKED variable_begin "attacker" "damage" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // gg push_const 632 add fetch_i push_const 100 func_call 218169344 // func[Rand] shift_sp -1 push_const 30 less branch_false L4829800 L4829001 push_event // myself push_const 704 add fetch_i push_event // attacker push_const 48 add fetch_i push_const add_skill_here push_const 0 push_const 1 push_const 1000000 func_call 184877074 // func[AddUseSkillDesire] shift_sp -5 shift_sp -1 L4829800 call_super handler_end class_end to the second thing I can't help you because I have also no idea about this, I think this must be coded but you must also obey that when a player dies he can be really mad when his weapon/armor disapear after 60seconds on the ground
|
|
|
|
|