Jump to content

Recommended Posts

Posted

Hi guys,,

 

 

 

It's my first 'more advanced' script.

 

I have to say, it was rather complicated to make.. cause you deal with several mobs and your hp drops rather fast.

 

 

 

I tested it on easyer mobs, and went perfectly.. however with a crapload of mobs or with stronger mobs its gonna be hard.

 

 

 

Few notes:

 

*You can fill in your own coordinates ... here picture on what they all mean

 

 

2co4cwm.png

 

 

*Mind that your sleep1,2,3,4,A and B are long enough to walk to that location!!!

 

 

 

*Use Bot options > Buffs and heals; to use revival and battle roar

 

> Items; to spam mp's and greater healing potions

 

> AutoFighter; Auto Unstuck

 

 

 

 

 

Enjoy the script,, when i got time ill update it maybe a bit with more check's so he wont die for sure... but worked enough on it for now xD

 

 

 

Greetz. (Special thanks to Saleen, Infant and tstert for helping a bit )

 

 

 

//Warlord script made by SolarStorm

//Made for hellbound farm-area on L2Dubai

//Enjoy

//============================

PRINT_TEXT "Warlord script started by Solar."

//============================

//Under this HP_percentage will it use the stun attacks

DEFINE_GLOBAL INT HP_Percentage 80      //Chance this to what u like

//============================

DEFINE_GLOBAL INT HP_Percentage2 90    //To check if he still has mobs (Keep it high)

//============================

DEFINE_GLOBAL INT HP_Percent1 0

DEFINE_GLOBAL INT HP_Percent2 0

//============================

HP_Percent1 = char_max_hp / "#i100"

HP_Percent1 = HP_Percent1 * HP_Percentage

HP_Percent2 = char_max_hp / "#i100"

HP_Percent2 = HP_Percent2 * HP_Percentage2

//=====================================

//Buffs Warcry, fell swoop, Thrill fight and Detect beast weakness

THREAD Buffs

//=====================================

//Starting the loop

//First half of the square we run

    DO

         MOVE_TO 21912 252267 -2114 //Starting location

              SLEEP 10000

         USE_SKILL 286 //Provoke

         SLEEP 1000

         MOVE_TO 20914 254484 -2016 //Second location

              SLEEP 15000 //Time to run to location

         USE_SKILL 286 //Provoke

         SLEEP 1000

    TARGET_NEAREST_ID 1022756

         SET_TARGETING TYPE ZERO  //Checking target if its real mob

         SET_TARGETING ATTACKABLE ZERO

         SET_TARGETING COMBAT ZERO

    TARGET_NEAREST_ID 1022756

    ATTACK_TARGET

         SLEEP 500

         WHILE Char_Cur_HP < HP_Percent1

              TARGET_NEAREST_ID 1022756               

              USE_SKILL 48

              SLEEP 1000

              TARGET_NEAREST_ID 1022756

              ATTACK_TARGET

              SLEEP 6000

         WEND

              CANCEL_TARGET  //Going to check if we still have mobs

                        WHILE Char_Cur_HP < HP_Percent2

                             TARGET_NEAREST_ID 1022756  //Attack the mob with ID

                             ATTACK_TARGET 

                             SLEEP 2000

                        WEND                

         SLEEP 5000 //Little pause

//Second run

//Second half of the square we run

         MOVE_TO 18523 254471 -2016 //Third location

              SLEEP 10000 //time to run

         USE_SKILL 286 //Provoke

         SLEEP 1000

         MOVE_TO 17898 252300 -2019 //Fourth location

              SLEEP 15000 //time to run

         USE_SKILL 286 //Provoke

         SLEEP 1000

    TARGET_NEAREST_ID 1022756

         SET_TARGETING TYPE ZERO  //Checking target if its real mob

         SET_TARGETING ATTACKABLE ZERO

         SET_TARGETING COMBAT ZERO

    TARGET_NEAREST_ID 1022756

    ATTACK_TARGET

         SLEEP 500

         WHILE Char_Cur_HP < HP_Percent1

              TARGET_NEAREST_ID 1022756               

              USE_SKILL 48

              SLEEP 1000

              TARGET_NEAREST_ID 1022756

              ATTACK_TARGET

              SLEEP 6000

         WEND

              CANCEL_TARGET  //Going to check if we still have mobs

                        WHILE Char_Cur_HP < HP_Percent2

                             TARGET_NEAREST_ID 1022756  //Attack the mob with ID

                             ATTACK_TARGET 

                             SLEEP 2000

                        WEND                

         SLEEP 5000 //Little pause

LOOP ONE == ONE

END_SCRIPT



FUNCTION Buffs

   While Char_Cur_HP > 0

         USE_SKILL 78

         SLEEP 1000

         USE_SKILL 421

         SLEEP 1000

         USE_SKILL 130

         SLEEP 1000

         USE_SKILL 80

         SLEEP 100000

   WEND

Return void



 

 

ITS TESTED ON L2NET V390/DATAPACK V387

  • 2 weeks later...
  • 2 months later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...