The KGB Oracle
Posted By: Morlander g13 scripters unite - 12/22/12 02:41 AM
i am looking for help to start a unholy wars script to start i need to make a key for left radial menu cycle and right radial menu cycle

i want my 14 key to cycle thru left alt 1-8
and i want my 13 g key to cycle thru left ctrl 1-8
id appreciate any help if i can get this started and see how its written i may be able to go on and add more keys and put all my heals on 1 key ect but this would be a good start off point please help if you know how
Posted By: Kegir Re: g13 scripters unite - 12/22/12 03:38 AM
Loot click script:)
Posted By: Morlander Re: g13 scripters unite - 12/22/12 06:23 AM
heres what i got atm its working
2 keys 1 cycles left radial 1 cycles right the 3rd key cycles 4 spells which is my heal self bandage mana to stam and stam to heal
it seems to miss a spell here and there yet

G13 = {"1","2","3","4","5","6","7","8"}
G14 = {"1","2","3","4","5","6","7","8"}
G7 = {"1","2","3","4"}

function OnEvent(event, arg, family)
if event == "G_PRESSED" and arg == 13 and family == "lhc" then
i13 = (i13 or 0) + 1
if i13 > #G13 then i13 = 1 end
PressKey("lalt")
Sleep(20)
PressKey(G13[i13])
Sleep(20)
ReleaseKey(G13[i13])
ReleaseKey("lalt")
elseif event == "G_PRESSED" and arg == 14 and family == "lhc" then
i14 = (i14 or 0) + 1
if i14 > #G14 then i14 = 1 end
PressKey("lctrl")
Sleep(20)
PressKey(G14[i14])
Sleep(20)
ReleaseKey(G14[i14])
ReleaseKey("lctrl")
elseif event == "G_PRESSED" and arg == 7 and family == "lhc" then
i7 = (i7 or 0) + 1
if i7 > #G7 then i7 = 1 end
PressKey("lctrl")
Sleep(20)
PressKey(G7[i7])
Sleep(20)
ReleaseKey(G7[i7])
ReleaseKey("lctrl")
end
end
Posted By: Brutal Re: g13 scripters unite - 12/22/12 08:27 AM
So if you want to use your #1 ability but you're currently on the #2 ability, you have to press your key 7 times to get back to #1? Seems kinda laborious. Why not just bind two keys or key combinations for "select left radial" and "select right radial" (Q and E by default) and use the number keys to select the ability you want to use? It's much faster. I rebound mine to shift+Q and shift+E, so for my right radial I just press shift+E if it's not already selected, then hit the number for the spell I want to cast.

Seems faster.
Posted By: Morlander Re: g13 scripters unite - 12/22/12 04:29 PM
thats when id hold alt and radial menu directly to it myself

the whole point of it was a proof of concept now i can branch out and most keys in the end wont have more than 3 or 4 on them
ike my heal key which now has heal bandaid and the 2 conversion spells
Posted By: Brutal Re: g13 scripters unite - 12/22/12 04:37 PM
I don't guess I understand. I never alt-click-drag anymore, I just use the number keys, just like any other game with a hotbar. Only difference is I can't actually see the hotbar, so I just have to remember which abilities are where.
Posted By: Morlander Re: g13 scripters unite - 12/22/12 04:45 PM
im going to get particular abilities that have similar use to share a common key
its really just about easier acessing of the moves and less fishing around for buttons
Posted By: Ignorance Re: g13 scripters unite - 12/24/12 06:19 PM
Check out my script in the information section... I hope it makes sense, if not, I will have to try to walk you through it.

Edit: Cheerio has used it before, he may also be able to help you some.
Posted By: Morlander Re: g13 scripters unite - 12/24/12 07:35 PM
heres what i have now it has evolved i have 2 keys to cycle thru all skills 1 for each radial and 1 key for the main things i use in combat on each radial as well i have a loot key on my g15keyboard with this script


G6 = {"1","2","3","4","5","6","7","8"}
G7 = {"1","2","3","4","5","6","7","8"}
G14 = {"1","2","3","4"}
G13 = {"1","2","3","4","5","6"}
function OnEvent(event, arg, family)
if event == "G_PRESSED" and arg == 13 and family == "lhc" then
i13 = (i13 or 0) + 1
if i13 > #G13 then i13 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G13[i13])
Sleep(40)
ReleaseKey(G13[i13])
ReleaseKey("lalt")
elseif event == "G_PRESSED" and arg == 14 and family == "lhc" then
i14 = (i14 or 0) + 1
if i14 > #G14 then i14 = 1 end
PressKey("lctrl")
Sleep(40)
PressKey(G14[i14])
Sleep(40)
ReleaseKey(G14[i14])
ReleaseKey("lctrl")
elseif event == "G_PRESSED" and arg == 7 and family == "lhc" then
i7 = (i7 or 0) + 1
if i7 > #G7 then i7 = 1 end
PressKey("lctrl")
Sleep(40)
PressKey(G7[i7])
Sleep(40)
ReleaseKey(G7[i7])
ReleaseKey("lctrl")
elseif event == "G_PRESSED" and arg == 6 and family == "lhc" then
i6 = (i6 or 0) + 1
if i6 > #G6 then i6 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G6[i6])
Sleep(40)
ReleaseKey(G6[i6])
ReleaseKey("lalt")
elseif (event == "G_PRESSED" and arg == 18) and family == "kb" then
x, y = GetMousePosition();
PressMouseButton(1)
Sleep(10)
MoveMouseTo(30000, 60500)
Sleep(800)
ReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(x, y)


