Exemplo n.º 1
0
def alching(clicks):
    RS.press_button('magic')

    for c in range(clicks):

#        autopy.mouse.toggle(True,1)
#        RandTime.randTime(0,0,0,0,0,1)
#        autopy.mouse.toggle(False,1)
#
#        RandTime.randTime(0,0,0,0,9,9)
#
#        autopy.mouse.toggle(True,1)
#        RandTime.randTime(0,0,0,0,0,1)
#        autopy.mouse.toggle(False,1)
#
#        #randomly moves mouse
#        x = random.randint(x1,x2)
#        y = random.randint(y1,y2)
#        print(x,y)

        # randomly moves to alch spell
        x,y = Mouse.genCoords(713,345,720,352)
        Mouse.moveClick(x+RSX,y+RSY,1)

        #RandTime.randTime(0,1,0,0,1,9)
        # randomly moves to alched item
        x,y = Mouse.genCoords(697,348,713,364)
        Mouse.moveClick(x+RSX,y+RSY,1)


        RandTime.randTime(1,1,0,1,9,9)
        RS.antiban('magic')
Exemplo n.º 2
0
def alching(clicks):
    RS.press_button('magic')

    for c in range(clicks):

        #        autopy.mouse.toggle(True,1)
        #        RandTime.randTime(0,0,0,0,0,1)
        #        autopy.mouse.toggle(False,1)
        #
        #        RandTime.randTime(0,0,0,0,9,9)
        #
        #        autopy.mouse.toggle(True,1)
        #        RandTime.randTime(0,0,0,0,0,1)
        #        autopy.mouse.toggle(False,1)
        #
        #        #randomly moves mouse
        #        x = random.randint(x1,x2)
        #        y = random.randint(y1,y2)
        #        print(x,y)

        # randomly moves to alch spell
        x, y = Mouse.genCoords(713, 345, 720, 352)
        Mouse.moveClick(x + RSX, y + RSY, 1)

        #RandTime.randTime(0,1,0,0,1,9)
        # randomly moves to alched item
        x, y = Mouse.genCoords(697, 348, 713, 364)
        Mouse.moveClick(x + RSX, y + RSY, 1)

        RandTime.randTime(1, 1, 0, 1, 9, 9)
        RS.antiban('magic')
Exemplo n.º 3
0
def run():    
    RSX,RSY = RS.position()
    # Main stringer loop
    tries = 0 
    while True:
        if RS.isBankOpen():
            if tries == 2:
                print('Tries exausted, exiting!')
                #RS.logout()
                return 0
            #deposits all if inventory is not empty
            RS.depositAll()
            withdrawFromBank('/imgs/bowString.png')
            withdrawFromBank('/imgs/yewLongbowU.png')
            RS.closeBank()
            # starts stringing here 
            if checkInv(cwd+"/imgs/bowString.png") and checkInv(cwd+"/imgs/yewLongbowU.png"):
                makeBow()
                if RS.antiban('fletching'):
                    RandTime.randTime(11,0,0,11,9,9)
                else:
                    RandTime.randTime(15,0,0,15,9,9)
                #resets tries if items successfully found
                tries = 0
            else:
                RS.press_button('inventory')
                tries += 1
        else: 
         RS.open_cw_bank()
         RandTime.randTime(0,5,0,0,9,9)
Exemplo n.º 4
0
def run():
    RSX, RSY = RS.position()
    # Main stringer loop
    tries = 0
    while True:
        if RS.isBankOpen():
            if tries == 2:
                print('Tries exausted, exiting!')
                #RS.logout()
                return 0
            #deposits all if inventory is not empty
            RS.depositAll()
            withdrawFromBank('/imgs/bowString.png')
            withdrawFromBank('/imgs/yewLongbowU.png')
            RS.closeBank()
            # starts stringing here
            if checkInv(cwd + "/imgs/bowString.png") and checkInv(
                    cwd + "/imgs/yewLongbowU.png"):
                makeBow()
                if RS.antiban('fletching'):
                    RandTime.randTime(11, 0, 0, 11, 9, 9)
                else:
                    RandTime.randTime(15, 0, 0, 15, 9, 9)
                #resets tries if items successfully found
                tries = 0
            else:
                RS.press_button('inventory')
                tries += 1
        else:
            RS.open_cw_bank()
            RandTime.randTime(0, 5, 0, 0, 9, 9)
Exemplo n.º 5
0
def click_camelot(clicks):
    time.sleep(4)
    cx, cy = autopy.mouse.get_pos()
    x1 = cx - 1
    y1 = cy - 1
    x2 = cx + 1
    y2 = cy + 1
    for c in range(clicks):
        x = random.randint(x1, x2)
        y = random.randint(y1, y2)

        RandTime.randTime(0, 0, 0, 0, 0, 1)

        autopy.mouse.toggle(True, 1)
        RandTime.randTime(0, 0, 0, 0, 0, 2)
        autopy.mouse.toggle(False, 1)

        if random.randint(0, 4) == 0:
            Mouse.moveTo(x, y)
        RandTime.randTime(0, 0, 3, 0, 3, 5)
        if not RS.antiban('magic'):
            time.sleep(1.5)
Exemplo n.º 6
0
def click_camelot(clicks):
    time.sleep(4)
    cx, cy  = autopy.mouse.get_pos()
    x1 = cx - 1
    y1 = cy - 1
    x2 = cx + 1
    y2 = cy + 1
    for c in range(clicks):
        x = random.randint(x1,x2)
        y = random.randint(y1,y2)

        RandTime.randTime(0,0,0,0,0,1)

        autopy.mouse.toggle(True,1)
        RandTime.randTime(0,0,0,0,0,2)
        autopy.mouse.toggle(False,1)

        if random.randint(0,4)==0:
            Mouse.moveTo(x,y)
        RandTime.randTime(0,0,3,0,3,5)
        if not RS.antiban('magic'):
            time.sleep(1.5)
Exemplo n.º 7
0
def blow_glass(item, tool):
    rsx, rsy = RS.position()
    cwd = os.getcwd()

    # Main Loop starts here
    tries = 0
    while True:

        # Loop to withdraw knife and logs, and deposit and open bank
        RS.open_cw_bank()
        RandTime.randTime(0, 5, 0, 0, 9, 9)
        while True:
            if tries == 2:
                print(
                    'Maybe ran out of an item, or items not found!\nMoving on to stringing'
                )
                return 0
            #runs only if bank is open
            if RS.isBankOpen():
                RS.depositAll()
                withdraw_from_bank(tool, 'click')
                withdraw_from_bank(item, 'withdrawAll')
                RS.closeBank()

                if RS.countItemInInv(tool, 1):
                    n_logs = RS.countItemInInv(item)
                    if n_logs:
                        tries = 0
                        break
                    else:
                        print(tries)
                        #after the second try it breaks
                        tries += 1
            #Opens bank if it's not already opened
            else:
                RS.open_cw_bank()
                #gives time for bank detection to start
                RandTime.randTime(1, 0, 0, 1, 0, 9)
    #   #   #
    ########### Starts cutting logs ############
    # goes into a loop to make sure
    # logs are being cut
        while True:
            #Finds knife, cliks it
            find_template(tool, 'click')
            #   #   #
            #Finds First maple log, clicks it
            find_template(item, 'click')
            #   #   #
            #right cliks, make X, type 99
            RandTime.randTime(1, 0, 0, 1, 9, 9)
            moveToFletchingOptions(item)
            RandTime.randTime(3, 5, 0, 3, 9, 9)
            #   #   #
            #if RS.countItemInInv('yewLongbowU.png',1):
            #    break
            break
    #   #   #
    #waits 2 secs/log
        if n_logs > 6:
            n_logs = (n_logs * 2) - 7
        else:
            n_logs = (n_logs * 2)

        if RS.antiban('crafting'):
            n_logs -= 6
        RandTime.randTime(n_logs, 0, 0, n_logs, 9, 9)
Exemplo n.º 8
0
def blow_glass(item, tool):
    rsx,rsy = RS.position()
    cwd= os.getcwd()
    
    # Main Loop starts here
    tries = 0
    while True:

        # Loop to withdraw knife and logs, and deposit and open bank
        RS.open_cw_bank()
        RandTime.randTime(0,5,0,0,9,9)
        while True:
            if tries == 2:
                print('Maybe ran out of an item, or items not found!\nMoving on to stringing')
                return 0
            #runs only if bank is open
            if RS.isBankOpen():
                RS.depositAll()
                withdraw_from_bank(tool,'click') 
                withdraw_from_bank(item,'withdrawAll') 
                RS.closeBank()

                if RS.countItemInInv(tool,1):
                    n_logs = RS.countItemInInv(item)
                    if n_logs:
                        tries = 0
                        break
                    else:
                        print(tries)
                        #after the second try it breaks
                        tries += 1
            #Opens bank if it's not already opened
            else:
                RS.open_cw_bank()
                #gives time for bank detection to start
                RandTime.randTime(1,0,0,1,0,9)
    #   #   #  
        ########### Starts cutting logs ############
        # goes into a loop to make sure 
        # logs are being cut
        while True:
            #Finds knife, cliks it
            find_template(tool,'click')
    #   #   #
            #Finds First maple log, clicks it
            find_template(item,'click')
    #   #   #
            #right cliks, make X, type 99
            RandTime.randTime(1,0,0,1,9,9)
            moveToFletchingOptions(item)
            RandTime.randTime(3,5,0,3,9,9)
    #   #   #
            #if RS.countItemInInv('yewLongbowU.png',1):
            #    break
            break
    #   #   # 
        #waits 2 secs/log 
        if n_logs > 6:
            n_logs = (n_logs*2) - 7
        else:
            n_logs = (n_logs*2)

        if RS.antiban('crafting'):
            n_logs -= 6
        RandTime.randTime(n_logs,0,0,n_logs,9,9)
Exemplo n.º 9
0
while True:
    if counter >= nats+souls+bodys:
        print('done!')
        break
#        
    if nats:
        spell('alch')
        nats -= 1
        RandTime.randTime(0,1,9,0,3,9)
    if souls:
        spell('stun')
        souls -= 1
    if bodys and not souls:
        spell('curse')
        bodys -= 1
    if (counter % (random.choice([2,3])) == 0 or counter == 0) and ((souls > 0) or (bodys > 0)):
        print(counter,'Finding Monk')
        x1,y1,x2,y2 = findMonk()
    if (souls > 0) or (bodys > 0): 
        if not RS.is_button_selected('magic'):
            RS.press_button('magic')
        x, y = genCoords(x1,y1,x2, y2)
        Mouse.moveClick(x,y,1)
        if random.randint(1,100) == 0:
            RandTime.randTime(0,0,0,9,9,9)
        else:
            RandTime.randTime(0,0,0,1,2,3)

    counter += 1 
    RS.antiban('magic')
Exemplo n.º 10
0
 def idleing(self):
     while 1:
         RS.antiban('magic')
         for _ in xrange(50):
             RandTime.randTime(1, 0, 0, 9, 9, 9)
Exemplo n.º 11
0
        print('done!')
        break
#
    if nats:
        spell('alch')
        nats -= 1
        RandTime.randTime(0, 1, 9, 0, 3, 9)
    if souls:
        spell('stun')
        souls -= 1
    if bodys and not souls:
        spell('curse')
        bodys -= 1
    if (counter %
        (random.choice([2, 3])) == 0 or counter == 0) and ((souls > 0) or
                                                           (bodys > 0)):
        print(counter, 'Finding Monk')
        x1, y1, x2, y2 = findMonk()
    if (souls > 0) or (bodys > 0):
        if not RS.is_button_selected('magic'):
            RS.press_button('magic')
        x, y = genCoords(x1, y1, x2, y2)
        Mouse.moveClick(x, y, 1)
        if random.randint(1, 100) == 0:
            RandTime.randTime(0, 0, 0, 9, 9, 9)
        else:
            RandTime.randTime(0, 0, 0, 1, 2, 3)

    counter += 1
    RS.antiban('magic')
Exemplo n.º 12
0
 def idleing(self):
     while 1:
         RS.antiban('magic')
         for _ in xrange(50):
             RandTime.randTime(1,0,0,9,9,9)