side
Guild Wars GW Cheats Guild Wars GW HacksGuild Wars GW Bots
side
top left
Username:   Password:   Remember Me?  
Guild Wars GW Guides
top right
 
TU Chat | View unanswered posts | View active topics  

Pre-Sear Macro : GW Submissions

All times are UTC - 8 hours

   [ 2 posts ] 
dlm_bittersweet
June 13th, 2007, 8:59 am 
User avatar

Cash on hand: Locked
This is a basic Autoit v3 macro for Pre-searing warriors that I've been working on. Currently it is capable of targeting/attacking, which was easy enough. It also picks up blue/purple items that drop, and heals when your health is too low. Keep in mind: Your health bar will need to be in the default position for the healing to work correctly, otherwise it will always go off. I've been trying to get it to find words using a series of PixelSearch functions, but have had no luck so far. The macro is currently pretty basic, but i plan to expand on it, and having access to more powerful scripting programs (XUnleashed) would help with targeting items such as worn belts/other collectibles and gold.
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
#cs ----------------------------------------------------------------------------
   
   AutoIt Version: 3.2.2.0
   Author:  DLM_Bittersweet
   
   Script Function:   Pre-Sear basic Farming bot with Magic item detection

   Build: W/Mo
Slot 1= Sever Artery
Slot 2= Gash
Slot 3 = Healing Signet
Slots 5-7 = UNUSED
Slot 8 = Retribution
#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
#include <Array>

$health = 0
$Adren = 0
$coord = 0
$coord2 = 0
$apix1 = 0
$apix2 = 0
$a = 0
WinActivate( "Guild Wars")
Func Target()
   send("c")
   send( "{SPACE}" )
EndFunc

Func IsComboCharged()
   $apix1 = PixelGetColor( 441, 912 )
   $apix2 = PixelGetColor( 505, 917 )
   If Not ($apix1 = 16403207) & ($apix2 = 14898717) Then
      $Adren = 0
   Else
      $Adren = 1
   EndIf
EndFunc


Func Magic()
   $coord = PixelSearch(4,4,1270,985, 0x99EDFE, 2, 1)
   If Not @error Then
      MouseMove($coord[0],$coord[1],0)
      Sleep (500)
      MouseClick("left",$coord[0],$coord[1])
      Sleep (2000)
   EndIf
   $coord2 = PixelSearch(4,4,1270,985, 0xBA88ED, 2, 1)
   If Not @error Then
      MouseMove($coord2[0],$coord2[1],0)
      Sleep (500)
      MouseClick("left",$coord2[0],$coord2[1])
      Sleep (2000)
   EndIf
EndFunc

Func Combo()
   Call("IsComboCharged")
   If ($Adren = 1) Then
      send("1")
      Sleep(Random(1100, 1300))
      Send("2")
   ElseIf ($Adren = 0) Then
      Sleep(500)
   EndIf
EndFunc


Func Heal()
   $health = PixelGetColor( 561, 886 )
   If Not ($health = 11798279) Then
      Send("3")
   EndIf
EndFunc

Func All()
   Send("8")
   Sleep(Random(2100,2900))
   Do
      Call("Magic")
      Call("Heal")
      Call("target")
      Sleep(Random(3000,4000))
      Call("Combo")
      Call("Magic")
      Call("Heal")
      $a = $a + 1
   Until $a = 150
EndFunc

Call("All")
   
   

Currently expanded, the health function is now working more correctly, but the combo function, I can't find a stable way of telling if they are charged or not.


Last edited by Guest on June 16th, 2007, 6:18 pm, edited 3 times in total.

   
Reply with quote  
Tault_admin
June 13th, 2007, 12:59 pm 
Offline
administrator
administrator
User avatar
Mod in Training

Joined: November 9th, 2002, 9:57 am
Cash on hand:
34,187.00

Posts: 29974
Can premium members say yay or nay to this being moved to a confirmed section.


  Profile  
Reply with quote  
Display posts from previous:  Sort by  
   [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 53 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

 
   
Vote For Taultunleashed Guild Wars TopSites
Guild Wars Server Guild Wars Vote on the Guild Wars Top 200 Guild Wars hacks Private Servers Top 100 List Free Guild Wars Servers

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of GW Submissions RSS Feed 
Sitemap of GW Submissions Sitemap 
SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
 
left bottom corner   bottom corner
left corner bottom texture right bottom corner