![]() |
[HELP] If Item, Cast Spell
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. |
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... |
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?
|
use nasc compiler, can be found in l2 tools
|
| All times are GMT. The time now is 15:24. |