Announcement

Collapse
No announcement yet.

Releasing my home made scripts for public use.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Releasing my home made scripts for public use.

    Alright, so I've been trying to make an old school warbot for any tibia version using Autohotkey. Its current features are: sd aimbot, sd to crosshair, uh hotkey, mana hotkey, mwall to crosshair. It used to include an auto healer with both vita and UH support but it was percentage based and was a pain to setup properly so I removed it.

    It will only work in 1920x1080 resolution and with the tibia window as big as possible. You also have to have your backpack with the runes and manas below the battle window with room for about 4 targets for the coordinates to work.

    I've streamlined the script alot to save precious milliseconds, thats why some of the stuff in there might seem weird, for example, the sd aimbot clicks the rune when the key is pressed down and fires when the key is released to save a little bit of time when it comes to the pixelsearch of the target.

    I'm releasing this because I'm out of ideas on how to improve upon it. The uh, mana and mwall hotkeys work super well, but the aimbot unfortunantly doesn't. On a low ping server, I could maybe hit 1/3 of my sd's, and on a high ping server it's closer to 1/10. I've tried everything I can think of from dividing up the screen in quadrants (which did help accuracy a bit but made it sluggish) to attempting to shoot multiple times with a single keypress. Nothing seems to improve the accuracy besides having really good ping to the server.

    For anyone that know how autohotkey works, it should be simple to customize this to your liking, and all I ask in return is that if you find a way to improve upon it within the means of autohotkey, you share it with me.

    Oh I almost forgot to mention, if your playing on a custom client that has title other than Tibia, you need to change that in the script. For example if youre playing Medivia, you should change all occurances of "Tibia" to "Medivia" and if the client name is "Blyat suka client" you change all "Tibia" to "Blyat suka client" and it will work there too.
    Code:
    #NoEnv
    
    #Persistent
    
    #SingleInstance Force
    
    SendMode InputThenPlay
    SetControlDelay -1
    SetWorkingDir %A_ScriptDir%
    SetBatchLines, -1
    Process, Priority,, High
    
    		;Expressions  0x8B46B5 Explo
    TopX = 400	;Top screen X 0x2E598B UH
    TopY = 120	;Top screen Y 0xDDD2C7 SD
    BotX = 1300	;Bottom screen X
    BotY = 820	;Bottom screen Y
    BPTopX = 1754	;BP top X
    BPTopY = 490	;BP top Y
    BPBotX = 1922	;BP bot X
    BPBotY = 1042	;BP bot Y
    PlayerX = 881	;Player Xpos on screen
    PlayerY = 473	;Player YPos on screen
    TargetOSX := TargetX + 40
    TargetOSY := TargetY + 26 
    RingX = 1776
    RingY = 291
    
    
    
    Loop
    {
    	PixelSearch, sdX, sdY, BPTopX, BPTopY, BPBotX, BPBotY, 0xDDD2C7, 0, Fast RGB     //BYT FÄRG TILL SD/Mwall/GFB
    			PixelSearch, uhX, uhY, 1753, 500, 1920, 1040, 0x2E598B, 0, Fast RGB     //BYT FÄRG TILL UH
    				Sleep, 3000
    }
    
    Del::
    	
    	MouseGetPos, Var5X, Var5Y	
    			PixelSearch, rcX, rcY, 1753, 500, 1920, 1040, 0xDDD2C7, 0, Fast RGB     //BYT FÄRG TILL SD/Mwall/GFB
    				If Errorlevel = 0
    					ControlClick, x%sdX% y%sdY%, Tibia,, Right, 1
    					Sleep, 20
    	
    	
    Return
    
    
    Xbutton1::	
    			
    					ControlClick, x%sdX% y%sdY%, Tibia,, Right, 1
    
    Return
    
    Xbutton1 up::	
    					   	PixelSearch, TargetX, TargetY, TopX, TopY, BotX, BotY, 0xDF3F3F, 5, Fast RGB
    							TargetX += 55
    							TargetY += 61
    						ControlClick, x%TargetX% y%TargetY%, Tibia,, Left, 1		
    Return
    
    
    Insert::
    	
    				If (Errorlevel = 0){
    					ControlClick, x%uhX% y%uhY%, Tibia,, Right, 1
    
    						ControlClick, x%PlayerX% y%PlayerY%, Tibia,, Left, 1
    						   Sleep, 100	
    							
    							
                                    }
    					If (Errorlevel = 1) {
    						Send {F3}
    						}
    Return
    
    Xbutton2::
    	MouseGetPos, Var4X, Var4Y	
    			PixelSearch, mwX, mwY, 1753, 500, 1920, 1040, 0xDDC270, 0, Fast RGB     //BYT FÄRG TILL SD/Mwall/GFB
    				If Errorlevel = 0
    					MouseClick, right , mwX, mwY, 1, 0
    					 
    						MouseMove, Var4X, Var4Y, 1
    Return
    
    End::	
    			PixelSearch, mfX, mfY, 1756, 521, 1920, 1042, 0xC919C7, 0, Fast RGB     //BYT FÄRG TILL MF 
    					ControlClick, x%mfX% y%mfY%, Tibia,, Right, 1
    						ControlClick, x%PlayerX% y%PlayerY%, Tibia,, Left, 1							
    								Sleep, 100
    Return

    Also the hotkey list is as follows:
    SD Aimbot = Mouse4
    SD To Crosshair = Delete
    UH = Insert
    MF = End
    Mwall to crosshair = Mouse5
    Last edited by Peaton; 22-11-2016, 03:38 AM.

  • #2
    post on img to how setup runes in screen
    Last edited by dnszs; 22-11-2016, 07:21 AM.

    Comment


    • #3
      Can't you make an variable for Tibia Client? So you don't have to change in every spot?

      I probably won't try it out but looks nice...

      Comment


      • #4
        Bro how i can execute this script? regards

        Comment


        • #5
          good script you will update this?

          Comment


          • #6
            any update on this?

            Comment


            • #7
              Originally posted by Peaton View Post
              Alright, so I've been trying to make an old school warbot for any tibia version using Autohotkey. Its current features are: sd aimbot, sd to crosshair, uh hotkey, mana hotkey, mwall to crosshair. It used to include an auto healer with both vita and UH support but it was percentage based and was a pain to setup properly so I removed it.

              It will only work in 1920x1080 resolution and with the tibia window as big as possible. You also have to have your backpack with the runes and manas below the battle window with room for about 4 targets for the coordinates to work.

              I've streamlined the script alot to save precious milliseconds, thats why some of the stuff in there might seem weird, for example, the sd aimbot clicks the rune when the key is pressed down and fires when the key is released to save a little bit of time when it comes to the pixelsearch of the target.

              I'm releasing this because I'm out of ideas on how to improve upon it. The uh, mana and mwall hotkeys work super well, but the aimbot unfortunantly doesn't. On a low ping server, I could maybe hit 1/3 of my sd's, and on a high ping server it's closer to 1/10. I've tried everything I can think of from dividing up the screen in quadrants (which did help accuracy a bit but made it sluggish) to attempting to shoot multiple times with a single keypress. Nothing seems to improve the accuracy besides having really good ping to the server.

              For anyone that know how autohotkey works, it should be simple to customize this to your hose jobs liking, and all I ask in return is that if you find a way to improve upon it within the means of autohotkey, you share it with me.

              Oh I almost forgot to mention, if your playing on a custom client that has title other than Tibia, you need to change that in the script. For example if youre playing Medivia, you should change all occurances of "Tibia" to "Medivia" and if the client name is "Blyat suka client" you change all "Tibia" to "Blyat suka client" and it will work there too.
              Code:
              #NoEnv
              
              #Persistent
              
              #SingleInstance Force
              
              SendMode InputThenPlay
              SetControlDelay -1
              SetWorkingDir %A_ScriptDir%
              SetBatchLines, -1
              Process, Priority,, High
              
              ;Expressions  0x8B46B5 Explo
              TopX = 400 ;Top screen X 0x2E598B UH
              TopY = 120 ;Top screen Y 0xDDD2C7 SD
              BotX = 1300 ;Bottom screen X
              BotY = 820 ;Bottom screen Y
              BPTopX = 1754 ;BP top X
              BPTopY = 490 ;BP top Y
              BPBotX = 1922 ;BP bot X
              BPBotY = 1042 ;BP bot Y
              PlayerX = 881 ;Player Xpos on screen
              PlayerY = 473 ;Player YPos on screen
              TargetOSX := TargetX + 40
              TargetOSY := TargetY + 26
              RingX = 1776
              RingY = 291
              
              
              
              Loop
              {
              PixelSearch, sdX, sdY, BPTopX, BPTopY, BPBotX, BPBotY, 0xDDD2C7, 0, Fast RGB     //BYT FÄRG TILL SD/Mwall/GFB
              PixelSearch, uhX, uhY, 1753, 500, 1920, 1040, 0x2E598B, 0, Fast RGB     //BYT FÄRG TILL UH
              Sleep, 3000
              }
              
              Del::
              
              MouseGetPos, Var5X, Var5Y
              PixelSearch, rcX, rcY, 1753, 500, 1920, 1040, 0xDDD2C7, 0, Fast RGB     //BYT FÄRG TILL SD/Mwall/GFB
              If Errorlevel = 0
              ControlClick, x%sdX% y%sdY%, Tibia,, Right, 1
              Sleep, 20
              
              
              Return
              
              
              Xbutton1::
              
              ControlClick, x%sdX% y%sdY%, Tibia,, Right, 1
              
              Return
              
              Xbutton1 up::
                PixelSearch, TargetX, TargetY, TopX, TopY, BotX, BotY, 0xDF3F3F, 5, Fast RGB
              TargetX += 55
              TargetY += 61
              ControlClick, x%TargetX% y%TargetY%, Tibia,, Left, 1
              Return
              
              
              Insert::
              
              If (Errorlevel = 0){
              ControlClick, x%uhX% y%uhY%, Tibia,, Right, 1
              
              ControlClick, x%PlayerX% y%PlayerY%, Tibia,, Left, 1
                Sleep, 100
              
              
                                              }
              If (Errorlevel = 1) {
              Send {F3}
              }
              Return
              
              Xbutton2::
              MouseGetPos, Var4X, Var4Y
              PixelSearch, mwX, mwY, 1753, 500, 1920, 1040, 0xDDC270, 0, Fast RGB     //BYT FÄRG TILL SD/Mwall/GFB
              If Errorlevel = 0
              MouseClick, right , mwX, mwY, 1, 0
              
              MouseMove, Var4X, Var4Y, 1
              Return
              
              End::
              PixelSearch, mfX, mfY, 1756, 521, 1920, 1042, 0xC919C7, 0, Fast RGB     //BYT FÄRG TILL MF
              ControlClick, x%mfX% y%mfY%, Tibia,, Right, 1
              ControlClick, x%PlayerX% y%PlayerY%, Tibia,, Left, 1
              Sleep, 100
              Return

              Also the hotkey list is as follows:
              SD Aimbot = Mouse4
              SD To Crosshair = Delete
              UH = Insert
              MF = End
              Mwall to crosshair = Mouse5
              Awesome script, thanks a lot for sharing!
              Last edited by Jamestheone85; 18-11-2018, 05:07 PM.

              Comment


              • #8
                i know that these are the cords to the red square on player TargetX += 55 TargetY += 61 i have adapted everything to work on y screen with 1366 mx 728 resolution . anyone here knows how do i do to edit this variables?
                these:
                TargetOSX := TargetX + 40
                TargetOSY := TargetY + 26

                Comment


                • #9
                  solved the aim misses a lot im gonna try to improve it

                  Comment

                  Working...
                  X