Jump to content

Recommended Posts

Posted

Aura Force Toggles - Awaken Classes

 

//*****Awakened Toggles*****//
DEFINE_GLOBAL THREAD THREADAURAEFFECT AURAEFFECT
DEFINE_GLOBAL SORTEDLIST AURAFORCES

THREADAURAEFFECT.START

DO
SLEEP 200000000000
LOOP ZERO == ZERO
END_SCRIPT
RETURN VOID

FUNCTION AURAEFFECT
DO
PRINT_TEXT "Check Toggles Initialized"
    GET_EFFECTS AURAFORCES "<&CHAR_ID&>"
CALL AURAFORCE
    SLEEP 1000
LOOP ZERO == ZERO
RETURN VOID


FUNCTION AURAFORCE
SWITCH CHAR_CLASS
    CASE 139
        IF ( ( "AURAFORCES.CONTAINS_KEY 1927" == FALSE ) && ( CHAR_CUR_HP != 0 ) )
            USE_SKILL_SMART 1927
        ENDIF
        BREAK 1
    CASE 140
        IF ( ( "AURAFORCES.CONTAINS_KEY 1929" == FALSE ) && ( CHAR_CUR_HP != 0 ) )
            USE_SKILL_SMART 1929
        ENDIF
        BREAK 1
    CASE 141
        IF ( ( "AURAFORCES.CONTAINS_KEY 1931" == FALSE ) && ( CHAR_CUR_HP != 0 ) )
            USE_SKILL_SMART 1931
        ENDIF
        BREAK 1    
    CASE 142
        IF ( ( "AURAFORCES.CONTAINS_KEY 1933" == FALSE ) && ( CHAR_CUR_HP != 0 ) )
            USE_SKILL_SMART 1933
        ENDIF
        BREAK 1
    CASE 143
        IF ( ( "AURAFORCES.CONTAINS_KEY 1935" == FALSE ) && ( CHAR_CUR_HP != 0 ) )
            USE_SKILL_SMART 1935
        ENDIF
        BREAK 1
    CASE 145
        IF ( ( "AURAFORCES.CONTAINS_KEY 1937" == FALSE ) && ( CHAR_CUR_HP != 0 ) )
            USE_SKILL_SMART 1937
        ENDIF
        BREAK 1
    CASE 146
        IF ( ( "AURAFORCES.CONTAINS_KEY 1939" == FALSE ) && ( CHAR_CUR_HP != 0 ) )
            USE_SKILL_SMART 1939
            GET_EFFECTS AURAFORCES "<&CHAR_ID&>"
        ENDIF
        BREAK 1
ENDSWITCH
RETURN VOID

 

Kill function with random skill rotation

 

The only thing you need to change its the ID of the skills.

 

FUNCTION Kill

DEFINE INT Num 1
DEFINE INT SKILL1 11513        //aoe
DEFINE INT SKILL2 11514        //aoe
DEFINE INT SKILL3 11509        //single
DEFINE INT SKILL4 11510        //single
DEFINE INT SKILL5 11511        //single
DEFINE INT TEMPSKILL 11513
DEFINE ARRAYLIST NPCLIST 0
DEFINE INT COUNT 0

WHILE 1 == 1
    COUNT = 0
    GET_NPCS NPCLIST
    FOREACH N NPC NPCLIST
        IF ( NPCLIST.N.ID IN_RANGE 800 ) && ( NPCLIST.N.ATTACKABLE == 1 ) && ( NPCLIST.N.LOOKS_DEAD == 0 )
        COUNT = COUNT + 1    
        ENDIF
    NEXTEACH
    SLEEP 200
    IF ( COUNT > 3 ) //if there are more than 3 mobs it will only use aoe skills to save MP
        WHILE TARGET_CUR_HP > 0
            GET_RAND Num 1 2
            TEMPSKILL = "SKILL<&Num&>"
            USE_SKILL_SMART "<&TEMPSKILL&>"
            SLEEP 1000
        WEND
    ENDIF

    IF ( COUNT <= 3 ) && ( COUNT > 0 ) //if there are 3 or less mobs it will use all defined skills
        WHILE TARGET_CUR_HP > 0
            GET_RAND Num 1 5
            TEMPSKILL = "SKILL<&Num&>"
            USE_SKILL_SMART "<&TEMPSKILL&>"
            SLEEP 400
        WEND
    ELSE
        PRINT_TEXT "No mobs... sleeping"
        SLEEP 1000
    ENDIF
WEND
RETURN VOID  

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Hello i need one developer for make one l2 server
    • Wholesale buyers - special terms!   Looking for a profitable bulk deal? We’ll let you choose numbers from our pool - and find the ones that fit your needs perfectly.   Message us here 👉 [https://t.me/vibe_sms_admin] - we’ll discuss, agree on the price, and offer a discount if needed!   Our website: https://vibe-sms.net/ Our Telegram channel: https://t.me/vibe_sms
    • 🎉 **OPENING — Lineage 2 x17 MULTIPROF COMFORT SERVER!** 🔥 **October 31, 2025 at 20:00 (MSK)** (OBT starts **October 27, 2025 at 20:00**) 💎 **Multeria** invites you to join the brand-new **Multiprof server** — built with care, balance, and community feedback in mind! ⚔️ **COMFORT RATES:** • EXP ×17 (with PA ×25.5) • SP ×8.5 (with PA ×17) • Drop / Spoil ×1 (with PA ×2.5) • Adena ×1 (with PA ×2) 🚀 **WHAT’S NEW:** • New max level — **100** • **100% Craft System** for armor, weapons, belts (incl. Power Belt), bracelets & talismans • New epic accessory — **Frintezza’s Necklace** • **Mass skills cooldown reduced ×10** (Defense Instinct, Magic Impulse, Fanatic, etc.) • Fair play — HWID limits on global instances and rebirth-based party checks • **New 90+ dungeons** (60/120 min time limits) • **New PvP zones:** Varka, FoG, LoA, Stakato (battle zones active) • **Extra game window** available for in-game currency (Gold Einhasad) 💬 Everything you love about Lineage 2 — **balance, comfort, and fairness**. 🔗 More info: https://hf.multeria.world/
    • Hello everyone, we now have Adena for these projects: l2rebon signature x1 - 1kk = $0.8 l2reborn x10 - 500kk = $3.5 E-Global x Lu4 - 1kk = $1.8 ElmoreLab x5 - 1kk = $1.7 DISCORD - GODDARDSHOP
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock