Ejemplo n.º 1
0
Archivo: run.py Proyecto: YLGH/rsbot
def on_press(key):
    if hasattr(key, 'char'):
        if key.char == 'z':
            controller.right_click()
            controller.move_mouse_relative(0, 40, duration=0.001)
            controller.click()
        if key.char == 'x':
            curr = controller.get_position()
            curr = (curr[0], curr[1] - 40)
            controller.move_mouse_to(wilder, duration=.0001)
            controller.click()
            controller.move_mouse_to(curr, duration=.0001)
Ejemplo n.º 2
0
Archivo: run.py Proyecto: YLGH/rsbot
import sys
sys.path.insert(0, '/Users/yingliu/Desktop/rsbot')
import controller
import time

camelot_teleport = (574, 374)
hialch = (713, 380)
while True:
    controller.mage_book()
    controller.move_mouse_to(camelot_teleport)
    controller.click()
    controller.move_mouse_to(hialch)
    controller.click()
    time.sleep(controller.add_time_noise(1.82))
    controller.click()
    time.sleep(controller.add_time_noise(0.48))


Ejemplo n.º 3
0
Archivo: run.py Proyecto: YLGH/rsbot
import time

use_bank = (395, 361)
deposit = (460, 364)

harralander_unf = (200, 140)
goat_horn_dust = (150, 140)
exit = (500, 70)

use_harralander = (640, 350)
use_goat_horn = (640, 380)

make_all = (272, 528)

while True:
    controller.move_mouse_to(use_bank, duration=0.52)
    controller.click()

    time.sleep(1)

    controller.move_mouse_to(deposit, duration=0.52)
    controller.click()

    controller.move_mouse_to(harralander_unf, duration=0.52)
    controller.click()

    controller.move_mouse_to(goat_horn_dust, duration=0.52)
    controller.click()

    controller.move_mouse_to(exit, duration=0.3)
    controller.click()
Ejemplo n.º 4
0
overload_index = inv_index[:num_overload]
absorb_index = inv_index[num_overload:]
absorb_index = inv_index

def l_gen(l):
    while True:
        for x in l:
            yield x
        
abs_gen = l_gen(absorb_index)
over_gen = l_gen(overload_index)
PRAYER_LOCATION = (598,148)

for w in range(40000):
    controller.move_mouse_to(PRAYER_LOCATION, delta=0.0)
    controller.click()
    time.sleep(0.25)
    controller.click()

#    for _ in range(num_overload):
#        (i,j) = next(over_gen) 
#        controller.move_mouse_to(controller.inv_location(i,j), duration=0.005)
#        controller.click()
#
#    if w % 5 == 0:
#        for _ in range(num_absorb):
#            (i,j) = next(abs_gen)
#            controller.move_mouse_to(controller.inv_location(i,j), duration=0.005)
#            controller.click()
#
Ejemplo n.º 5
0
Archivo: run.py Proyecto: YLGH/rsbot
#!/usr/bin/env python3
import sys

sys.path.insert(0, '/Users/yingliu/Desktop/rsbot')
import controller
import time
import random
import numpy as np

br = (600, 240)

for w in range(40000):
    if w % 10 == 0:
        start_position = controller.get_position()
        controller.move_mouse_to(br)
        controller.click()
        time.sleep(0.0005 + np.random.uniform(-.0001, .0001))
        controller.click()
        controller.move_mouse_to(start_position)

    controller.click()
    time.sleep(0.0005 + np.random.uniform(-.0001, .0001))
    controller.click()
    time.sleep(0.6 + np.random.uniform(-.0001, .0001))