I posted the 'rough version' of this script and well..it was !@#$%^&*. So i've redone it, added some features and hopefully you'll enjoy the new version =]
Just a few notes..
My screen resolution is 1280 x 1024, I run the game Windowed at 1024 x 768(I think thats the games only option for windowed). If you're going to use my windowed version..make sure you have the same settings for your pc. The Full Screen script is for 1024 x 768 Full screened.
Of course this requires a bypass which is located here:
http://www.taultunleashed.com/phpbb2/vi ... hp?t=38500
Read the top of the script for instructions
FULL SCREEN
Code: Select all
//Hero Autotrainer version .2
//IF USING A MOUNT FOLLOW THESE
//Change the constants on lines 138, 142 and 150 to what you'd like
//Put food in slots 1 and 2 charm of return in slot 3
//Under Constants make sure SkillSpam = 0
//IF NOT ON A MOUNT FOLLOW THESE
//Attacks in slots 1 - 5
//HP Pots in slot 6
//MP Pots in slot 7
//Charm of Return in slot 8
//By Texas32 - texas32(at)gmail.com if you have questions
Constants
Mount = 185,132
MountHalf = 170,130 //Heals when your mounts hp bar is near half
HumanHalf = 170,60 //Heals when your hp bar is near half
HalfHumanHP = 171,50
HalfHumanMP = 171,60
HumanMP = 110,60 //Just below 1/4th MP bar
HPSlotHuman = 570,725
MPSlot = 615,725
Slot1 = 327,725
Slot2 = 375,725
Combat = 439,70
FullBag = 0 //Make this 1 if you want to tele when you have a full load(around 95% weight)
Weight = 961,468
SkillSpam = 1 //Change skillspam to 1 if you'd like to use skill attacks
Attack1 = 1 //If SkillSpam = 1 then the bot will press your hotkeys from 1 to 5
Attack2 = 2 //With a 3 second delay in between
Attack3 = 3 //If you'd like the bot to spam only your slot 3 attack then you would
Attack4 = 1 //make every one of the Attack1, Attack2, etc to equal 3
Attack5 = 2 //otherwise, it will just go in order from 1 to 5
End
Procedure StartAC
SetActiveWindow Hero OnLine
Delay 5000
End
Procedure FindAttack
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
IsRed $Combat
Call Attack
Else
Keydown v .5 sec
delay 50
End
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
End
Procedure Attack
IsRed $Combat
delay 500
Keydown a .5 sec
delay 50
Keydown a .5 sec
delay 50
If $SkillSpam = 1
Call Rape
Else
End
Else
End
End
Procedure Rape
IsRed $Combat
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
Keydown $Attack1 .5 sec
delay 3000
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
Else
Call FindAttack
End
IsRed $Combat
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
Keydown $Attack2 .5 sec
delay 3000
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
Else
Call FindAttack
End
IsRed $Combat
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
Keydown $Attack3 .5 sec
delay 3000
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
Else
Call FindAttack
End
IsRed $Combat
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
Keydown $Attack4 .5 sec
delay 3000
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
Else
Call FindAttack
End
IsRed $Combat
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
Keydown $Attack5 .5 sec
delay 3000
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
Else
Call FindAttack
End
End
Procedure Heal
IsBlack $Mount //Change the constant here for what you want to heal
IsGrey $Slot1 //Checking for Food
KeyDown 1 .5 sec //Healing
Delay 1000
IsBlack $Mount //Change the constant here aswell
Call Heal
Else
End
Else
IsGrey $Slot2
KeyDown 2 .5 sec //Healing
Delay 1000
IsBlack $Mount //Change the constant here aswell
Call Heal
Else
End
Else
KeyDown 3 .5 sec //Teleporting back if no food exists
Pause
End
End
Else
End
End
Procedure HealHumanHP
IsRed $HalfHumanHP
Else
IsGrey $HPSlotHuman //Checking for Food
KeyDown 6 .5 sec //Healing
Delay 1000
IsRed $HalfHumanHP //Change the constant here aswell
Call HealHumanHP
Else
End
Else
KeyDown 8 .5 sec
Pause
End
End
End
Procedure HealHumanMP
IsBlue $HalfHumanMP
Else
IsGrey $MPSlot
KeyDown 7 .5 sec
Delay 1000
IsBlue $HalfHumanMP
Call HealHumanMP
Else
End
Else
KeyDown 8 .5 sec
Pause
End
End
End
Procedure Loot
If $FullBag = 1
IsGrey $Weight
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Else
Keydown 8 .5 sec
Keydown 3 .5 sec
End
Else
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
End
End
// Main Program
Call StartAC
While 1=1
Call FindAttack
If $SkillSpam = 1
Call HealHumanHP
Call HealHumanMP
Else
Call Heal
End
Call Loot
End
WINDOWED with 1280 x 1024 Monitor Screen Resolution
Code: Select all
//Hero Autotrainer version .2
//IF USING A MOUNT FOLLOW THESE
//Change the constants on lines 138, 142 and 150 to what you'd like
//Put food in slots 1 and 2 charm of return in slot 3
//Under Constants make sure SkillSpam = 0
//IF NOT ON A MOUNT FOLLOW THESE
//Attacks in slots 1 - 5
//HP Pots in slot 6
//MP Pots in slot 7
//Charm of Return in slot 8
//By Texas32 - texas32(at)gmail.com if you have questions
Constants
Mount = 185,132
MountHalf = 170,131 //Heals when your mounts hp bar is near half
HumanHalf = 169,78 //Heals when your hp bar is near half
HalfHumanHP = 171,78
HalfHumanMP = 121,88//121
HumanMP = 171,88 //Just below 1/4th MP bar
HPSlotHuman = 570,754
MPSlot = 617,754
Combat = 442,98
FullBag = 0 //Make this 1 if you want to tele when you have a full load(around 92% weight)
SkillSpam = 1 //Change skillspam to 1 if you'd like to use skill attacks
Attack1 = 1 //If SkillSpam = 1 then the bot will press your hotkeys from 1 to 5
Attack2 = 2 //With a 3 second delay in between
Attack3 = 3 //If you'd like the bot to spam only your slot 3 attack then you would
Attack4 = 1 //make every one of the Attack1, Attack2, etc to equal 3
Attack5 = 2 //otherwise, it will just go in order from 1 to 5
End
Procedure StartAC
SetActiveWindow Hero OnLine
Delay 5000
End
Procedure FindAttack
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
IsRed $Combat
Call Attack
Else
Keydown v .5 sec
delay 50
End
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
End
Procedure Attack
IsRed $Combat
delay 500
Keydown a .5 sec
delay 50
Keydown a .5 sec
delay 50
If $SkillSpam = 1
Call Rape
Else
End
Else
End
End
Procedure Rape
IsRed $Combat
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
Keydown $Attack1 .5 sec
delay 3000
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
Else
Call FindAttack
End
IsRed $Combat
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
Keydown $Attack2 .5 sec
delay 3000
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
Else
Call FindAttack
End
IsRed $Combat
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
Keydown $Attack3 .5 sec
delay 3000
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
Else
Call FindAttack
End
IsRed $Combat
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
Keydown $Attack4 .5 sec
delay 3000
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
Else
Call FindAttack
End
IsRed $Combat
IsBlue $HalfHumanMP
IsRed $HalfHumanHP
Keydown $Attack5 .5 sec
delay 3000
Else
Call HealHumanHP
End
Else
Call HealHumanMP
End
Else
Call FindAttack
End
End
Procedure Heal
IsBlack $Mount //Change the constant here for what you want to heal
IsGrey 330,753 //Checking for Food
KeyDown 1 .5 sec //Healing
Delay 1000
IsBlack $Mount //Change the constant here aswell
Call Heal
Else
End
Else
IsGrey 379,754
KeyDown 2 .5 sec //Healing
Delay 1000
IsBlack $Mount //Change the constant here aswell
Call Heal
Else
End
Else
KeyDown 3 .5 sec //Teleporting back if no food exists
Pause
End
End
Else
End
End
Procedure HealHumanHP
IsRed $HalfHumanHP
Else
IsGrey $HPSlotHuman //Checking for Food
KeyDown 6 .5 sec //Healing
Delay 1000
IsRed $HalfHumanHP //Change the constant here aswell
Call HealHumanHP
Else
End
Else
KeyDown 8 .5 sec
Pause
End
End
End
Procedure HealHumanMP
IsBlue $HalfHumanMP
Else
IsGrey $MPSlot
KeyDown 7 .5 sec
Delay 1000
IsBlue $HalfHumanMP
Call HealHumanMP
Else
End
Else
KeyDown 8 .5 sec
Pause
End
End
End
Procedure Loot
If $FullBag = 1
IsGrey 962, 498
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Else
Keydown 8 .5 sec
Keydown 3 .5 sec
End
Else
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
Keydown s .1 sec
DELAY 100
End
End
// Main Program
Call StartAC
While 1=1
Call FindAttack
If $SkillSpam = 1
Call HealHumanHP
Call HealHumanMP
Else
Call Heal
End
Call Loot
End