Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
require 'utils' local initialized = false local enemies = {} local ChampColors = {0xFFFFD000, 0xFFF283E3, 0xFF00FFBF, 0xFF78A7FF, 0xFF76F545} local ChampNameColors = {0xFFFFD000, 0xFFF283E3, 0xFF00FFBF, 0xFF78A7FF, 0xFF76F545} local bgColors = {Color=0x5F151D66, DeathColor=0x8F999999} local bgC, cdC, nameC = 0, 0, 0 local yAnchor, xAnchor = GetScreenY()/2-150, (GetScreenX()/2)*1.78 local xPos = {xAnchor, xAnchor, xAnchor, xAnchor, xAnchor} local yPos = {yAnchor, yAnchor+75, yAnchor+150, yAnchor+225, yAnchor+300, yAnchor+375} local AlertAlpha = 0 local AlertAlphaTimer = 0 local n = 0 local adjustTimer=0 if io.open("easysee.txt")==nil then local file = io.open("easysee.txt", "w") file:write("adj1x, adj1y, adj2x, adj2y, adj3x, adj3y, adj4x, adj4y, Pos = 0, 0, 0, 0, 0, 0, 0, 0, 1") file:close() end dofile("easysee.txt") local adj1x, adj1y, adj2x, adj2y, adj3x, adj3y, adj4x, adj4y, Pos = adj1x, adj1y, adj2x, adj2y, adj3x, adj3y, adj4x, adj4y, Pos function OnLoad() loaded = 1 end function initialize()--level a spell to begin local MaxEnemies=objManager:GetMaxHeroes()/2 if #enemies < MaxEnemies then for i=1, objManager:GetMaxHeroes() do object = objManager:GetHero(i) if object.team ~= myHero.team and #enemies < MaxEnemies then n=n+1 enemy = {object = object, name = object.name, color=ChampColors[n], nameColor=ChampNameColors[n], SummonerF=GetSummoners(object, 1), SummonerD=GetSummoners(object, 2)} table.insert(enemies, enemy) initialized=true end end end end function GetSummoners(object, spell) local D = 0 local F = 0 local Xnames ={"SummonerFlash", "SummonerDot", "SummonerHaste", "SummonerHeal", "SummonerBarrier", "SummonerMana", "SummonerRevive", "SummonerBoost", "SummonerExhaust", "SummonerSmite"} local ZNames ={"Flash", "Ignite", "Ghost", "Heal", "Barrier", "Clarity", "Revive", "Cleanse", "Exhaust", "Smite"} for i = 1, 10 do if spell==1 and object.SummonerF == Xnames[i] then F=1 return ZNames[i] end if spell==2 and object.SummonerD == Xnames[i] then D=1 return ZNames[i] end end if spell==1 and F==0 then return "Tele" end if spell==2 and D==0 then return "Tele" end end function EasySeeSidebar()--Callback function if initialized then DrawAlert() DrawBG() DrawCooldowns() DrawTextandDividers() if GetClock()-adjustTimer > 0 then PositionCheck() adjustTimer = GetClock() + 3000 end elseif loaded==nil then OnLoad() else initialize() if Pos == 1 then Pos1() elseif Pos == 2 then Pos2() elseif Pos == 3 then Pos3() elseif Pos == 4 then Pos4() end end end function DrawAlert() for i=1, #enemies do local enemy = enemies[i].object if enemy.dead == 0 and enemy.visible==1 and enemy.health < enemy.maxHealth*.20 then if GetClock()-AlertAlphaTimer > 0 then AlertAlpha = AlertAlpha+1 AlertAlphaTimer = GetClock()+35 end if AlertAlpha > 9 then AlertAlpha=1 end local x = xPos[i]-7 local y = yPos[i]-5 for n=1, 4 do local x = x+(n*30-30) DrawBox(x,y,38,36,"0x"..AlertAlpha.."FBD0000") end end end end function DrawBG()--draw the Cooldown Background squares for i=1, #enemies do local enemy = enemies[i].object DeathCheck(enemy) local x = xPos[i] local y = yPos[i] if enemy.dead==1 then--skull local x=x+75 local y=y-15 local b=0xFF000000 local w=0xFFFFEEB0 local w2=0x9FFFFFFF local r=0x8FFF0000 DrawBox(x+6,y-1,20,38,w) DrawBox(x-5,y+6,42,20,w) DrawBox(x,y+2,32,30,w) DrawBox(x+6,y+36,4,4,w2) DrawBox(x+14,y+36,4,4,w2) DrawBox(x+22,y+36,4,4,w2) DrawBox(x,y+10,14,10,b) DrawBox(x+17,y+10,14,10,b) DrawBox(x+10,y+5,12,10,w) DrawBox(x+14,y+24,6,6,b) DrawBox(x+4,y+14,2,2,r) DrawBox(x+25,y+14,2,2,r) else for n=1, 4 do local x = x+(n*30-30) DrawBox(x,y,26,26,bgC) end end end end function PositionCheck() for i=1, #enemies do if enemies[2]~=nil and GetDistance(enemies[1].object) > GetDistance(enemies[2].object) then enemies[1], enemies[2] = enemies[2], enemies[1] end if enemies[3]~=nil and GetDistance(enemies[2].object) > GetDistance(enemies[3].object) then enemies[2], enemies[3] = enemies[3], enemies[2] end if enemies[4]~=nil and GetDistance(enemies[3].object) > GetDistance(enemies[4].object) then enemies[3], enemies[4] = enemies[4], enemies[3] end if enemies[5]~=nil and GetDistance(enemies[4].object) > GetDistance(enemies[5].object) then enemies[4], enemies[5] = enemies[5], enemies[4] end end for i=1, #enemies do if enemies[5]~=nil and (enemies[5].object).visible==1 and (enemies[4].object).visible==0 then enemies[4], enemies[5] = enemies[5], enemies[4] end if enemies[4]~=nil and (enemies[4].object).visible==1 and (enemies[3].object).visible==0 then enemies[3], enemies[4] = enemies[4], enemies[3] end if enemies[3]~=nil and (enemies[3].object).visible==1 and (enemies[2].object).visible==0 then enemies[2], enemies[3] = enemies[3], enemies[2] end if enemies[2]~=nil and (enemies[2].object).visible==1 and (enemies[1].object).visible==0 then enemies[1], enemies[2] = enemies[2], enemies[1] end end for i=1, #enemies do if enemies[5]~=nil and (enemies[5].object).dead==0 and (enemies[4].object).dead==1 then enemies[4], enemies[5] = enemies[5], enemies[4] end if enemies[4]~=nil and (enemies[4].object).dead==0 and (enemies[3].object).dead==1 then enemies[3], enemies[4] = enemies[4], enemies[3] end if enemies[3]~=nil and (enemies[3].object).dead==0 and (enemies[2].object).dead==1 then enemies[2], enemies[3] = enemies[3], enemies[2] end if enemies[2]~=nil and (enemies[2].object).dead==0 and (enemies[1].object).dead==1 then enemies[1], enemies[2] = enemies[2], enemies[1] end end end function DrawCooldowns() -- Cooldown squares for i=1, #enemies do enemy = enemies[i].object enemycolor = enemies[i].color if enemy.dead==0 then if enemy.dead == 0 then cdC = enemycolor else cdC = 0 end local lvl = {enemy.SpellLevelQ, enemy.SpellLevelW, enemy.SpellLevelE, enemy.SpellLevelR} local stime = {enemy.SpellTimeQ, enemy.SpellTimeW, enemy.SpellTimeE, enemy.SpellTimeR} local x = xPos[i] local y = yPos[i] for n=1, 4 do if enemy.visible==1 then local x = x+(n*30-30) if lvl[n] > 0 then if stime[n] > -2 then if stime[n] > 0 then DrawBox(x+3,y+3,20,20,cdC) elseif stime[n] > -1 then DrawBox(x+6,y+6,14,14,cdC) elseif stime[n] > -2 then DrawBox(x+9,y+9,7,7,cdC) end else local xtime=(math.floor(-stime[n])+1) if string.len(xtime)==1 then x=x+8 end if string.len(xtime)==2 then x=x+4 end DrawText(""..xtime, x,y+6, cdC) end end else local x = x+(n*30-30)+5 local y = y+3 DrawBox(x,y,16,20,0xFFEBD081) DrawBox(x-2,y+2,20,16,0xFFEBD081) DrawBox(x-4,y+4,24,4,0xFF000000) DrawBox(x+4,y+16,8,2,0xFF8A0000) DrawBox(x+7,y+10,2,2,0x9FCF8474) end end end end end function DrawTextandDividers()--names for i = 1, #enemies do local enemy = enemies[i].object local name = enemies[i].name local SummonerD = enemies[i].SummonerD local SummonerF = enemies[i].SummonerF local namecolor = enemies[i].nameColor local MR = enemy.magicArmor local ARM = enemy.armor local x = xPos[i] local y = yPos[i] local healthcalc = enemy.health/enemy.maxHealth local manacalc = enemy.mana/enemy.maxMana if enemy.dead==0 then DrawText(name, x, y-23, namecolor) else DrawText(name, x, y-23, 0xFFFFFFFF) end if enemy.dead==0 then if enemy.SpellTimeD > 1 then DrawText(SummonerD, x, y+25, namecolor) end if enemy.SpellTimeF > 1 then DrawText(SummonerF, x+75, y+25, namecolor) end DrawBox(x,y+43,117*healthcalc, 3, namecolor) DrawBox(x+132, y-15, 3, 52*manacalc, namecolor) if myHero.addDamage > myHero.ap then DrawText(math.floor(ARM), x+92, y-23, 0xFFDDFF00) else DrawText(math.floor(MR), x+92, y-23, 0xFF00D9FF) end end end end function DeathCheck(enemy) if enemy.dead==0 then bgC = bgColors.Color else bgC=bgColors.DeathColor end end ----------------------------------frame adjust and save functions function OnWndMsg(msg, key) --FrameSave: Ctrl+Numpad 5 if (key == 101 and msg == KEY_DOWN) then if IsKeyDown(17)==1 then local file = io.open("easysee.txt", "w") file:write("adj1x, adj1y, adj2x, adj2y, adj3x, adj3y, adj4x, adj4y, Pos = "..adj1x.. ","..adj1y..","..adj2x..","..adj2y..","..adj3x..","..adj3y..","..adj4x..","..adj4y..","..Pos) file:close() end end -- frame positions if (key == 102 and msg == KEY_DOWN) then if IsKeyDown(17)==1 then Pos1() end -- Move frame to pos1: ctrl+Numpad 6 end if (key == 98 and msg == KEY_DOWN) then if IsKeyDown(17)==1 then Pos2() end -- Move frame to pos1: ctrl+Numpad 2 end if (key == 100 and msg == KEY_DOWN) then if IsKeyDown(17)==1 then Pos3() end -- Move frame to pos1: ctrl+Numpad 4 end if (key == 104 and msg == KEY_DOWN) then if IsKeyDown(17)==1 then Pos4() end -- Move frame to pos1: ctrl+Numpad 8 end --frame adjustments if (key == 39 and msg == KEY_DOWN) then if IsKeyDown(17)==1 then -- move right: Ctrl+right arrow if Pos==1 then adj1x=adj1x+1 Pos1() elseif Pos==2 then adj2x=adj2x+1 Pos2() elseif Pos==3 then adj3x=adj3x+1 Pos3() elseif Pos==4 then adj4x=adj4x+1 Pos4() end end end if (key == 37 and msg == KEY_DOWN) then if IsKeyDown(17)==1 then -- move left: Ctrl+left arrow if Pos==1 then adj1x=adj1x-1 Pos1() elseif Pos==2 then adj2x=adj2x-1 Pos2() elseif Pos==3 then adj3x=adj3x-1 Pos3() elseif Pos==4 then adj4x=adj4x-1 Pos4() end end end if (key == 38 and msg == KEY_DOWN) then if IsKeyDown(17)==1 then -- move left: Ctrl+left arrow if Pos==1 then adj1y=adj1y-1 Pos1() elseif Pos==2 then adj2y=adj2y-1 Pos2() elseif Pos==3 then adj3y=adj3y-1 Pos3() elseif Pos==4 then adj4y=adj4y-1 Pos4() end end end if (key == 40 and msg == KEY_DOWN) then if IsKeyDown(17)==1 then -- move left: Ctrl+left arrow if Pos==1 then adj1y=adj1y+1 Pos1() elseif Pos==2 then adj2y=adj2y+1 Pos2() elseif Pos==3 then adj3y=adj3y+1 Pos3() elseif Pos==4 then adj4y=adj4y+1 Pos4() end end end end function Pos1()--right yAnchor, xAnchor = ((GetScreenY()/2)-150)+adj1y, ((GetScreenX()/2)*1.78)+adj1x xPos = {xAnchor, xAnchor, xAnchor, xAnchor, xAnchor} yPos = {yAnchor, yAnchor+75, yAnchor+150, yAnchor+225, yAnchor+300, yAnchor+375} Pos=1 end function Pos2()--bottom yAnchor, xAnchor = ((GetScreenY()/3)*2.25)+adj2y, (GetScreenX()/3.8)+adj2x xPos = {xAnchor, xAnchor+150, xAnchor+300, xAnchor+450, xAnchor+600} yPos = {yAnchor, yAnchor, yAnchor, yAnchor, yAnchor, yAnchor} Pos=2 end function Pos3()--left yAnchor, xAnchor = ((GetScreenY()/2)-150)+adj3y, (GetScreenX()/14)+adj3x xPos = {xAnchor, xAnchor, xAnchor, xAnchor, xAnchor} yPos = {yAnchor, yAnchor+75, yAnchor+150, yAnchor+225, yAnchor+300, yAnchor+375} Pos=3 end function Pos4()--top yAnchor, xAnchor = (GetScreenY()/18)+adj4y, (GetScreenX()/3.8)+adj4x xPos = {xAnchor, xAnchor+150, xAnchor+300, xAnchor+450, xAnchor+600} yPos = {yAnchor, yAnchor, yAnchor, yAnchor, yAnchor, yAnchor} Pos=4 end EasySeeSidebarConfig = scriptConfig(" ~~~+++Brautigan's EasySee Sidebar+++~~~", "EasySeeSidebarConfig") EasySeeSidebarConfig:addParam("easysee1", "Change Frame Position: Ctrl+Numpad 2,4,8 and 6", SCRIPT_PARAM_INFO) EasySeeSidebarConfig:addParam("easysee2", "Adjust Frame Position: Ctrl+Arrow Keys", SCRIPT_PARAM_INFO) EasySeeSidebarConfig:addParam("easysee3", "Save All Frame Positions: Ctrl+5", SCRIPT_PARAM_INFO) SetTimerCallback("EasySeeSidebar")
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
B7800 HYLK session 1985
8 hours ago | 2.25 KB
me
13 hours ago | 0.06 KB
FED RESPONSE TEMPLATES: FED HTML Review Feedb...
1 day ago | 0.79 KB
disable email per category (not fully tested)
1 day ago | 0.82 KB
Neuromancer — The Construct Cut (Complete Una...
1 day ago | 3.30 KB
GLUC6
1 day ago | 1.56 KB
Mapscan v1.0 - Archeagus Grey Hack Series, Ep...
JavaScript | 1 day ago | 3.33 KB
Untitled
1 day ago | 17.15 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!