Thread Tools Display Modes
09-04-11, 09:14 AM   #1
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
KeyBinding

Hello there;
I got a question about keybindings, what I want to achieve is to use QenE for keybindings but also for strafing so when a enemy is close it uses(when of cd)a spell and when not close just strafe or simply in-combat it uses keybinds ooc strafe. Not sure if this can be done at all but I was just curious.

thanks in advance
__________________

Tukui | Github
  Reply With Quote
09-04-11, 10:52 AM   #2
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
I don't think so. You could use a modifier key.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
09-04-11, 11:57 AM   #3
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
Thats what ive been using so I was curious of other options
__________________

Tukui | Github
  Reply With Quote
09-04-11, 02:40 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
No. This cannot be done.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-05-11, 01:44 AM   #5
Foxlit
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 91
Originally Posted by jasje View Post
or simply in-combat it uses keybinds ooc strafe.
That would work.
__________________
... and you do get used to it, after a while.
  Reply With Quote
09-05-11, 04:20 AM   #6
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
Originally Posted by Foxlit View Post
That would work.
Could shed soms light on this, maybe an example of anything else, i got some coding experience so i just need something in the right direction
__________________

Tukui | Github
  Reply With Quote
09-05-11, 05:32 AM   #7
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by jasje View Post
simply in-combat it uses keybinds ooc strafe.
Would it be something like this?
Code:
local function OnEvent(self, event)
	if event == "PLAYER_REGEN_DISABLED" then
		SetBinding("Q", "SPELL Battle Shout")
		SetBinding("E", "SPELL Commanding Shout")
	else
		SetBinding("Q", "STRAFELEFT")
		SetBinding("E", "STRAFERIGHT")
	end
end

local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_REGEN_DISABLED")
f:RegisterEvent("PLAYER_REGEN_ENABLED")
f:SetScript("OnEvent", OnEvent)

Last edited by Ketho : 09-05-11 at 05:34 AM.
  Reply With Quote
09-05-11, 07:13 AM   #8
IcanBlink
A Defias Bandit
 
IcanBlink's Avatar
Join Date: Dec 2009
Posts: 2
you cant anymore

There is a script ( StrafeLeft(); or similar) with which you could have made a macro + /cast Spell1 and put it on a bar and bind the key Q to it, but since TBC that StrafeLeft(); (and the others) is protected functions, and macros cant use them anymore and i think addons also.
You can search on wowwiki the right name of the scripts, maybe you succeed to integrate them in your edit or an addon.
This kind of macro was used mostly by rogues, so when they strafe left/right they would have used an ability. Just to reduce the number of binds, not cuz they were proh.

edit:
http://www.wowwiki.com/Scripts
CTRL + F => type "Movement Functions" and you`ve found what i said.
GL ! give a reply if you succeed something, even if not.

Last edited by IcanBlink : 09-05-11 at 07:21 AM.
  Reply With Quote
09-05-11, 07:40 AM   #9
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
Thanks for the replys, ive tested Kethos code and it seems to do what I want, thanks for that!
__________________

Tukui | Github
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » KeyBinding


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off