AutoEquipQuestItem

4 - Alternative to :EnableKeyboard()

When you use :EnableKeyboard(), you kill my key bindings. I like to press "B" to open my bags while the quest completed dialog is open.

I have hacked out an alternative.

Proposed change attached.

Name Description Size MD5
Core.lua &emdash; 5.8 KiB bd0cfad8f2ee...
Core.lua uses MODIFIER_STATE_CHANGED 5.8 KiB a167cacae218...
User When Change
egingell Jan 31, 2011 at 00:05 UTC Changed status from Waiting to Replied
yssaril Jan 29, 2011 at 15:45 UTC Changed status from Accepted to Waiting
yssaril Jan 29, 2011 at 02:48 UTC

Added attachment Core.lua

yssaril Jan 29, 2011 at 02:47 UTC

Deleted attachment Core.lua: bahh forgot to unregister for keyboard input

yssaril Jan 29, 2011 at 02:45 UTC

Added attachment Core.lua

yssaril Jan 29, 2011 at 02:45 UTC

Deleted attachment Core.lua: error in file

yssaril Jan 29, 2011 at 02:43 UTC

Added attachment Core.lua

yssaril Jan 28, 2011 at 23:20 UTC Changed status from New to Accepted
egingell Jan 28, 2011 at 23:16 UTC

Added attachment Core.lua

egingell Jan 28, 2011 at 23:15 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 6 comments
  • Avatar of egingell egingell Jan 31, 2011 at 03:51 UTC - 0 likes

    Pressing any modifier changes the text to "Complete Quest & Equip Item" regardless of whether one is chosen or not and stays like that unless I cancel and talk to the NPC again.

    No Lua error.

    It's the same quest as I mentioned in ticket #5.

    Edit: And when I click one of the rewards, the text goes back to "Complete & Get Highest Value".

    Last edited Jan 31, 2011 by egingell
  • Avatar of egingell egingell Jan 31, 2011 at 00:05 UTC - 0 likes

    No errors, but I haven't had a quest where multiple items were obtainable and equipable.

  • Avatar of yssaril yssaril Jan 29, 2011 at 15:45 UTC - 0 likes

    check out the alpha version btw (it fixes some drycoding errors in the core lua attached here)

  • Avatar of egingell egingell Jan 29, 2011 at 09:47 UTC - 0 likes

    MODIFIER_STATE_CHANGE is superior than trapping key strokes and, possibly, better than OnUpdate. Will try later.

  • Avatar of yssaril yssaril Jan 29, 2011 at 02:47 UTC - 0 likes

    can you try the new Core.lua file i attached? (cant test from work) is uses the MODIFIER_STATE_CHANGED event to track state changes hopefully)

    Last edited Jan 29, 2011 by yssaril
  • Avatar of yssaril yssaril Jan 28, 2011 at 23:20 UTC - 0 likes

    hmm will look into it (patch looks sound though i do want to try to avoid OnUpdate) will have a look at it tonight

  • 6 comments

Facts

Last updated
Jan 31, 2011
Reported
Jan 28, 2011
Status
Replied - Someone has replied after waiting for more information.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees