![]() |
|
|
#2 |
|
Архивный участник
Join Date: Apr 2006
Posts: 65
|
In a nutshell...
Code:
class skillnpc : warrior
{
parameter:
int Skill1 = 1234;
int Skill2 = 1234;
int Skill3 = 1234;
handler:
EventHandler SEE_CREATURE(creature) {
i0 = Rand(3) + 1;
if (i0 == 1) {
AddUseSkillDesire(creature, Skill1, @ST_HEAL, @AMT_MOVE_TO_TARGET, 1000);
}
else if (i0 == 1) {
AddUseSkillDesire(creature, Skill2, @ST_HEAL, @AMT_MOVE_TO_TARGET, 1000);
}
else if (i0 == 1) {
AddUseSkillDesire(creature, Skill3, @ST_HEAL, @AMT_MOVE_TO_TARGET, 1000);
}
}
}
That's the basics though. |
|
|
|
|