WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   KeyBinding (https://www.wowinterface.com/forums/showthread.php?t=41348)

jasje 09-04-11 09:14 AM

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 :cool:

Nobgul 09-04-11 10:52 AM

I don't think so. You could use a modifier key.

jasje 09-04-11 11:57 AM

Thats what ive been using so I was curious of other options

Seerah 09-04-11 02:40 PM

No. This cannot be done.

Foxlit 09-05-11 01:44 AM

Quote:

Originally Posted by jasje (Post 244238)
or simply in-combat it uses keybinds ooc strafe.

That would work.

jasje 09-05-11 04:20 AM

Quote:

Originally Posted by Foxlit (Post 244270)
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

Ketho 09-05-11 05:32 AM

Quote:

Originally Posted by jasje (Post 244238)
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)


IcanBlink 09-05-11 07:13 AM

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.

jasje 09-05-11 07:40 AM

Thanks for the replys, ive tested Kethos code and it seems to do what I want, thanks for that!


All times are GMT -6. The time now is 08:27 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI