Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 17.10.2005, 02:17   #1
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default [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.
Kenster is offline  
Old 17.10.2005, 08:19   #2
RmzVoid
Архивный участник
 
Join Date: Apr 2005
Posts: 357
Default

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...
RmzVoid is offline  
Old 17.10.2005, 16:58   #3
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

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?
Kenster is offline  
Old 17.10.2005, 18:30   #4
serjr
Архивный участник
 
Join Date: May 2005
Posts: 115
Default

use nasc compiler, can be found in l2 tools
serjr is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:05.