AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

wc3 battle tanks script

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
luffy



Joined: 11 Mar 2010
Posts: 177
Location: glendale, az

PostPosted: Thu Mar 11, 2010 6:44 am    Post subject: wc3 battle tanks script Reply with quote

this script was started by a cool guy from california named, "nonja"

it's worked very well for me, there's no way i could play the way i do without it.

if you use it u should know it's going to take some getting used to. at the start i put my fingers on, "1", "caps lock", "ctrl", and "c". that way i can assign my tank to 1, then ping the lane i'm tp'ing to, then cp tp to it.

after that i put my fingers on, "q", "w", "e", and "r" and i have to keep returning them there all game.

the league part is useless now since that's been changed but i never bothered changing it. you could change it to some other helpful text message.
Code:
; Battle Tanks !! v.1

;changelog:

;this script is now 100 times harder to use as the original, i highly recomend anchoring as many of your 4 left fingers to q, w, e, and r as much when you use this
;be very cautious of hitting 5 at the wrong time because the only way out of that window is esc. if you can't manage it then you'd better change that one or delete it.
;if you can get used to it then this is also 100 times more helpful than the old script though. It lets you ping easier, and use up to 4 items with hotkeys now

;i added the "setmousedelay, 10" line which made it so that the right clicking works great at least on my computer, if it doesn't work good for you still
;then try "setmousedelay 0" (or "1", or "20") instead
;i added a Capslock hotkey that pings wherever your mouse is.
;i changed level up to 5, made 4 another item slot left click, I changed tab to an item left click, before it was another item right click in case you wanted two hulls.

;--run this at your own risk, if it **** your shit--
;--up it's not my fault. i accept no responsibility-


#UseHook
#SingleInstance
#MaxThreadsBuffer on
CoordMode, ToolTip, Screen
Coordmode, Mouse, Screen
SetDefaultMouseSpeed, 1
SetBatchLines, -1
SetMouseDelay, 10


; ---------------------------------------------------


;---this process priority high line prioritizes------
;---the hotkey editor as high for your cpu.----------
;---i'm not sure if it's a good thing.---------------
;---so don't use it if you're worried about it-------
;---i use it though, and i like it :)----------------
;---the guy who origionally made this script---------
;---thinks it's a bad thing to use though------------

Process, Priority, , High



; ---------------------------------------------------

pgup::
suspend, off
soundbeep, 450, 100
soundbeep, 550, 100
soundbeep, 650, 100
soundbeep, 750, 260
return

pgdn::
suspend, permit
suspend, on
tooltip
soundbeep, 750, 100
soundbeep, 650, 100
soundbeep, 550, 100
soundbeep, 450, 260
return



;----------------------------------------------------------------
;----this is not part of the ordinary script that will run-------
;----when you use this. this shows where your mouse is so-------
;----that if you adjust your screen resolution you can reset-----
;----where the mouse clicks. to use it first delet the ";" in---
;----front of the 6::


;6::
mousegetpos x, y
run, Wordpad
WinWait, Untitled - Wordpad, , 4
sendinput, %x%, %y%
return


;-------------------- Start up Hotkeys --------------------------

;---anything with a click position like this will need to be-----
;---adjusted before it will work. to fix this you'll need to----
;---use the number 6 hotkey to find your mouse postion when it's-
;---postitioned correctly. once u find the mouse postition put--
;---it in and save the file and then reload the script. to-----
;---reload it just right click the icon bottom right and select--
;---"reload"


;--------------------------- pause and un -pause (doesn't work in single player, in single player just hit F10 dummy) ------------------------------

7::
sendinput, {F10}
sendinput, m
sendinput, r
return


;----------------- starting input commands ---------------------------------------------------------------------------------------
;---you'll need to put your password in, in place of the 7 x's---------------------------------------------------------------------
;-------i have multiple realm's passwords here, i just remover the ";" to the one for the realm i'm playing in at the time---------
;-------------the default is for lordaeron---------------------------------------------------------------------------------------

8::
blockinput, on
sendinput, {Enter}
sendinput, -league
sendinput, {Enter}
sleep, 2000
sendinput, {Enter}

sendinput, -pw xxxxxxx ;lordaeron

;sendinput, -pw xxxxxxx ;azeroth

;sendinput, -pw xxxxxxx ;northrend

sendinput, {Enter}
blockinput, off
return

;-------------------------------------------------------------------------------------

9::
blockinput, on
sendinput, {Enter}
sendinput, -zoom 3500
sendinput, {Enter}
sendinput, {Enter}
sendinput, -e
sendinput, {Enter}
sendinput, {Enter}
sendinput, -w
sendinput, {Enter}
sendinput, {Enter}
sendinput, -rc
sendinput, {Enter}
sendinput, {Enter}
sendinput, -team ';,,;'
sendinput, {Enter}
sendinput, +{Enter}
sendinput, gl hf! come to clan bt in lordaeron anytime for a game - that's channel clan bt
sendinput, {Enter}
sendinput, +{Enter}
sendinput, www.btanks.net to join the league!
sendinput, {Enter}
blockinput, off
return


;---end game message for public games -----------------------------------------------

0::
blockinput, on
sendinput, +{Enter}
sendinput, good game. come to clan bt in lordaeron anytime for a game - that's channel clan bt
sendinput, {Enter}
sendinput, +{Enter}
sendinput, join the league!!! go to www.btanks.net I hope in the future we can have some good league matches!
sendinput, {Enter}
blockinput, off
return

;-------------------- Gameplay Hotkeys --------------------------

;--this is the best part. this is the important part.-----------
;--Numpad7 is item slot one (top left) and Numpad8 is item slot--
;--2, (top right). so hit 2 and 3 to use your top items.--------
;--hit 5 to click out the next ability after you level up easier-

2::sendinput, {Numpad7}

3::sendinput, {Numpad8}

4::sendinput, {Numpad5}

5::sendinput, {o}

TAB::sendinput, {Numpad1}

Capslock::
blockinput, on
coordmode, mouse, Screen
sendinput, {Alt Down}{g Down}{Click}
sendinput, {Alt Up}{g Up}
blockinput, off
return


`::
blockinput, on
coordmode, mouse, Screen
mousegetpos, xpos, ypos
Click right 681, 691
Click %xpos%, %ypos%, 0
blockinput, off
return




; ---------------------------------------------------
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group