Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin loop()
- // Bring RO2 window to front
- Window.Bring to front("Ragnarok Online2 - Legend of The Second", "No")
- if Color.At coordinate is not within (RGB range)("84", "144", "195", "0", "1067", "24")
- begin
- Keyboard.Hold keys("{<numpad1>}")
- Macro.Pause("400")
- Keyboard.Release keys("{<numpad1>}")
- Macro.Pause("400")
- Keyboard.Hold keys("{<numpad2>}")
- Macro.Pause("400")
- Keyboard.Release keys("{<numpad2>}")
- Macro.Pause("400")
- end
- Function.Execute("autolor")
- Function.Execute("loot")
- Function.Execute("autoattsel")
- end
- function("autoattsel")
- begin
- // trying to attack mobs selected
- Keyboard.Hold keys("1")
- Macro.Pause("400")
- Keyboard.Release keys("1")
- Macro.Pause("400")
- if Color.At coordinate is (RGB)("248", "248", "248", "778", "521")
- begin
- Keyboard.Hold keys("f")
- Macro.Pause("1500")
- Keyboard.Release keys("f")
- Macro.Pause("400")
- Keyboard.Hold keys("4")
- Macro.Pause("1000")
- Keyboard.Release keys("4")
- Macro.Pause("400")
- end
- while Color.At coordinate is (RGB)("254", "238", "0", "852", "170")
- // if cant attack begin mob facing checks
- begin
- Macro.Pause("2000")
- Keyboard.Hold keys("{<tab>}")
- Macro.Pause("400")
- Keyboard.Release keys("{<tab>}")
- Macro.Pause("400")
- Keyboard.Hold keys("d")
- Macro.Pause("1000")
- Keyboard.Release keys("d")
- Macro.Pause("400")
- end
- while Color.At coordinate is (RGB)("217", "183", "11", "544", "540")
- // Jupitel meter is full
- begin
- Keyboard.Hold keys("3")
- Macro.Pause("1500")
- Keyboard.Release keys("3")
- Macro.Pause("400")
- end
- while Color.At coordinate is (RGB)("12", "8", "0", "424", "83")
- // begin mobs is dead checks
- begin
- Keyboard.Hold keys("{<tab>}")
- Macro.Pause("400")
- Keyboard.Release keys("{<tab>}")
- Macro.Pause("400")
- end
- end
- function
- function("loot")
- begin
- Keyboard.Hold keys("r")
- Macro.Pause("500")
- Keyboard.Release keys("r")
- Macro.Pause("500")
- end
- function
- function("autolor")
- if Color.At coordinate is (RGB)("20", "11", "1", "249", "81")
- begin
- Keyboard.Hold keys("5")
- Macro.Pause("400")
- Keyboard.Release keys("5")
- Macro.Pause("2000")
- end
- function
Add Comment
Please, Sign In to add comment