Register for your free account! | Forgot your password?

Go Back   elitepvpers > General Gaming > General Gaming Discussion
You last visited: Today at 17:01

  • Please register to post and access all features, it's quick, easy and FREE!

 

[AutoHotKey] Casting macro 2.0

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2008
Posts: 113
Received Thanks: 56
[AutoHotKey] Casting macro 2.0

Used this for greater magic 25-50

i had left over bone from 1-25, and intend on using Heal Other past 50, and frailty is good to spam inbetween those 2.

Thanks to Keraam, the majority of this code is edited from his own, and it is much appreciated!

differences: spells ofcorse, which bar is used [defaulted to 2], for some reason Send {R} wasnt working for me, so i just made a simple method for sheathing, resting time is different, shoulda made it a changing variable but w/e lol

it seems a tad more object oriented, but by no means OO-ified. honestly didnt feel the need to do it, but if i get the time, i may, i enjoy coding and im not great with scripting languages, could always use more practice

Code:
;
; AutoHotkey Version: 1.x
; Language: English
; Author: cslotterback [special thanks to Keraam, based mainly off his code]
;
; Script Function: Does in order: space[stands up], unsheaths weapon, rend, heal other, 
; frailty, ho, f, ho, f, rend, ho, f, ho, sheaths weapon, rests, loops.
;
; NOTE: this is for spells on BAR2
;

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

InputBox, rend, Rend, Hotbar number for Rend?,,,,,,,,1
InputBox, healOther, Heal Other, Hotbar number for Heal Other?,,,,,,,,2
InputBox, frailty, Frailty, Hotbar number for Frailty?,,,,,,,,3
InputBox, rest, Rest, Hotbar number for Rest?,,,,,,,,5
InputBox, RendNum, RendQuantity, How many Rends?,,,,,,,,2
InputBox, HealOtherNum, HealOtherQuantity, How many HealOther?,,,,,,,,5
InputBox, FrailtyNum, FrailtyQuantity, How many Frailties?,,,,,,,,4
InputBox, restTime, RestTime, How long to Rest?,,,,,,,,90000
InputBox, sheath, Sheath, button to Sheath?,,,,,,,,r
InputBox, barNumber, BarNumber, Which spell bar is used?,,,,,,,,2
MsgBox, "Click OK then Alt + Tab into Darkfall to start the script."

;SetKeyDelay, 10, 10

WinWaitActive, Darkfall Online
IfWinActive, Darkfall Online
{
Loop
{
Send +barNumber
Sleep, 2000
Sheath()
Sleep, 500
Rend()
HealOther()
Frailty()
HealOther()
Frailty()
HealOther()
Frailty()
Rend()
HealOther()
Frailty()
HealOther()
Rest()
Sleep, 5000
}
}

End::Pause

Delete::ExitApp 

Sheath()
{
global sheath
Send %sheath%
}


HealOther()
{
global healOther
Sleep, 1000
Send %healOther%
Sleep, 500
Click
Sleep, 1500 
}

Rend()
{
global rend
Sleep, 500
Send %rend%
Sleep, 500
Click
Sleep, 2200
}

Frailty()
{
global frailty
Sleep, 500
Send %frailty%
Sleep, 500
Click
Sleep, 1500
}

Rest()
{
global rest
global restTime
Sleep, 2000
Sheath()
Sleep, 500
Send %rest%
Sleep, 500
Click
Sleep, %restTime%
Send {SPACE} 
Sleep, 1000
}



Penakle is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[AutoHotKey] Macro looter by phant0m
Loot Function- Works for dropping loot in backpack, backpack to bank, armor to paperdoll, and stacking, etc. Saves destination in a file for next...
0 Replies - General Gaming Discussion
[AutoHotKey] Multi-tool (updated) Harvest/Casting/Crafting/SprintandCrouch
; Author: Hastur ; Version: 1.1 ; Script: All in One Multi-tool ; Code Snippets from Keraam , thanks m8 ; v1.1 Optimized casting...
0 Replies - General Gaming Discussion
[AutoHotKey] Basic Crafting Click Macro
;Simple Crafting Related Script by Keraam ;Made from the AutoIt script by TeabagGus ;Once the macro starts you will have 5 seconds to get your...
0 Replies - General Gaming Discussion
[AutoHotKey] Casting Macro
; ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: Keraam ; ; Script Function: Casts Mana...
0 Replies - General Gaming Discussion
Macro with use of Autohotkey not working
So I wanted to make a little macro to help scriptvessel level my rb fire tao, since script vessel won't summon guard for you. So I came up with...
1 Replies - CO2 Main - Discussions / Questions



All times are GMT +1. The time now is 17:01.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.