Drawn/sheathe weapon in Lua:
Hello guys:
Do i get the Information in LUA, if i Drawn/sheathe weapon in Game? I couldnt find anything matching in the Globals,Functions etc.. on wiki page. thanks in advance greetings :) |
I think there isn't any event. The add-on StowIt uses EVENT_PLAYER_COMBAT_STATE, but obviously that doesn't trigger if you just press the keybind.
|
Quote:
Lua Code:
|
I tried to sheathe weapons with my screenshot helper addon automatically when I hide the UI some time after launch without luck.
You could maybe hook some functions, but there are also situations where weapons are drawn because of abilities cast by other players. Until we get an event or an api function for this, there is no reliable way to detect the current state. |
Quote:
Quote:
You will have to do more then just this hook. |
This thread is covering an area I have started to research. I have been looking for a way to determine when a skill outside of combat is used, such as Rapid Maneuvers, which causes a weapon draw, so an addon can auto sheath it. I understand how to use an in combat call back, but I have not figured out how to do this properly yet. Any ideas?
|
Are these events any use?
EVENT_ACTIVE_WEAPON_PAIR_CHANGED (integer eventCode, integer activeWeaponPair, bool locked) EVENT_WEAPON_SWAP_LOCKED (integer eventCode, integer swapLevel) EVENT_ACTION_SLOTS_FULL_UPDATE (integer eventCode, bool isHotbarSwap) |
Is there a reason that there is no EVENT_WIELD_CHANGED or similar? Could it be exploited?
|
All times are GMT -6. The time now is 10:23 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI