What's the lua function or functions to apply poison to the weapons for a rogue? tried search, but cannot find anything.
Thanks
What's the lua function or functions to apply poison to the weapons for a rogue? tried search, but cannot find anything.
Thanks
You can probably just bind them to two keys, and make the console "press" target key (through addon function) then /use <weapon slot id>.
In any case, try WowInterface's IRC channel.
WoWI UI Dev support - IRC Channel & Guilds - WoWInterface
Double check you're trading with me in case of impostors
to apply poison to a weapon, you could click on the poison in your inventory, and after that you could click on your weapon...
all you need: World of Warcraft API - WoWWiki - Your guide to the World of Warcraft
/use Instant Poison IV
/use 16
16 = Mainhand weapon
17 = Offhand wapon
Do as i do it:
Lua("RunMacroText("/use Instant Poison IV");")
Lua("RunMacroText("/use 16");")
thanks a lot for all your help.
I followed mnbvc's suggestion. Now I know UseInventoryItem can do the trick.
I had this problem 2 months ago and i finally resolve it!
I'm not the bot programmer, I just program CC for rogue!
So i try test if MainHandWeapon has TempEnchant.Name == "Deadly Poison"
If false then I hook the mouse to open bags search poison and aplly it on mainhandweapon
Ps : please excuse my english, I'm french programming student!