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.

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.



  • Posts

    • 🍂 The cost on Vibe-sms is dropping, like autumn leaves falling from the trees.     It’s a little sad to watch the last days of summer fade away with its warmth, but that’s how the world works  every season has its own rules. The same goes for our prices: they are gradually but steadily going down, opening up new opportunities and great deals. 💸   🌍 USA is already at the minimum, and Europe, Asia, and dozens of other countries will follow soon. Don’t miss out  fresh rates are waiting for you!   Website link — https://vibe-sms.net/ Our Telegram channel — https://t.me/vibe_sms
    • You didn't tell me anywhere that you wanted core.jar as proof, I have everything ready for an independent developer to review. All the conversations, all your edits. I won't settle anything with you, so you can threaten me again and damage my name.
    • So what? Did i say anything wrong? You have no idea what source/compile is. I still wait for your .jar or source to be posted since you say i destroyed the compiled version of yours. Why you don't post it? Are you afraid that people will just see few addon lines and you did not even know that your source and compiled had different things? I should not even waste 2 minute to fix your raidboss_spawnlist thing.    Your mentally ill. What you posted is our primary deal nothing against me.  Because all he does is post whatever i write as if i hide and i did not say any mod to join and check my discord. i want him actual post something against me or any offenses i did. I also requested him several hours ago to post his .jar where my code "HACKED" his server but he wont post.    Nobody should allow open a random topic and cause issues to other's life without proofs. I demand punishment and soon unless he post evidence that i hurt his server or left him or did not make what he asked. 
    • guys it is probably a misunderstanding if it was windows he would have solve it since its not windows and from the paraphrasing of the developer who eventually fixed the server   the problem was from guessing the login server was not properly opening or already crashed, so the gameserver probably loaded because he was generating logs, and then stopped, my guess is still there was no login to connect and made exits, still this is a guess because i have only saw some logs and images   in one side nobody would destroy a server for this amount of money in the other side he had no experience with the operating system, and i find this logical, i am also still giving some tutorials in the topic owner so he can learn how to compile and not need the help of others, i still believe this can be solved for both parties if they behave   in the end nobody wants to cause bad to another so as i say in my starting point, it is probably a misunderstanding
  • 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