View Single Post
Old 27.03.2006, 07:44   #4
-=KIRALEX=-
Архивный участник
 
Join Date: Mar 2006
Posts: 17
Default

For kids nask

NPC Answers attack
Code:
	EventHandler ATTACKED(attacker,	damage)
	{
		AddAttackDesire(attacker, @AMT_MOVE_TO_TARGET, 2000);
	}
NPC Sees karma and beats the player
Code:
	EventHandler SEE_CREATURE(creature)
	{
		if(creature.karma > 0)
		{	
			AddAttackDesire(creature, @AMT_MOVE_TO_TARGET, 1500);
		}
	}
-=KIRALEX=- is offline