end
end
Posted By: John Tarcalius Re: g13 scripters unite - 12/24/12 11:34 PM
Little confused on this, maybe because I haven't used the g13 macro buttons enough, but is this seperated by the keys you need to assign this macro in>?

ok just reread post again, this is just the script for the auto loot and the previous one is for the radial menu's? and if so how does this work exactly?
Posted By: Morlander Re: g13 scripters unite - 12/25/12 02:26 AM
the g18 key for my g15 keyboard is a quick loot button and the g6 key cycles thru all 8 of the left radial buttons the g7 thru all 8 of the right radial buttons
the g14 button cycles thru the first 4 right radial buttons and the g13 button cycles thru the first 6 left radial buttons


G6 = {"1","2","3","4","5","6","7","8"}
G7 = {"1","2","3","4","5","6","7","8"}
G14 = {"1","2","3","4"}
G13 = {"1","2","3","4","5","6"}
function OnEvent(event, arg, family)
if event == "G_PRESSED" and arg == 13 and family == "lhc" then
i13 = (i13 or 0) + 1
if i13 > #G13 then i13 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G13[i13])
Sleep(40)
ReleaseKey(G13[i13])
ReleaseKey("lalt")
elseif event == "G_PRESSED" and arg == 14 and family == "lhc" then
i14 = (i14 or 0) + 1
if i14 > #G14 then i14 = 1 end
PressKey("lctrl")
Sleep(40)
PressKey(G14[i14])
Sleep(40)
ReleaseKey(G14[i14])
ReleaseKey("lctrl")
elseif event == "G_PRESSED" and arg == 7 and family == "lhc" then
i7 = (i7 or 0) + 1
if i7 > #G7 then i7 = 1 end
PressKey("lctrl")
Sleep(40)
PressKey(G7[i7])
Sleep(40)
ReleaseKey(G7[i7])
ReleaseKey("lctrl")
elseif event == "G_PRESSED" and arg == 6 and family == "lhc" then
i6 = (i6 or 0) + 1
if i6 > #G6 then i6 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G6[i6])
Sleep(40)
ReleaseKey(G6[i6])
ReleaseKey("lalt")
elseif (event == "G_PRESSED" and arg == 18) and family == "kb" then
x, y = GetMousePosition();
PressMouseButton(1)
Sleep(10)
MoveMouseTo(30000, 60500)
Sleep(800)
ReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(x, y)


end
end
Posted By: John Tarcalius Re: g13 scripters unite - 12/27/12 02:52 AM
Ok, I understand the key layout, but guess my question is more how do i use this script. I am used to having a seperate script for each key. am I missing someplace in the keyboard commands that I can copy and paste this one long script in that will assign the functions to the aforementioned keys?
Posted By: Ignorance Re: g13 scripters unite - 12/27/12 03:57 AM
Yes. If you want to use a script, go to where you configure the GKeys. From there on the profile button on the top, there is a drop-down menu.

Posted By: Luxor Re: g13 scripters unite - 12/27/12 07:26 AM
I am currently using a Razer Mouse. Does anyone know if there is a way to set it up to do an auto loot??
Posted By: Morlander Re: g13 scripters unite - 12/29/12 04:36 AM
noticed u can double click to loot in new game i deleted my loot macro
Posted By: Morlander Re: g13 scripters unite - 04/20/13 05:00 AM
G6 = {"1","2","3","4","5","6","7","8"}
G7 = {"1","2","3","4","5","6","7","8"}
G14 = {"1","2","3","4","5"}
G13 = {"2","3","4"}
G19 = {"7","6"}
G11 = {}
G12 = {"6","5","1"}
function OnEvent(event, arg, family)
if event == "G_PRESSED" and arg == 13 and family == "lhc" then
i13 = (i13 or 0) + 1
if i13 > #G13 then i13 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G13[i13])
Sleep(40)
ReleaseKey(G13[i13])
ReleaseKey("lalt")
elseif event == "G_PRESSED" and arg == 14 and family == "lhc" then
i14 = (i14 or 0) + 1
if i14 > #G14 then i14 = 1 end
PressKey("lctrl")
Sleep(40)
PressKey(G14[i14])
Sleep(40)
ReleaseKey(G14[i14])
ReleaseKey("lctrl")
elseif event == "G_PRESSED" and arg == 7 and family == "lhc" then
i7 = (i7 or 0) + 1
if i7 > #G7 then i7 = 1 end
PressKey("lctrl")
Sleep(40)
PressKey(G7[i7])
Sleep(40)
ReleaseKey(G7[i7])
ReleaseKey("lctrl")
elseif event == "G_PRESSED" and arg == 6 and family == "lhc" then
i6 = (i6 or 0) + 1
if i6 > #G6 then i6 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G6[i6])
Sleep(40)
ReleaseKey(G6[i6])
ReleaseKey("lalt")
elseif event == "G_PRESSED" and arg == 19 and family == "lhc" then
i19 = (i19 or 0) + 1
if i19 > #G19 then i19 = 1 end
PressKey("lctrl")
Sleep(40)
PressKey(G19[i19])
Sleep(40)
ReleaseKey(G19[i19])
ReleaseKey("lctrl")
elseif event == "G_PRESSED" and arg == 11 and family == "lhc" then
i11 = (i11 or 0) + 1
if i11 > #G11 then i11 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G11[i11])
Sleep(40)
ReleaseKey(G11[i11])
ReleaseKey("lalt")
elseif event == "G_PRESSED" and arg == 12 and family == "lhc" then
i12 = (i12 or 0) + 1
if i12 > #G12 then i12 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G12[i12])
Sleep(40)
ReleaseKey(G12[i12])
ReleaseKey("lalt")
end
end
© The KGB Oracle