Jump to content

[SHARE]L2Net Script: Beast Farm Moirai spoil.


Recommended Posts

Posted

Moirai Light:

// Beast Farm script
// Server:  l2j freya
// Autor: mochitto
// Date: 28.10.2010
// Special thanks for L2.NET contributors
// rev.: 34
PRINT_TEXT "SCRIPT STARTED!]"

// Main section
// ===============================
DEFINE_GLOBAL STRING NORMAL_MOB_NAME "Baby Alpine Kookaburra"
DEFINE_GLOBAL STRING NORMAL2_MOB_NAME "Young Kookaburra"
DEFINE_GLOBAL STRING FINAL_MOB_NAME "Adult Kookaburra"
DEFINE_GLOBAL STRING BANDIT1 "Beast Devourer"    
DEFINE_GLOBAL STRING BANDIT2 "Farm Bandit"        
DEFINE_GLOBAL STRING FINAL2_MOB_NAME "Full Grown Kookaburra" 
DEFINE_GLOBAL INT ID_LAST_MOB
DEFINE_GLOBAL INT RAND 0
DEFINE_GLOBAL INT COMM 0

SET_EVENT "<&SCRIPTEVENT_SELFDIE&>" "<&SYSTEM_CURRENTFILE&>" SelfDie

THREAD SKILLS
THREAD MP

DO
   LABEL HERE
   IF TARGET_ID == 0
       TARGET_NEAREST
       SLEEP 1200    
   ENDIF
   
   IF ( ( TARGET_NAME == NORMAL_MOB_NAME ) || ( TARGET_NAME == NORMAL2_MOB_NAME ) )
       USE_ITEM 15474
       SLEEP 800
   ELSE
       IF ( ( TARGET_NAME == FINAL_MOB_NAME ) || ( TARGET_NAME == FINAL2_MOB_NAME ) )
           ID_LAST_MOB = TARGET_ID
           GET_RAND RAND 300 2000
           SLEEP "<&RAND&>"
           USE_SKILL 254
           GET_RAND RAND 2300 3600
           SLEEP "<&RAND&>"
           USE_SKILL 254
           GET_RAND RAND 2300 3600
           SLEEP "<&RAND&>"
           WHILE TARGET_CUR_HP > 0
               IF TARGET_ID != ID_LAST_MOB
                   JUMP_TO_LABEL HERE
               ENDIF
               SLEEP 400          
           WEND
           GET_RAND RAND 800 2600
           SLEEP "<&RAND&>"
           TARGET_NEAREST
       ELSE
           IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) )
               ID_LAST_MOB = TARGET_ID
               USE_SKILL 254
               GET_RAND RAND 2300 3600
               SLEEP "<&RAND&>"
               WHILE TARGET_CUR_HP > 0
                   IF TARGET_ID != ID_LAST_MOB
                       JUMP_TO_LABEL HERE
                   ENDIF  
                   SLEEP 400          
               WEND
               GET_RAND RAND 800 2600
               SLEEP "<&RAND&>"
               TARGET_NEAREST
           ENDIF
       ENDIF
   ENDIF
   SLEEP 600
LOOP ONE == ONE

PRINT_TEXT "SCRIPT STOPED!]"
END_SCRIPT

FUNCTION SKILLS
   WHILE ZERO == ZERO
   
   IF CHAR_CUR_MP < 200
       IF TARGET_ID != 0
           COMMAND "/attack"
           SLEEP 1200    
       ENDIF        
       SLEEP 3000
   ELSE  
       IF TARGET_CUR_HP > 0
            
       IF ( ( TARGET_NAME == FINAL_MOB_NAME ) ) && ( ( TARGET_CUR_HP < TARGET_MAX_HP ) )
             USE_SKILL 190
             GET_RAND RAND 1800 3100
            SLEEP "<&RAND&>"
             USE_SKILL 260
             GET_RAND RAND 1800 3100
             SLEEP "<&RAND&>"  
       ELSE
           IF TARGET_NAME == FINAL_MOB_NAME
               COMMAND "/attack"
               SLEEP 5000    
           ELSE
               IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) ) 
                   USE_SKILL 190
                     GET_RAND RAND 1800 3100
                    SLEEP "<&RAND&>"
                     USE_SKILL 260
                     GET_RAND RAND 1800 3100
                     SLEEP "<&RAND&>"  
                 ENDIF
           ENDIF     
         ENDIF
         
         ENDIF
     ENDIF
     
     SLEEP 300
     
   WEND
RETURN VOID

FUNCTION MP
    DEFINE INT MPPOTS
    WHILE ZERO == ZERO  
         ITEM_COUNT MPPOTS 728
         IF MPPOTS > #i1
              IF ( CHAR_CUR_MP < ( ( CHAR_MAX_MP * 11 ) / 100 ) )
                   WHILE ( CHAR_CUR_MP < ( CHAR_MAX_MP - 700 ) ) 
                       print_text "use mana"
                        ITEM_COUNT MPPOTS 728
                        IF MPPOTS > #i1
                             USE_ITEM 728 // Mana Potion
                        ELSE
                             BREAK 2
                        ENDIF
                        SLEEP 900
                   WEND
              ENDIF
         ELSE
              SLEEP 10000
         ENDIF
         SLEEP 25
    WEND
RETURN VOID   
       
FUNCTION SelfDie
   IF COMM != 1
       COMM = 1
       SLEEP 3000
       TAP_TO TOWN
   ENDIF
RETURN VOID

Moirai Gloves (light/robe/heavy) :

// Beast Farm script
// Server:  l2j freya
// Autor: mochitto
// Date: 28.10.2010
// Special thanks for L2.NET contributors
// rev.: 34
PRINT_TEXT "SCRIPT STARTED!]"

// Main section
// ===============================
DEFINE_GLOBAL STRING NORMAL_MOB_NAME "Baby Alpine Cougar"
DEFINE_GLOBAL STRING NORMAL2_MOB_NAME "Baby Alpine Kookaburra"
DEFINE_GLOBAL STRING FINAL_MOB_NAME "Young Cougar"
DEFINE_GLOBAL STRING BANDIT1 "Beast Devourer"    
DEFINE_GLOBAL STRING BANDIT2 "Farm Bandit"        
DEFINE_GLOBAL STRING FINAL2_MOB_NAME "Full Grown Cougar" 
DEFINE_GLOBAL INT ID_LAST_MOB
DEFINE_GLOBAL INT RAND 0
DEFINE_GLOBAL INT COMM 0

SET_EVENT "<&SCRIPTEVENT_SELFDIE&>" "<&SYSTEM_CURRENTFILE&>" SelfDie

THREAD SKILLS
THREAD MP

DO
   LABEL HERE
   IF TARGET_ID == 0
       TARGET_NEAREST
       SLEEP 1200    
   ENDIF
   
   IF ( ( TARGET_NAME == NORMAL_MOB_NAME ) || ( TARGET_NAME == NORMAL2_MOB_NAME ) )
       USE_ITEM 15474
       SLEEP 800
   ELSE
       IF ( ( TARGET_NAME == FINAL_MOB_NAME ) || ( TARGET_NAME == FINAL2_MOB_NAME ) )
           ID_LAST_MOB = TARGET_ID
           GET_RAND RAND 300 2000
           SLEEP "<&RAND&>"
           USE_SKILL 254
           GET_RAND RAND 2300 3600
           SLEEP "<&RAND&>"
           USE_SKILL 254
           GET_RAND RAND 2300 3600
           SLEEP "<&RAND&>"
           WHILE TARGET_CUR_HP > 0
               IF TARGET_ID != ID_LAST_MOB
                   JUMP_TO_LABEL HERE
               ENDIF
               SLEEP 400          
           WEND
           GET_RAND RAND 800 2600
           SLEEP "<&RAND&>"
           TARGET_NEAREST
       ELSE
           IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) )
               ID_LAST_MOB = TARGET_ID
               USE_SKILL 254
               GET_RAND RAND 2300 3600
               SLEEP "<&RAND&>"
               WHILE TARGET_CUR_HP > 0
                   IF TARGET_ID != ID_LAST_MOB
                       JUMP_TO_LABEL HERE
                   ENDIF  
                   SLEEP 400          
               WEND
               GET_RAND RAND 800 2600
               SLEEP "<&RAND&>"
               TARGET_NEAREST
           ENDIF
       ENDIF
   ENDIF
   SLEEP 600
LOOP ONE == ONE

PRINT_TEXT "SCRIPT STOPED!]"
END_SCRIPT

FUNCTION SKILLS
   WHILE ZERO == ZERO
   
   IF CHAR_CUR_MP < 200
       IF TARGET_ID != 0
           COMMAND "/attack"
           SLEEP 1200    
       ENDIF        
       SLEEP 3000
   ELSE  
       IF TARGET_CUR_HP > 0
            
       IF ( ( TARGET_NAME == FINAL_MOB_NAME ) ) && ( ( TARGET_CUR_HP < TARGET_MAX_HP ) )
             USE_SKILL 190
             GET_RAND RAND 1800 3100
            SLEEP "<&RAND&>"
             USE_SKILL 260
             GET_RAND RAND 1800 3100
             SLEEP "<&RAND&>"  
       ELSE
           IF TARGET_NAME == FINAL_MOB_NAME
               COMMAND "/attack"
               SLEEP 5000    
           ELSE
               IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) ) 
                   USE_SKILL 190
                     GET_RAND RAND 1800 3100
                    SLEEP "<&RAND&>"
                     USE_SKILL 260
                     GET_RAND RAND 1800 3100
                     SLEEP "<&RAND&>"  
                 ENDIF
           ENDIF     
         ENDIF
         
         ENDIF
     ENDIF
     
     SLEEP 300
     
   WEND
RETURN VOID

FUNCTION MP
    DEFINE INT MPPOTS
    WHILE ZERO == ZERO  
         ITEM_COUNT MPPOTS 728
         IF MPPOTS > #i1
              IF ( CHAR_CUR_MP < ( ( CHAR_MAX_MP * 11 ) / 100 ) )
                   WHILE ( CHAR_CUR_MP < ( CHAR_MAX_MP - 700 ) ) 
                       print_text "use mana"
                        ITEM_COUNT MPPOTS 728
                        IF MPPOTS > #i1
                             USE_ITEM 728 // Mana Potion
                        ELSE
                             BREAK 2
                        ENDIF
                        SLEEP 900
                   WEND
              ENDIF
         ELSE
              SLEEP 10000
         ENDIF
         SLEEP 25
    WEND
RETURN VOID   
       
FUNCTION SelfDie
   IF COMM != 1
       COMM = 1
       SLEEP 3000
       TAP_TO TOWN
   ENDIF
RETURN VOID

Moirai Heavy: Upper/lower:

// Beast Farm script
// Server:  l2j freya
// Autor: mochitto
// Date: 28.10.2010
// Special thanks for L2.NET contributors
// rev.: 34
PRINT_TEXT "SCRIPT STARTED!]"

// Main section
// ===============================
DEFINE_GLOBAL STRING NORMAL_MOB_NAME "Baby Alpine Cougar"
DEFINE_GLOBAL STRING NORMAL2_MOB_NAME "Young Cougar"
DEFINE_GLOBAL STRING FINAL_MOB_NAME "Adult Cougar"
DEFINE_GLOBAL STRING BANDIT1 "Beast Devourer"    
DEFINE_GLOBAL STRING BANDIT2 "Farm Bandit"        
DEFINE_GLOBAL STRING FINAL2_MOB_NAME "Full Grown Cougar" 
DEFINE_GLOBAL INT ID_LAST_MOB
DEFINE_GLOBAL INT RAND 0
DEFINE_GLOBAL INT COMM 0

SET_EVENT "<&SCRIPTEVENT_SELFDIE&>" "<&SYSTEM_CURRENTFILE&>" SelfDie

THREAD SKILLS
THREAD MP

DO
   LABEL HERE
   IF TARGET_ID == 0
       TARGET_NEAREST
       SLEEP 1200    
   ENDIF
   
   IF ( ( TARGET_NAME == NORMAL_MOB_NAME ) || ( TARGET_NAME == NORMAL2_MOB_NAME ) )
       USE_ITEM 15474
       SLEEP 800
   ELSE
       IF ( ( TARGET_NAME == FINAL_MOB_NAME ) || ( TARGET_NAME == FINAL2_MOB_NAME ) )
           ID_LAST_MOB = TARGET_ID
           GET_RAND RAND 300 2000
           SLEEP "<&RAND&>"
           USE_SKILL 254
           GET_RAND RAND 2300 3600
           SLEEP "<&RAND&>"
           USE_SKILL 254
           GET_RAND RAND 2300 3600
           SLEEP "<&RAND&>"
           WHILE TARGET_CUR_HP > 0
               IF TARGET_ID != ID_LAST_MOB
                   JUMP_TO_LABEL HERE
               ENDIF
               SLEEP 400          
           WEND
           GET_RAND RAND 800 2600
           SLEEP "<&RAND&>"
           TARGET_NEAREST
       ELSE
           IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) )
               ID_LAST_MOB = TARGET_ID
               USE_SKILL 254
               GET_RAND RAND 2300 3600
               SLEEP "<&RAND&>"
               WHILE TARGET_CUR_HP > 0
                   IF TARGET_ID != ID_LAST_MOB
                       JUMP_TO_LABEL HERE
                   ENDIF  
                   SLEEP 400          
               WEND
               GET_RAND RAND 800 2600
               SLEEP "<&RAND&>"
               TARGET_NEAREST
           ENDIF
       ENDIF
   ENDIF
   SLEEP 600
LOOP ONE == ONE

PRINT_TEXT "SCRIPT STOPED!]"
END_SCRIPT

FUNCTION SKILLS
   WHILE ZERO == ZERO
   
   IF CHAR_CUR_MP < 200
       IF TARGET_ID != 0
           COMMAND "/attack"
           SLEEP 1200    
       ENDIF        
       SLEEP 3000
   ELSE  
       IF TARGET_CUR_HP > 0
            
       IF ( ( TARGET_NAME == FINAL_MOB_NAME ) ) && ( ( TARGET_CUR_HP < TARGET_MAX_HP ) )
             USE_SKILL 190
             GET_RAND RAND 1800 3100
            SLEEP "<&RAND&>"
             USE_SKILL 260
             GET_RAND RAND 1800 3100
             SLEEP "<&RAND&>"  
       ELSE
           IF TARGET_NAME == FINAL_MOB_NAME
               COMMAND "/attack"
               SLEEP 5000    
           ELSE
               IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) ) 
                   USE_SKILL 190
                     GET_RAND RAND 1800 3100
                    SLEEP "<&RAND&>"
                     USE_SKILL 260
                     GET_RAND RAND 1800 3100
                     SLEEP "<&RAND&>"  
                 ENDIF
           ENDIF     
         ENDIF
         
         ENDIF
     ENDIF
     
     SLEEP 300
     
   WEND
RETURN VOID

FUNCTION MP
    DEFINE INT MPPOTS
    WHILE ZERO == ZERO  
         ITEM_COUNT MPPOTS 728
         IF MPPOTS > #i1
              IF ( CHAR_CUR_MP < ( ( CHAR_MAX_MP * 11 ) / 100 ) )
                   WHILE ( CHAR_CUR_MP < ( CHAR_MAX_MP - 700 ) ) 
                       print_text "use mana"
                        ITEM_COUNT MPPOTS 728
                        IF MPPOTS > #i1
                             USE_ITEM 728 // Mana Potion
                        ELSE
                             BREAK 2
                        ENDIF
                        SLEEP 900
                   WEND
              ENDIF
         ELSE
              SLEEP 10000
         ENDIF
         SLEEP 25
    WEND
RETURN VOID   
       
FUNCTION SelfDie
   IF COMM != 1
       COMM = 1
       SLEEP 3000
       TAP_TO TOWN
   ENDIF
RETURN VOID

CREDITS ARE NOT MINE.

Special thanks for L2.NET contributors

I just edited script in order to spoil the Moirai gloves | Moirai heavy parts.

  • 2 weeks later...
  • 1 month later...
  • 2 months later...
Posted

u know script for adult buffalo ?  i need moirai tunic and hose

 

if you know plz write

// Beast Farm script
// Server:  l2j freya
// Autor: djpliku
// Date: 6.12.2011
// Special thanks for L2.NET contributors
// rev.: 34
PRINT_TEXT "SCRIPT STARTED!]"

// Main section
// ===============================
DEFINE_GLOBAL STRING NORMAL_MOB_NAME "Baby Buffalo"
DEFINE_GLOBAL STRING NORMAL2_MOB_NAME "Baby Buffalo"
DEFINE_GLOBAL STRING FINAL_MOB_NAME "Adult Buffalo"
DEFINE_GLOBAL STRING BANDIT1 "Beast Devourer"    
DEFINE_GLOBAL STRING BANDIT2 "Farm Bandit"        
DEFINE_GLOBAL STRING FINAL2_MOB_NAME "Adult Buffalo" 
DEFINE_GLOBAL INT ID_LAST_MOB
DEFINE_GLOBAL INT RAND 0
DEFINE_GLOBAL INT COMM 0

SET_EVENT "<&SCRIPTEVENT_SELFDIE&>" "<&SYSTEM_CURRENTFILE&>" SelfDie

THREAD SKILLS
THREAD MP

DO
    LABEL HERE
    IF TARGET_ID == 0
        TARGET_NEAREST
        SLEEP 1200    
    ENDIF
    
    IF ( ( TARGET_NAME == NORMAL_MOB_NAME ) || ( TARGET_NAME == NORMAL2_MOB_NAME ) )
        USE_ITEM 15474
        SLEEP 800
    ELSE
        IF ( ( TARGET_NAME == FINAL_MOB_NAME ) || ( TARGET_NAME == FINAL2_MOB_NAME ) )
            ID_LAST_MOB = TARGET_ID
            GET_RAND RAND 300 2000
            SLEEP "<&RAND&>"
            USE_SKILL 254
            GET_RAND RAND 2300 3600
            SLEEP "<&RAND&>"
            USE_SKILL 254
            GET_RAND RAND 2300 3600
            SLEEP "<&RAND&>"
            WHILE TARGET_CUR_HP > 0
                IF TARGET_ID != ID_LAST_MOB
                    JUMP_TO_LABEL HERE
                ENDIF
                SLEEP 400          
            WEND
            GET_RAND RAND 800 2600
            SLEEP "<&RAND&>"
            TARGET_NEAREST
        ELSE
            IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) )
                ID_LAST_MOB = TARGET_ID
                USE_SKILL 254
                GET_RAND RAND 2300 3600
                SLEEP "<&RAND&>"
                WHILE TARGET_CUR_HP > 0
                    IF TARGET_ID != ID_LAST_MOB
                        JUMP_TO_LABEL HERE
                    ENDIF  
                    SLEEP 400          
                WEND
                GET_RAND RAND 800 2600
                SLEEP "<&RAND&>"
                TARGET_NEAREST
            ENDIF
        ENDIF
    ENDIF
    SLEEP 600
LOOP ONE == ONE

PRINT_TEXT "SCRIPT STOPED!]"
END_SCRIPT

FUNCTION SKILLS
    WHILE ZERO == ZERO
    
    IF CHAR_CUR_MP < 200
        IF TARGET_ID != 0
            COMMAND "/attack"
            SLEEP 1200    
        ENDIF        
        SLEEP 3000
    ELSE  
        IF TARGET_CUR_HP > 0
             
        IF ( ( TARGET_NAME == FINAL_MOB_NAME ) ) && ( ( TARGET_CUR_HP < TARGET_MAX_HP ) )
              USE_SKILL 190
              GET_RAND RAND 1800 3100
             SLEEP "<&RAND&>"
              USE_SKILL 260
              GET_RAND RAND 1800 3100
              SLEEP "<&RAND&>"  
        ELSE
            IF TARGET_NAME == FINAL_MOB_NAME
                COMMAND "/attack"
                SLEEP 5000    
            ELSE
                IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) ) 
                    USE_SKILL 190
                      GET_RAND RAND 1800 3100
                     SLEEP "<&RAND&>"
                      USE_SKILL 260
                      GET_RAND RAND 1800 3100
                      SLEEP "<&RAND&>"  
                  ENDIF
            ENDIF     
          ENDIF
          
          ENDIF
      ENDIF
      
      SLEEP 300
      
    WEND
RETURN VOID

FUNCTION MP
     DEFINE INT MPPOTS
     WHILE ZERO == ZERO  
          ITEM_COUNT MPPOTS 728
          IF MPPOTS > #i1
               IF ( CHAR_CUR_MP < ( ( CHAR_MAX_MP * 11 ) / 100 ) )
                    WHILE ( CHAR_CUR_MP < ( CHAR_MAX_MP - 700 ) ) 
                        print_text "use mana"
                         ITEM_COUNT MPPOTS 728
                         IF MPPOTS > #i1
                              USE_ITEM 728 // Mana Potion
                         ELSE
                              BREAK 2
                         ENDIF
                         SLEEP 900
                    WEND
               ENDIF
          ELSE
               SLEEP 10000
          ENDIF
          SLEEP 25
     WEND
RETURN VOID   
        
FUNCTION SelfDie
    IF COMM != 1
        COMM = 1
        SLEEP 3000
        TAP_TO TOWN
    ENDIF
RETURN VOID

Have fun !

  • 1 month later...
Posted

ty for your share.If you can plz make one for full grown Kookaburra to spoil icarus sawsword recipe with my spoiler...and ty again :)

// Beast Farm script
// Server:  l2j freya
// Autor: mochitto
// Date: 28.10.2010
// Special thanks for L2.NET contributors
// rev.: 34
PRINT_TEXT "SCRIPT STARTED!]"

// Main section
// ===============================
DEFINE_GLOBAL STRING NORMAL_MOB_NAME "Baby Kookaburra"
DEFINE_GLOBAL STRING NORMAL2_MOB_NAME "Baby Kookaburra"
DEFINE_GLOBAL STRING FINAL_MOB_NAME "Full Grown Kookaburra"
DEFINE_GLOBAL STRING BANDIT1 "Beast Devourer"    
DEFINE_GLOBAL STRING BANDIT2 "Farm Bandit"        
DEFINE_GLOBAL STRING FINAL2_MOB_NAME "Full Grown Kookaburra" 
DEFINE_GLOBAL INT ID_LAST_MOB
DEFINE_GLOBAL INT RAND 0
DEFINE_GLOBAL INT COMM 0

SET_EVENT "<&SCRIPTEVENT_SELFDIE&>" "<&SYSTEM_CURRENTFILE&>" SelfDie

THREAD SKILLS
THREAD MP

DO
    LABEL HERE
    IF TARGET_ID == 0
        TARGET_NEAREST
        SLEEP 1200    
    ENDIF
    
    IF ( ( TARGET_NAME == NORMAL_MOB_NAME ) || ( TARGET_NAME == NORMAL2_MOB_NAME ) )
        USE_ITEM 15474
        SLEEP 800
    ELSE
        IF ( ( TARGET_NAME == FINAL_MOB_NAME ) || ( TARGET_NAME == FINAL2_MOB_NAME ) )
            ID_LAST_MOB = TARGET_ID
            GET_RAND RAND 300 2000
            SLEEP "<&RAND&>"
            USE_SKILL 254
            GET_RAND RAND 2300 3600
            SLEEP "<&RAND&>"
            USE_SKILL 254
            GET_RAND RAND 2300 3600
            SLEEP "<&RAND&>"
            WHILE TARGET_CUR_HP > 0
                IF TARGET_ID != ID_LAST_MOB
                    JUMP_TO_LABEL HERE
                ENDIF
                SLEEP 400          
            WEND
            GET_RAND RAND 800 2600
            SLEEP "<&RAND&>"
            TARGET_NEAREST
        ELSE
            IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) )
                ID_LAST_MOB = TARGET_ID
                USE_SKILL 254
                GET_RAND RAND 2300 3600
                SLEEP "<&RAND&>"
                WHILE TARGET_CUR_HP > 0
                    IF TARGET_ID != ID_LAST_MOB
                        JUMP_TO_LABEL HERE
                    ENDIF  
                    SLEEP 400          
                WEND
                GET_RAND RAND 800 2600
                SLEEP "<&RAND&>"
                TARGET_NEAREST
            ENDIF
        ENDIF
    ENDIF
    SLEEP 600
LOOP ONE == ONE

PRINT_TEXT "SCRIPT STOPED!]"
END_SCRIPT

FUNCTION SKILLS
    WHILE ZERO == ZERO
    
    IF CHAR_CUR_MP < 200
        IF TARGET_ID != 0
            COMMAND "/attack"
            SLEEP 1200    
        ENDIF        
        SLEEP 3000
    ELSE  
        IF TARGET_CUR_HP > 0
             
        IF ( ( TARGET_NAME == FINAL_MOB_NAME ) ) && ( ( TARGET_CUR_HP < TARGET_MAX_HP ) )
              USE_SKILL 190
              GET_RAND RAND 1800 3100
             SLEEP "<&RAND&>"
              USE_SKILL 260
              GET_RAND RAND 1800 3100
              SLEEP "<&RAND&>"  
        ELSE
            IF TARGET_NAME == FINAL_MOB_NAME
                COMMAND "/attack"
                SLEEP 5000    
            ELSE
                IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) ) 
                    USE_SKILL 190
                      GET_RAND RAND 1800 3100
                     SLEEP "<&RAND&>"
                      USE_SKILL 260
                      GET_RAND RAND 1800 3100
                      SLEEP "<&RAND&>"  
                  ENDIF
            ENDIF     
          ENDIF
          
          ENDIF
      ENDIF
      
      SLEEP 300
      
    WEND
RETURN VOID

FUNCTION MP
     DEFINE INT MPPOTS
     WHILE ZERO == ZERO  
          ITEM_COUNT MPPOTS 728
          IF MPPOTS > #i1
               IF ( CHAR_CUR_MP < ( ( CHAR_MAX_MP * 11 ) / 100 ) )
                    WHILE ( CHAR_CUR_MP < ( CHAR_MAX_MP - 700 ) ) 
                        print_text "use mana"
                         ITEM_COUNT MPPOTS 728
                         IF MPPOTS > #i1
                              USE_ITEM 728 // Mana Potion
                         ELSE
                              BREAK 2
                         ENDIF
                         SLEEP 900
                    WEND
               ENDIF
          ELSE
               SLEEP 10000
          ENDIF
          SLEEP 25
     WEND
RETURN VOID   
        
FUNCTION SelfDie
    IF COMM != 1
        COMM = 1
        SLEEP 3000
        TAP_TO TOWN
    ENDIF
RETURN VOID

 

It should work, have fun.

Posted

Hello, can u make on script that spoils adult kokaburas not to target baby alpine cougar, couse then it stop spoiling. And it spoils only once, if spoil fail it dont repeat it ;/ if u can help me thx :/

Posted

Hello, can u make on script that spoils adult kokaburas not to target baby alpine cougar, couse then it stop spoiling. And it spoils only once, if spoil fail it dont repeat it ;/ if u can help me thx :/

// Beast Farm script
// Server:  l2j freya
// Autor: mochitto
// Date: 28.10.2010
// Special thanks for L2.NET contributors
// rev.: 34
PRINT_TEXT "SCRIPT STARTED!]"

// Main section
// ===============================
DEFINE_GLOBAL STRING NORMAL_MOB_NAME "Baby Kookaburra"
DEFINE_GLOBAL STRING NORMAL2_MOB_NAME "Baby Alpine Kookaburra"
DEFINE_GLOBAL STRING FINAL_MOB_NAME "Adult Kookaburra"
DEFINE_GLOBAL STRING BANDIT1 "Beast Devourer"    
DEFINE_GLOBAL STRING BANDIT2 "Farm Bandit"        
DEFINE_GLOBAL STRING FINAL2_MOB_NAME "Adult Kookaburra" 
DEFINE_GLOBAL INT ID_LAST_MOB
DEFINE_GLOBAL INT RAND 0
DEFINE_GLOBAL INT COMM 0

SET_EVENT "<&SCRIPTEVENT_SELFDIE&>" "<&SYSTEM_CURRENTFILE&>" SelfDie

THREAD SKILLS
THREAD MP

DO
    LABEL HERE
    IF TARGET_ID == 0
        TARGET_NEAREST
        SLEEP 1200    
    ENDIF
    
    IF ( ( TARGET_NAME == NORMAL_MOB_NAME ) || ( TARGET_NAME == NORMAL2_MOB_NAME ) )
        USE_ITEM 15474
        SLEEP 800
    ELSE
        IF ( ( TARGET_NAME == FINAL_MOB_NAME ) || ( TARGET_NAME == FINAL2_MOB_NAME ) )
            ID_LAST_MOB = TARGET_ID
            GET_RAND RAND 300 2000
            SLEEP "<&RAND&>"
            USE_SKILL 254
            GET_RAND RAND 2300 3600
            SLEEP "<&RAND&>"
            USE_SKILL 254
            GET_RAND RAND 2300 3600
            SLEEP "<&RAND&>"
            WHILE TARGET_CUR_HP > 0
                IF TARGET_ID != ID_LAST_MOB
                    JUMP_TO_LABEL HERE
                ENDIF
                SLEEP 400          
            WEND
            GET_RAND RAND 800 2600
            SLEEP "<&RAND&>"
            TARGET_NEAREST
        ELSE
            IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) )
                ID_LAST_MOB = TARGET_ID
                USE_SKILL 254
                GET_RAND RAND 2300 3600
                SLEEP "<&RAND&>"
                WHILE TARGET_CUR_HP > 0
                    IF TARGET_ID != ID_LAST_MOB
                        JUMP_TO_LABEL HERE
                    ENDIF  
                    SLEEP 400          
                WEND
                GET_RAND RAND 800 2600
                SLEEP "<&RAND&>"
                TARGET_NEAREST
            ENDIF
        ENDIF
    ENDIF
    SLEEP 600
LOOP ONE == ONE

PRINT_TEXT "SCRIPT STOPED!]"
END_SCRIPT

FUNCTION SKILLS
    WHILE ZERO == ZERO
    
    IF CHAR_CUR_MP < 200
        IF TARGET_ID != 0
            COMMAND "/attack"
            SLEEP 1200    
        ENDIF        
        SLEEP 3000
    ELSE  
        IF TARGET_CUR_HP > 0
             
        IF ( ( TARGET_NAME == FINAL_MOB_NAME ) ) && ( ( TARGET_CUR_HP < TARGET_MAX_HP ) )
              USE_SKILL 190
              GET_RAND RAND 1800 3100
             SLEEP "<&RAND&>"
              USE_SKILL 260
              GET_RAND RAND 1800 3100
              SLEEP "<&RAND&>"  
        ELSE
            IF TARGET_NAME == FINAL_MOB_NAME
                COMMAND "/attack"
                SLEEP 5000    
            ELSE
                IF ( ( TARGET_NAME == BANDIT1 ) || ( TARGET_NAME == BANDIT2 ) ) 
                    USE_SKILL 190
                      GET_RAND RAND 1800 3100
                     SLEEP "<&RAND&>"
                      USE_SKILL 260
                      GET_RAND RAND 1800 3100
                      SLEEP "<&RAND&>"  
                  ENDIF
            ENDIF     
          ENDIF
          
          ENDIF
      ENDIF
      
      SLEEP 300
      
    WEND
RETURN VOID

FUNCTION MP
     DEFINE INT MPPOTS
     WHILE ZERO == ZERO  
          ITEM_COUNT MPPOTS 728
          IF MPPOTS > #i1
               IF ( CHAR_CUR_MP < ( ( CHAR_MAX_MP * 11 ) / 100 ) )
                    WHILE ( CHAR_CUR_MP < ( CHAR_MAX_MP - 700 ) ) 
                        print_text "use mana"
                         ITEM_COUNT MPPOTS 728
                         IF MPPOTS > #i1
                              USE_ITEM 728 // Mana Potion
                         ELSE
                              BREAK 2
                         ENDIF
                         SLEEP 900
                    WEND
               ENDIF
          ELSE
               SLEEP 10000
          ENDIF
          SLEEP 25
     WEND
RETURN VOID   
        
FUNCTION SelfDie
    IF COMM != 1
        COMM = 1
        SLEEP 3000
        TAP_TO TOWN
    ENDIF
RETURN VOID

Try it, and tell me if it works good.

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

    • ⚡ Weekend Stock Refresh! Fast order fulfillment is active. Get Gemini Pro Advanced + Google One cloud storage activated on your own personal email within minutes.
    • New Release World & atmosphere A complete dynamic weather system has arrived, with Clear, Light Rain, Rain, Heavy Rain, Storm, Snow, and Windy presets. Rain and snow react to roofs, wind moves foliage, lightning illuminates storms, exposed ground becomes wet and develops puddles, and snow builds up and melts over time. Weather includes Low to Ultra quality levels and advanced controls for precipitation, wind, cloud cover, lightning, surface wetness, puddles, and snow. The game server can also select or restore the current weather while local quality settings continue to control rendering cost. The weather can be controlled from the server with custom packets. For more details use Shift+Alt+P. Enhanced lighting now allows authored lamps, fires, and other light sources to illuminate towns and interiors. Lights can pulse, flicker, blink, and strobe, flames produce warm dynamic light, and lamps display depth-aware halos. Remastered emissive surfaces are now supported, beginning with illuminated windows in Giran that glow and cast light into their surroundings. Broadcasting Towers now use their correct original scale and animated rings and glow effects. Map, quests & navigation A complete quest journal has been added, with active and completed quests, expandable stages, descriptions, requirements, item progress, quest inventory integration, location controls, and quest cancellation. Quest objectives now appear through flashing minimap and world-map markers, an overhead directional guide, a notification button beside chat, and rotating quest symbols above eligible NPCs. Server-directed radar markers now work across the live minimap and world map, including the original overhead guidance effect and arrival behavior. The original tutorial system now works, including scrollable tutorial pages, animated illustrations, the flashing question button, tutorial links, and movement, camera, pickup, and sit/rest progression events. Server-opened town maps now display their original artwork and the supplied player marker. Shops, storage & items Personal, clan, castle, and freight warehouses now work, including deposits, withdrawals, stack quantities, fees, weight and capacity previews, tooltips, and the original warning and empty-storage dialogs. Account freight now works through the original recipient picker and delivery window, allowing items to be sent to another character on the same account. Multisell exchanges now work, with paged recipe lists, product details, required materials, quantity selection, warnings, and server-backed completion. Manor seed purchasing is now supported through the shop interface, including availability and pricing. Inventory items can now be dragged to the trash button and destroyed after the appropriate warning or quantity prompt. The original in-game calculator now works with mouse and keyboard input. Community The Community Board is now available from the system menu or Alt+B, with Home, Favorites, Region, Clan, Memo, Mail, and Friends sections, retained navigation, forms, scrolling, minimization, and server-provided pages. Characters, cameras & events Striders and Wyverns now render as fully animated mounts with the rider attached correctly. Striders remain ground-based, while Wyverns support three-dimensional flight. Characters now enter a proper falling state after high drops or airborne dismounts, with falling animations and server-authoritative landing and fall-damage handling. Players can now sit on authored world chairs using the correct sit, wait, and stand animations. Server-driven special camera sequences now work, including target tracking, interpolation, duration, widescreen bars, and restoration to the normal camera. GM camera mode and server-authorized ///fly movement are now supported. The original 102-second Kamael teaser sequence has been restored with its complete slideshow, transitions, panning artwork, localized subtitles, and narration. Hats, masks, circlets, and other hair accessories now use their authored head placement and correctly adjust the character's hairstyle. Timed server confirmation dialogs, short-duration status effects, regeneration previews, and the seasonal Christmas Seal presentation are now supported. Interface & performance Character creation has been refined with corrected description wrapping, clipping, layout, and name-entry presentation. Tutorial and NPC dialog windows now use polished proportional scrollbars, improved HTML layout, and correctly sized illustrations and controls. A new independent 3D render-resolution setting offers Native, 720p, 900p, 1080p, 1440p, and 4K choices while keeping the window, HUD, text, and FermaUI at native resolution. Major rendering optimizations reduce unnecessary work in local lighting, shadows, visibility, exposure, bloom, post-processing, and GPU diagnostics. Download from the launcher you have installed, or at https://updates.fermata.gg/ if you don't have the launcher. Fermata Light Engine Preview All lights can be baked in the client, shipped to the users, and exported and imported as .femlight files.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..