![]() |
|
|
#26 |
|
Архивный участник
Join Date: Oct 2005
Posts: 153
|
//offtopic what compiler are you using ? i would die for having it :S , AI scripting line by line by hand makes big errors =(
|
|
|
|
|
#27 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
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");
}
}
}
}
|
|
|
|
|
#28 |
|
Архивный участник
Join Date: Dec 2005
Posts: 21
|
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 |
|
|
|
|
#29 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
Quote:
btw, did i say ty to cool_santino ? ty man since i made SA quest myself :wink: |
|
|
|
|
|
#30 | ||
|
Архивный участник
Join Date: Dec 2005
Posts: 21
|
Quote:
|
||
|
|
|
|
#31 |
|
Архивный участник
Join Date: Oct 2005
Posts: 267
|
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
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|