-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit eae36a7
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
ShaguMount = CreateFrame("Frame") | ||
ShaguMount:RegisterEvent("UI_ERROR_MESSAGE") | ||
|
||
ShaguMount.Buffs = { "spell_nature_swiftness", "_mount_", "_qirajicrystal_", | ||
"ability_racial_bearform", "ability_druid_catform", "ability_druid_travelform", | ||
"spell_nature_forceofnature", "ability_druid_aquaticform", "spell_nature_spiritwolf" } | ||
|
||
ShaguMount.Errors = { SPELL_FAILED_NOT_MOUNTED, ERR_ATTACK_MOUNTED, ERR_TAXIPLAYERALREADYMOUNTED, | ||
SPELL_FAILED_NOT_SHAPESHIFT, SPELL_FAILED_NO_ITEMS_WHILE_SHAPESHIFTED, SPELL_NOT_SHAPESHIFTED, | ||
SPELL_NOT_SHAPESHIFTED_NOSPACE, ERR_CANT_INTERACT_SHAPESHIFTED, ERR_NOT_WHILE_SHAPESHIFTED, | ||
ERR_NO_ITEMS_WHILE_SHAPESHIFTED, ERR_TAXIPLAYERSHAPESHIFTED,ERR_MOUNT_SHAPESHIFTED } | ||
|
||
ShaguMount:SetScript("OnEvent", function() | ||
for id, errorstring in pairs(ShaguMount.Errors) do | ||
if arg1 == errorstring then | ||
for i=0,15,1 do | ||
currBuffTex = GetPlayerBuffTexture(i); | ||
if (currBuffTex) then | ||
|
||
for id, bufftype in pairs(ShaguMount.Buffs) do | ||
if string.find(string.lower(currBuffTex), bufftype) then | ||
CancelPlayerBuff(i); | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## Interface: 11302 | ||
## Title: DismountMe | ||
## Author: Fadi (Kund) Chamoun - 2019/08/14 | ||
## Notes: Unmounts the Player whenever a action is used which cannot be done mounted. (11200) | ||
## Version: 1.0 | ||
DismountMe.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# DismountMe | ||
A WoW Classic Addon that automatically unmounts the player when using an action. It is quite similar to ezDismount, as it unmounts the Player whenever a action is used which cannot be done mounted or shapeshifted, however tt's written minimal and designed to work on every localized gameclient. | ||
|
||
## Installation | ||
1. Download | ||
2. Unpack the Zip file | ||
3. Copy "DismountMe" into Wow-Directory\Interface\AddOns | ||
4. Restart Wow |