Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 06.02.2006, 02:34   #1
khul
Архивный участник
 
Join Date: Oct 2005
Posts: 153
Default

//offtopic what compiler are you using ? i would die for having it :S , AI scripting line by line by hand makes big errors =(
khul is offline  
Old 06.02.2006, 06:30   #2
cool_santino
Архивный участник
 
Join Date: Nov 2005
Posts: 85
Default

Kirikups try this:

Code:
class warrior_sa
{ 
parameter: 
   int MaxLevel = 2; 

   int PerGet01 = 100; 
   int PerGet12 = 90; 

   int PerBreak0 = 0; 
   int PerBreak1 = 5; 

handler: 
   EventHandler SPELLED(speller, skill_name_id) 
   { 
      if(skill_name_id == @s_soul_crystal) 
      {
	  if(myself.sm.hp < myself.sm.max_hp / 2.0)
		myself.i_ai2 = speller;
      }
   }
   EventHandler MY_DYING(c1)
   {
	c1 = myself.i_ai2;
         //---------- BLUE SOUL CRYSTAL 
	
         if ((OwnItemCount(c1, @blue_soul_crystal_0) >= 1) && (MaxLevel >= 1)) 
	 { 
            if (Rand(100) <= PerGet01) { 
               DeleteItem1(c1, @blue_soul_crystal_0, 1); 
               GiveItem1(c1, @blue_soul_crystal_1,1); 
               SoundEffect(c1, "ItemSound.quest_itemget");
            } else if (Rand(100) < PerBreak0) { 
               DeleteItem1(c1, @blue_soul_crystal_0, 1); 
               SoundEffect(c1, "ItemSound.quest_middle");
            } 

         } 
	 else if ((OwnItemCount(c1, @blue_soul_crystal_1) >= 1) && (MaxLevel >= 2)) 
         { 
            if (Rand(100) <= PerGet12) 
	    { 
               DeleteItem1(c1, @blue_soul_crystal_1, 1); 
               GiveItem1(c1, @blue_soul_crystal_2,1); 
               SoundEffect(c1, "ItemSound.quest_itemget");
            } 
	    else if (Rand(100) < PerBreak1) 
	    { 
               DeleteItem1(c1, @blue_soul_crystal_1, 1); 
	       SoundEffect(c1, "ItemSound.quest_middle");
            } 

         } 
   }
}
cool_santino is offline  
Old 14.03.2006, 18:47   #3
ritor
Архивный участник
 
Join Date: Dec 2005
Posts: 21
Default

somebody plz saher nasc.exe (and required files) from l2tools 1.6 pack
i have this pack but lost nasc so i need nasc only
ritor is offline  
Old 14.03.2006, 19:20   #4
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default

Quote:
Originally Posted by ritor
somebody plz saher nasc.exe (and required files) from l2tools 1.6 pack
i have this pack but lost nasc so i need nasc only
have a look here: https://postpacific.loc-online.com/f...highlight=nasc

btw, did i say ty to cool_santino ? ty man since i made SA quest myself :wink:
Kirikups is offline  
Old 16.03.2006, 06:37   #5
ritor
Архивный участник
 
Join Date: Dec 2005
Posts: 21
Default

Quote:
Originally Posted by Kirikups
Quote:
Originally Posted by ritor
somebody plz saher nasc.exe (and required files) from l2tools 1.6 pack
i have this pack but lost nasc so i need nasc only
have a look here: https://postpacific.loc-online.com/f...highlight=nasc

btw, did i say ty to cool_santino ? ty man since i made SA quest myself :wink:
thanks
ritor is offline  
Old 16.03.2006, 18:35   #6
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

hey this topic helped me a great deal. I had actually coded my SA leveling form scratch and was having a few problems with it. thanks for the discussion
Firedaemon 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 16:53.