PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
1 sec ago
Untitled
7 sec ago
Untitled
6 sec ago
Untitled
7 sec ago
Untitled
9 sec ago
Untitled
C | 10 sec ago
Untitled
11 sec ago
Untitled
11 sec ago
New Paste
### This Part of the script determines if the Darkfall window is in combat or GUI mode. Place Line 20 in front of any code that you only want to run in combat mode. This will protect code from being entered into chat windows while in GUI Mode. ### isMouseShown() { StructSize := A_PtrSize + 16 VarSetCapacity(InfoStruct, StructSize) NumPut(StructSize, InfoStruct) DllCall("GetCursorInfo", UInt, &InfoStruct) Result := NumGet(InfoStruct, 8) if Result return 1 else return 0 } CombatState := "Off" CombatMode = "Escape" #If !isMouseShown() and #If WinActive("Darkfall Online") ;### Begin CombatState Hotkeys ### !Numpad1:: CombatState := "Offensive" Return !Numpad2:: CombatState := "Defensive" Return ;### Begin Hotkeys ### Numpad1:: ;### Clears All Current Magic Variables ### SpellSelect := "Off" BuffSelect := "Off" HealSelect := "Off" ;### Checks CombatState and performs actions depending on CombatState ### If (CombatState = "Offensive"){ ;### Equips Greatsword ### Send, Send, {F1}{1} Return } Else If (CombatState = "Defensive"){ ;### Equips Sword and Board ### Send, {F1}{5} Sleep, 600 Send, {6} Return } Else return Numpad2:: ;### Clears All Current Magic Variables ### SpellSelect := "Off" BuffSelect := "Off" HealSelect := "Off" ;### Checks CombatState and performs actions depending on CombatState ### If (CombatState = "Offensive"){ ;### Equips Bow ### Send, Send, {F1}{2} Return } Else If (CombatState = "Defensive"){ ;### Equips Heal Staff and loads cycling Heal Spells ### HealSelect := "1" Send, {F1}{4}{F10} Sleep, 300 Send, {%HealSelect%} While (HealSelect != "Off") { if GetKeyState("LButton", "P") = 1 { KeyWait, LButton HealSelect++ If (HealSelect = "4") { HealSelect := "1" } Send, {%HealSelect%} } } Return } Else Return Numpad3:: ;### Clears All Current Magic Variables ### SpellSelect := "Off" BuffSelect := "Off" HealSelect := "Off" ;### Checks CombatState and performs actions depending on CombatState ### If (CombatState = "Offensive"){ ;### Equips Offensive Staff and loads cycling Offensive Spells ### SpellSelect := "1" Send, {F1}{3}{F4} Sleep, 300 Send, {%SpellSelect%} While (SpellSelect != "Off") { if GetKeyState("LButton", "P") = 1 { KeyWait, LButton SpellSelect++ If (SpellSelect = "10") { Spellselect := "0" } Send, {%SpellSelect%} } } Return } Else If (CombatState = "Defensive"){ ;### Equips Self Buff Staff and loads cycling Self Buff Spells ### BuffSelect := "1" Send, {F1}{4}{F9} Sleep, 300 Send, {%BuffSelect%} While (BuffSelect != "Off")? { if GetKeyState("LButton", "P") = 1 { KeyWait, LButton BuffSelect++ If (BuffSelect = "10") { BuffSelect := "0" } Send, {%BuffSelect%} } } return } ;### Clears All CombatStates and MagicSelects ### Escape:: If (CombatState != "Off") { CombatState := "Off" SpellSelect := "Off" BuffSelect := "Off" HealSelect := "Off" Sleep 500 Return } ;### Begin Miscelaneous Hotkeys ### ;### Taunt_04 Loop ### Insert:: Loop { Send, {k} Sleep, 500 If GetKeyState("K", "P") Break } Return
Optional Paste Settings
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
HTML 5
Java
JavaScript
Lua
None
Objective C
Perl
PHP
Python
Rails
-------------
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
ActionScript
ActionScript 3
Ada
ALGOL 68
Apache Log
AppleScript
APT Sources
ARM
ASM (NASM)
ASP
Asymptote
autoconf
Autohotkey
AutoIt
Avisynth
Awk
BASCOM AVR
Bash
Basic4GL
BibTeX
Blitz Basic
BNF
BOO
BrainFuck
C
C for Macs
C Intermediate Language
C#
C++
C++ (with QT extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
ChaiScript
Clojure
Clone C
Clone C++
CMake
COBOL
CoffeeScript
ColdFusion
CSS
Cuesheet
D
DCL
DCPU-16
DCS
Delphi
Delphi Prism (Oxygene)
Diff
DIV
DOS
DOT
E
ECMAScript
Eiffel
Email
EPC
Erlang
F#
Falcon
FO Language
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
Game Maker
GDB
Genero
Genie
GetText
Go
Groovy
GwBasic
Haskell
Haxe
HicEst
HQ9 Plus
HTML
HTML 5
Icon
IDL
INI file
Inno Script
INTERCAL
IO
J
Java
Java 5
JavaScript
jQuery
KiXtart
Latex
LDIF
Liberty BASIC
Linden Scripting
Lisp
LLVM
Loco Basic
Logtalk
LOL Code
Lotus Formulas
Lotus Script
LScript
Lua
M68000 Assembler
MagikSF
Make
MapBasic
MatLab
mIRC
MIX Assembler
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MPASM
MXML
MySQL
Nagios
newLISP
None
NullSoft Installer
Oberon 2
Objeck Programming Langua
Objective C
OCalm Brief
OCaml
Octave
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
ParaSail
PARI/GP
Pascal
PAWN
PCRE
Per
Perl
Perl 6
PHP
PHP Brief
Pic 16
Pike
Pixel Bender
PL/SQL
PostgreSQL
POV-Ray
Power Shell
PowerBuilder
ProFTPd
Progress
Prolog
Properties
ProvideX
PureBasic
PyCon
Python
Python for S60
q/kdb+
QBasic
R
Rails
REBOL
REG
Rexx
Robots
RPM Spec
Ruby
Ruby Gnuplot
SAS
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
SPARK
SPARQL
SQL
StoneScript
SystemVerilog
T-SQL
TCL
Tera Term
thinBasic
TypoScript
Unicon
UnrealScript
UPC
Urbi
Vala
VB.NET
Vedit
VeriLog
VHDL
VIM
Visual Pro Log
VisualBasic
VisualFoxPro
WhiteSpace
WHOIS
Winbatch
XBasic
XML
Xorg Config
XPP
YAML
Z80 Assembler
ZXBasic
Paste Expiration:
Never
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
Paste Exposure:
Public
Unlisted
Private (members only)
Paste Name / Title:
Hello
Guest
Sign Up
or
Login
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login