![]() |
|
|
#1 |
|
Архивный участник
Join Date: Sep 2005
Posts: 455
|
Well, I am just about done Seven signs, only one thing I do not have as of yet. Which is the NPC in town. What I wish to do, is basically like this :
When the townNPC basically "agros" it checks to see what player has item, and if so, cast spell "XYZ" on them. Any help, or suggestions, would be appreciated. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
You want to ban cheaters from town? ))
EventHandler SEE_CREATURE(creature) { if ( InMyTerritory(creature) && OwnItemCount(creature,@some_item)>0 ) AddUseSkillDesire(creature, @s_some_spell, @ST_ATTACK, @AMT_STAND, 1000000); } basically so... |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Sep 2005
Posts: 455
|
I spent all my time studying the AI.obj, So I presume, there is another way to write the AI and compile it into Ai.obj code?
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: May 2005
Posts: 115
|
use nasc compiler, can be found in l2 tools
|
|
|
|
|