View Single Post
12/17/14, 07:18 AM   #5
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Sir Tigär View Post
Do i get the Information in LUA, if i Drawn/sheathe weapon in Game?
No, there is no such thing.

Originally Posted by Shinni View Post
TogglePlayerWield changes the weapon state. You could do something like this:
Lua Code:
  1. local old_toggle = TogglePlayerWield
  2. TogglePlayerWield = function(...)
  3.     d("weapon state is changed")
  4.     old_toggle(...)
  5. end
You can do that, but it is not accurate. There are events when your character draw or seathe weapon without triggering this function. For example when you start combat, character automatically draws a weapon. When you start interaction, your character automatically sheathe a weapon.
You will have to do more then just this hook.
  Reply With Quote