Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 05.02.2006, 07:23   #1
drzoom
Архивный участник
 
Join Date: Aug 2005
Posts: 428
Default Question on item skills

Ok, i just interested, if i use item_skill=[s_soul_crystal] on soul crystal,

would such ai work or not? If no, how to realize it?

Ai.obj
Code:
class mob_sa_quest_st_1 : default_npc 
{ 
handler: 
   EventHandler CREATED() 
   { 
       myself.i_ai0 = 0; 
       myself.c_ai0 = 0; 
   } 

   EventHandler SPELLED(speller, skill_name_id) 
   { 
       if(skill_name_id == @s_soul_crystal && myself.sm.hp <= myself.sm.maxhp/2) 
       { 
          myself.c_ai0=speller; 
       } 
   }
}
Would mob understand that i cast soul crystal skill or not?

Thanks.
drzoom is offline  
Old 05.02.2006, 09:34   #2
vex
Архивный участник
 
Join Date: Dec 2005
Posts: 83
Default

the best way is to try
i thinks it is work
vex is offline  
Old 05.02.2006, 10:11   #3
drzoom
Архивный участник
 
Join Date: Aug 2005
Posts: 428
Default

I think u should know what u do then try!
And debug not skill, but idea of upgrade crystals!
drzoom is offline  
Old 05.02.2006, 11:13   #4
vex
Архивный участник
 
Join Date: Dec 2005
Posts: 83
Default

i know it very well! i really understand what you want - i have the same idea, but still have no tme to implement it, of couse do test on test server!
vex 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 22:28.