Script for toggling sheath/unsheath weapons
The WoW forums weren't very helpful on this subject, so maybe you folks here can provide some insight :). I really like the way my hunter looks when he's running around with the bow in hand and quiver on his back. Currently, the only way I can get him to do this is by double-tapping the key I have bound for sheathing your weapons, but it goes away every time I talk to someone or loot a body. Is there some way I can write a macro or script that will have my character automatically keep his bow unsheathed, after talking with an NPC or looting a monster? And if there can be such a thing written, how do I keep it in effect after I log in and out of the game? Thanks a lot for any future responses!
|
Press 'z' on your keyboard?
|
Quote:
Quote:
|
Right, I am pressing 'Z', but the problem is it gets resheathed every time I loot a mob or talk to an NPC, and that's what I want to change. It should be a relativly easy script, as it's only duplicating a key being pressed after a certain event, but I have no idea how to program, so here I am ;)
|
do the following:
make a new folder in your AddOns and call it sheathmod or something like that. Then create the following files within that directory: sheathmod.toc Code:
## Interface: 1300 Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd"> Code:
sheathmod = {}; You can find a somewhat comprehensive list of game events at http://www.wowwiki.com/Events I did NOT test this myself, so I will leave that up to you to do on your own. I also didn't give the frame a name in the xml file, because it really doesn't need one (since it is basically invisible anyway, and doesn't appear anwhere, so should not need to be called, and as Blizzard tells us, no name = less memory used since it doesn't use a scripting reference) |
I copied and pasted all the code into seperate notepad files and saved every thing as you said, other than I deleted the notes in the lua file. Unfortunatly, it doesn't seem to work as it is, though I honestly appreciate that you've taken the time to help me out. Any ideas?
|
All times are GMT -6. The time now is 12:38 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI