Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Help (https://postpacific.mmorpg-game.online/forumdisplay.php?f=37)
-   -   ≈ AI, NASC, MY_DYING, SA (https://postpacific.mmorpg-game.online/showthread.php?t=3210)

khul 06.02.2006 02:34

//offtopic what compiler are you using ? i would die for having it :S , AI scripting line by line by hand makes big errors =(

cool_santino 06.02.2006 06:30

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");
            }

        }
  }
}


ritor 14.03.2006 18:47

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

Kirikups 14.03.2006 19:20

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.mmorpg-game.onli...highlight=nasc

btw, did i say ty to cool_santino ? ty man since i made SA quest myself :wink:

ritor 16.03.2006 06:37

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.mmorpg-game.onli...highlight=nasc

btw, did i say ty to cool_santino ? ty man since i made SA quest myself :wink:

thanks

Firedaemon 16.03.2006 18:35

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


All times are GMT. The time now is 16:15.