begin Window.Set location("Ragnarok", "yes", "0", "0") Function.Execute("Profile") Function.Execute("Kukre") Function.Execute("Hydra") Function.Execute("Vadon") Function.Execute("Vadon2") Function.Execute("Attack3") Function.Execute("Attack4") Function.Execute("Attack5") Function.Execute("Rwalk") end
function("Profile") begin if Color.At coordinate is within (RGB range)("49", "74", "123", "0", "113", "84") begin Macro.Wait for current global loop execution time to exceed("1617") Keyboard.Hold keys("{<lmenu>}") Macro.Wait for current global loop execution time to exceed("2062") Keyboard.Hold keys("v") Macro.Wait for current global loop execution time to exceed("2355") Keyboard.Release keys("v") Keyboard.Release keys("{<lmenu>}") end end function
function("Heal") begin if Color.At coordinate is not within (RGB range)("156", "181", "239", "10", "144", "83") begin Function.Execute("Profile") Keyboard.Press key("{<f2>}") Humanly.Pause("334", "334") end end function
function("Kukre") if Color.Can be located on screen (RGB)("160", "119", "111", "0") begin Mouse.Click at color closest to coordinate (RGB)("160", "119", "111", "0", "640", "375", "left") Mouse.Move to coordinate("997", "43") if Color.Pixel pattern can be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin loop() Humanly.Pause("250", "500") Function.Execute("Heal") if Color.Pixel pattern can not be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin Humanly.Pause("400", "500") Function.Execute("Loot") Macro.Break from loop("yes") end end end function
function("Hydra") if Color.Can be located on screen (RGB)("156", "90", "99", "0") begin Mouse.Click at color closest to coordinate (RGB)("156", "90", "99", "0", "640", "375", "left") Mouse.Move to coordinate("997", "43") if Color.Pixel pattern can be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin loop() Humanly.Pause("250", "500") Function.Execute("Heal") if Color.Pixel pattern can not be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin Humanly.Pause("400", "500") Function.Execute("Loot") Macro.Break from loop("yes") end end end function
function("Vadon") if Color.Can be located on screen (RGB)("154", "178", "119", "0") begin Mouse.Click at color closest to coordinate (RGB)("154", "178", "119", "0", "640", "375", "left") Mouse.Move to coordinate("997", "43") if Color.Pixel pattern can be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin loop() Humanly.Pause("250", "500") Function.Execute("Heal") if Color.Pixel pattern can not be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin Humanly.Pause("400", "500") Function.Execute("Loot") Macro.Break from loop("yes") end end end function
function("Vadon2") if Color.Can be located on screen (RGB)("245", "148", "142", "0") begin Mouse.Click at color closest to coordinate (RGB)("245", "148", "142", "0", "640", "375", "left") Mouse.Move to coordinate("997", "43") if Color.Pixel pattern can be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin loop() Humanly.Pause("250", "500") Function.Execute("Heal") if Color.Pixel pattern can not be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin Humanly.Pause("400", "500") Function.Execute("Loot") Macro.Break from loop("yes") end end end function
function("Attack3") if Color.Can be located on screen (RGB)("222", "110", "111", "0") begin Mouse.Click at color closest to coordinate (RGB)("222", "110", "111", "0", "640", "375", "left") Mouse.Move to coordinate("997", "43") if Color.Pixel pattern can be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin loop() Humanly.Pause("250", "500") Function.Execute("Heal") if Color.Pixel pattern can not be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin Humanly.Pause("400", "500") Function.Execute("Loot") Macro.Break from loop("yes") end end end function
function("Attack4") if Color.Can be located on screen (RGB)("140", "115", "107", "0") begin Mouse.Click at color closest to coordinate (RGB)("140", "115", "107", "0", "640", "375", "left") Mouse.Move to coordinate("997", "43") if Color.Pixel pattern can be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin loop() Humanly.Pause("250", "500") Function.Execute("Heal") if Color.Pixel pattern can not be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin Humanly.Pause("400", "500") Function.Execute("Loot") Macro.Break from loop("yes") end end end function
function("Attack5") if Color.Can be located on screen (RGB)("239", "189", "198", "0") begin Mouse.Click at color closest to coordinate (RGB)("239", "189", "198", "0", "640", "375", "left") Mouse.Move to coordinate("997", "43") if Color.Pixel pattern can be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin loop() Humanly.Pause("250", "500") Function.Execute("Heal") if Color.Pixel pattern can not be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4") begin Humanly.Pause("400", "500") Function.Execute("Loot") Macro.Break from loop("yes") end end end function
function("Loot") begin Keyboard.Hold keys("{<ctrl>}") Mouse.Move to coordinate("673", "375") Mouse.Click("left") Mouse.Move to coordinate("673", "407") Mouse.Click("left") Mouse.Move to coordinate("605", "405") Mouse.Click("left") Mouse.Move to coordinate("605", "334") Mouse.Click("left") Mouse.Move to coordinate("674", "334") Mouse.Click("left") Keyboard.Release keys("{<ctrl>}") end function
function("Rwalk") begin if Color.Can not be located on screen (RGB)("160", "119", "111", "0") and Color.Can not be located on screen (RGB)("156", "90", "99", "0") and Color.Can not be located on screen (RGB)("222", "110", "111", "0") and Color.Can not be located on screen (RGB)("140", "115", "107", "0") and Color.Can not be located on screen (RGB)("239", "189", "198", "0") and Color.Can not be located on screen (RGB)("154", "178", "119", "0") and Color.Can not be located on screen (RGB)("245", "148", "142", "0") begin // set variables from random X coordinates on your screen example 100 to 1100 Variable.Set random number("X", "100", "1100") // set variables from random Y coordinates on your screen example 100 to 620 Variable.Set random number("Y", "100", "620") Mouse.Click at coordinate("{X}", "{Y}", "left") Humanly.Pause("1500", "2000") end end function
|