Download
(22Kb)
Download
Updated: 10-01-07 07:30 PM
Pictures
File Info
Updated:10-01-07 07:30 PM
Created:unknown
Downloads:11,418
Favorites:39
MD5:

Bandager  Popular! (More than 5000 hits)

Version: 1.0.020
by: Saiiyna [More]

This is a simple minimap button that uses the best or worst bandage you have in your bag.
- Right click bandages you
- Left click bandages target or allow you to target someone

That's all there is to it

slash commands

/Bandager Lock - locks button in place
/bandager unlock - allow button to be dragged anywhere
/bandager small/medium/large
/bandager right <key> - bind right click to a key i.e F10, SHIFT-P etc.
/bandager left <key> - bind left click to a key
/bandager swap - swaps the right and left click targets
/bandager verbose/quiet - show or hide information messages
/bandager square/round - Change the button to square or round
/bandager best/worst - use the best/worst banadage first


Change Log:
1.0.020

* TOC update

1.0.019

* fixed Av Bandages

1.0.018

* updated Toc

1.0.017

* added ability to use worst bandage instead of best bandage
/bandager worst
/bandager best

1.0.016

* added new slash commands
/bandager verbose/quiet - show or hide information messages
/bandager square/round - Change the button to square or round
* added messaging that shows in Verbose mode

1.0.015

* added command: /bandager swap - swaps the right and left click targets
* fixed /bandager (with no command) now shows list of valid commands
* looked at all the lines of code and tried to fix or prevent anything that might Taint objects

1.0.014

* fixed Netherweave bandages

1.0.013

* added Netherweave Bandages

1.0.012

* TOC update

1.0.011

* now saves the keybinding between logins

1.0.010

* added Key binding for right and left click

1.0.009

* added slash commands to change the size of button
/bandager small (default)
/bandager medium
/bandager large

1.0.008

* Updated german localization

1.0.007

* removed in combat message

1.0.006

* fixed and In/out of combat BG issue

1.0.005

* fixed the bandage count calculation. Gives total instead of amount in last slot found.

1.0.004

* Now the counts actually update when you use or make a bandage

1.0.003

* Per request added Bandage count to the button
1.0.002

* Per request added BG Bandages they need pvpers to test them

1.0.001

* Amazingly, BAG_UPDATE and BAG_UPDATED are not the same thing.
* Fixed this bug. Should update you bandage type now when you make new one.

Post A Reply Comment Options
Unread 11-17-08, 01:26 PM  
Monty1157
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Sorry m8. I'm no coder. I hacked what I did together by looking at the data itself, and not the code, and it somehow worked. If the translations are elsewhere, I'm sure someone will pick them, and the addon, up, and post a modified version. Trust me when I say that there's no way I could maintain the addon if there was a major change to the LUA language embedded in the game code.

I've edited my post to show in bold font, and in lime green, exactly what changes I made to each section. Please note in the first section that Heavy Netherweave now has a ; at the end of it's line, and that the last line doesn't have a ; present. This will remain true for the French and German translations.

All lines in the second section have a , at the end.

And in the third section all I did was add a few IF statements to the code, and made the start of the code,
(if( Bandager_BANDAGE_INFO[Bandager_BANDAGE.HeavyNetherweave], etc) an ELSEIF instead, and added the new code on top, so that the IF code ran smoothly with the new bandage options in place. That's the extent of my programming knowledge. Sorry. Hope this helps you out somewhat.

As for TOC versions. Yeah, it could be done, and it's easy to do yourself by changing the number in the .toc file to the new verison number, whatever that is, but I just tick "Load Out Of Date Addons" in the addons config screen in game every patch. Saves a huge headache for me.

Good luck!

Cheerie,
Monty
Last edited by Monty1157 : 11-26-08 at 02:57 AM.
Report comment to moderator  
Reply With Quote
Unread 11-16-08, 07:54 PM  
ali3nx
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Hey thanks. I tried adding to the same sections yesterday but i must of made a typo someplace

also fr.wowhead.com and de.wowhead.com list the correct bandage names for french and german.

only other thing that needs to be updated is the toc version to 30000

maybe a version bump for the additions would be in order
Last edited by ali3nx : 11-16-08 at 07:56 PM.
Report comment to moderator  
Reply With Quote
Unread 11-15-08, 10:16 PM  
Monty1157
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Updated LUA for Frostweave, Heavy Frostweave, and Dense Frostweave

Here's the changed LUA I did for my copy of Bandager. I've updated it for the English clients only. If someone wants to translate for other languages, it's pretty simple to see where you put in the translated bandage names. As far as I can tell, as long as the changes are in the localisations part at the top of the code, localised names don't need to go in elsewhere. Also, I've put in the correct heal amounts for each bandage in the Bandager_BANDAGE_INFO section of the code. A lot of the previous bandage amounts look out by a few hitpoints, and I've guessed at the level of all the Frostweave bandages as 70, but I could be wrong...Anyway, here's the code. Enjoy.

Localisation/Bandage Definition

Code:
    Bandager_BANDAGE = 
    {
        Linen          = 'Linen Bandage';
        HeavyLinen     = 'Heavy Linen Bandage';
        Wool           = 'Wool Bandage';
        HeavyWool      = 'Heavy Wool Bandage';
        Silk           = 'Silk Bandage';
        HeavySilk      = 'Heavy Silk Bandage';
        Mageweave      = 'Mageweave Bandage';
        HeavyMageweave = 'Heavy Mageweave Bandage';
        Runecloth      = 'Runecloth Bandage';
        HeavyRunecloth = 'Heavy Runecloth Bandage';
        HighlandersRunecloth = "Highlander's Runecloth Bandage";
		HighlandersMageweave = "Highlander's Mageweave Bandage";
		HighlandersSilk = "Highlander's Silk Bandage";
		DefilersRunecloth = "Defiler's Runecloth Bandage";
		DefilersMageweave = "Defiler's Mageweave Bandage";
		DefilersSilk = "Defiler's Silk Bandage";
		ABRunecloth ="Arathi Basin Runecloth Bandage";
		ABMageweave= "Arathi Basin Mageweave Bandage";
		ABSilk = "Arathi Basin Silk Bandage";
		WSGRunecloth="Warsong Gulch Runecloth Bandage";
		WSGMageweave="Warsong Gulch Mageweave Bandage";
		WSGSilk="Warsong Gulch Silk Bandage";		
		AVHeavyRunecloth = "Alterac Heavy Runecloth Bandage";
        Netherweave = "Netherweave Bandage";
        HeavyNetherweave = "Heavy Netherweave Bandage";
	Frostweave = "Frostweave Bandage";
	HeavyFrostweave = "Heavy Frostweave Bandage";
	DenseFrostweave = "Dense Frostweave Bandage"
    }
end
Bandage Info To Determine Best Bandage To Use

Code:
Bandager_BANDAGE_INFO =
{
    [Bandager_BANDAGE.Linen]  = {Level=1, HealAmount=66, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.HeavyLinen]  = {Level=1, HealAmount=114, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.Wool]  = {Level=1, HealAmount=161, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.HeavyWool]  = {Level=1, HealAmount=301, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.Silk]  = {Level=1, HealAmount=400, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.HeavySilk]  = {Level=1, HealAmount=640, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.Mageweave]  = {Level=1, HealAmount=800, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.HeavyMageweave]  = {Level=1, HealAmount=1104, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.Runecloth]  = {Level=52,HealAmount=1360, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.HeavyRunecloth]  = {Level=58,HealAmount=2000, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.HighlandersSilk]  = {Level=58,HealAmount=2001, OnHand = 0, Bag = -1, Slot = 0},    
    [Bandager_BANDAGE.HighlandersMageweave]  = {Level=58,HealAmount=2002, OnHand = 0, Bag = -1, Slot = 0} ,
    [Bandager_BANDAGE.HighlandersRunecloth]  = {Level=58,HealAmount=2003, OnHand = 0, Bag = -1, Slot = 0}  ,  
    [Bandager_BANDAGE.DefilersSilk]  = {Level=58,HealAmount=2001, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.DefilersMageweave]  = {Level=58,HealAmount=2002, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.DefilersRunecloth]  = {Level=58,HealAmount=2003, OnHand = 0, Bag = -1, Slot = 0},   
    [Bandager_BANDAGE.ABSilk]  = {Level=58,HealAmount=2004, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.ABMageweave]  = {Level=58,HealAmount=2005, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.ABRunecloth]  = {Level=58,HealAmount=2006, OnHand = 0, Bag = -1, Slot = 0},   
    [Bandager_BANDAGE.WSGSilk]  = {Level=58,HealAmount=2004, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.WSGMageweave]  = {Level=58,HealAmount=2005, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.WSGRunecloth]  = {Level=58,HealAmount=2006, OnHand = 0, Bag = -1, Slot = 0},   
    [Bandager_BANDAGE.AVHeavyRunecloth]  = {Level=58,HealAmount=2010, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.Netherweave]  = {Level=58,HealAmount=2010, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.HeavyNetherweave]  = {Level=58,HealAmount=2010, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.Frostweave]  = {Level=70,HealAmount=4800, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.HeavyFrostweave]  = {Level=70,HealAmount=5800, OnHand = 0, Bag = -1, Slot = 0},
    [Bandager_BANDAGE.DenseFrostweave]  = {Level=70,HealAmount=5900, OnHand = 0, Bag = -1, Slot = 0},
}
Bandage Check IF Statement

Code:
--BCHAT("looking Other Bandage");
	if( Bandager_BANDAGE_INFO[Bandager_BANDAGE.DenseFrostweave].OnHand > 0 ) then
        return Bandager_BANDAGE.DenseFrostweave;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.HeavyFrostweave].OnHand > 0 ) then
        return Bandager_BANDAGE.HeavyFrostweave;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.Frostweave].OnHand > 0 ) then
        return Bandager_BANDAGE.Frostweave;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.HeavyNetherweave].OnHand > 0 ) then
        return Bandager_BANDAGE.HeavyNetherweave;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.Netherweave].OnHand > 0 ) then
        return Bandager_BANDAGE.Netherweave;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.HeavyRunecloth].OnHand > 0 ) then
        return Bandager_BANDAGE.HeavyRunecloth;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.Runecloth].OnHand > 0 ) then
        return Bandager_BANDAGE.Runecloth;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.HeavyMageweave].OnHand > 0 ) then 
        return Bandager_BANDAGE.HeavyMageweave;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.Mageweave].OnHand > 0 )  then
        return Bandager_BANDAGE.Mageweave;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.HeavySilk].OnHand > 0 )  then
        return Bandager_BANDAGE.HeavySilk;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.Silk].OnHand > 0 )  then
        return Bandager_BANDAGE.Silk;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.HeavyWool].OnHand > 0 )  then
        return Bandager_BANDAGE.HeavyWool;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.Wool].OnHand > 0 )  then
        return Bandager_BANDAGE.Wool;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.HeavyLinen].OnHand > 0 ) then 
        return Bandager_BANDAGE.HeavyLinen;
    elseif( Bandager_BANDAGE_INFO[Bandager_BANDAGE.Linen].OnHand > 0 )  then
        return Bandager_BANDAGE.Linen;
    else 
        return "NONE";
    end
Last edited by Monty1157 : 11-17-08 at 01:16 PM.
Report comment to moderator  
Reply With Quote
Unread 11-15-08, 06:11 PM  
ali3nx
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Trying to fix a small typo somewhere in the lua code...

[2008/11/15 18:10:26-534-x1]: Bandager-1.0.021\Bandager.lua:34: '}' expected (to close '{' at line 8) near 'Frostweave'


fixed that one... now this

[2008/11/15 18:16:15-535-x1]: Bandager-1.0.021\Bandager.lua:107: '}' expected (to close '{' at line 80) near 'Bandage'

http://files.filefront.com/Bandager+wotlk+02rar/;12363985;/fileinfo.html
Last edited by ali3nx : 11-15-08 at 06:31 PM.
Report comment to moderator  
Reply With Quote
Unread 11-15-08, 04:45 PM  
ali3nx
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
if someone could add frostweave and heavy frostweave bandages this mod would be up to date


:edit: i use this mod so much i did it myself

changes: added Frostweave and Heavy Frostweave Bandages for enUS German and French locales

Bumped version to 1.0.021

File hosted on my filefront page. If the author doesn't commit changes to official i may look into posting a wotlk fanupdate version
Last edited by ali3nx : 11-15-08 at 06:31 PM.
Report comment to moderator  
Reply With Quote
Unread 10-14-08, 05:01 PM  
ali3nx
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Please update for patch 3.0.2 this mod is essential!
Report comment to moderator  
Reply With Quote
Unread 07-29-07, 07:34 PM  
Saiiyna
An Aku'mai Servant
 
Saiiyna's Avatar
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 47
Uploads: 3
Re: AV bandages

Originally posted by SquishyMage
Is line 528 correct?

If I go into AV with no AV bandages yet have heavy runecloth bandages, bandager changes to zero bandages as if it wants to use AV bandages.
I dont do BGs so I will look at the code and see what I can do to fix it.
Report comment to moderator  
Reply With Quote
Unread 07-26-07, 08:55 PM  
SquishyMage
A Deviate Faerie Dragon

Forum posts: 19
File comments: 43
Uploads: 0
AV bandages

Is line 528 correct?

If I go into AV with no AV bandages yet have heavy runecloth bandages, bandager changes to zero bandages as if it wants to use AV bandages.
Report comment to moderator  
Reply With Quote
Unread 05-08-07, 11:05 AM  
Saiiyna
An Aku'mai Servant
 
Saiiyna's Avatar
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 47
Uploads: 3
Re: Can't update bandage

Originally posted by TDurden
My chat is continually getting spammed with the message "Can't update bandage. In Combat" whenever I'm in combat. Is there any way to turn that off? I'd prefer to keep the other chat messages for slash commands, I just want to get rid of that one.

Thanks for all your work on this mod.
I think it is /bandager quiet.

/bandager will give you the list of commands I believe. It has been a while since I looked at the code. I am not really playing anymore so not modding much.

Saii
Report comment to moderator  
Reply With Quote
Unread 05-06-07, 10:12 AM  
TDurden
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 25
Uploads: 1
Can't update bandage

My chat is continually getting spammed with the message "Can't update bandage. In Combat" whenever I'm in combat. Is there any way to turn that off? I'd prefer to keep the other chat messages for slash commands, I just want to get rid of that one.

Thanks for all your work on this mod.
Last edited by TDurden : 05-06-07 at 10:21 AM.
Report comment to moderator  
Reply With Quote
Unread 04-25-07, 10:04 PM  
TDurden
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 25
Uploads: 1
Saiiyna, thanks for all your work on this mod, and for implementing my feature requests I made at WorldOfWar.net. Sorry to see you won't be updating there, but I understand. I think they added an auto virus scan for uploads with ClamAV now.

Anyway, glad I can still get this mod here. It has been a valuable addition to my UI and gameplay!
Report comment to moderator  
Reply With Quote
Unread 03-25-07, 04:04 PM  
Wowgamer233
A Flamescale Wyrmkin
 
Wowgamer233's Avatar

Forum posts: 126
File comments: 66
Uploads: 0
Re: Re: Very cool...

Originally posted by Saiiyna
this is oopposite of how I have it arranged and how I like to play so I wont shift the right and left click but I will look into the shift-right and left click for the opposite of what is on click
Works for me. Many thanks.
Report comment to moderator  
Reply With Quote
Unread 03-25-07, 10:30 AM  
Saiiyna
An Aku'mai Servant
 
Saiiyna's Avatar
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 47
Uploads: 3
Re: Very cool...

Originally posted by Wowgamer233
Just wondering if you would consider...

Left-Click = Best bandage on self
Right-Click = Best bandage on target
Shift-Left-Click = Worst bandage on self (for the frugal paramedic)
Shift-Right-Click = Worst bandage on self (for the frugal paramedic)
Ctrl-Left-Click = Hmmm... any suggestions ?
Ctrl-Right-Click = Hmmm... any suggestions ?


Thx
this is oopposite of how I have it arranged and how I like to play so I wont shift the right and left click but I will look into the shift-right and left click for the opposite of what is on click
Report comment to moderator  
Reply With Quote
Unread 03-25-07, 05:00 AM  
Gorlum
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 19
Uploads: 1
Thanks! It's now works just fine for me.
Report comment to moderator  
Reply With Quote
Unread 03-24-07, 10:07 PM  
Wowgamer233
A Flamescale Wyrmkin
 
Wowgamer233's Avatar

Forum posts: 126
File comments: 66
Uploads: 0
Very cool...

Just wondering if you would consider...

Left-Click = Best bandage on self
Right-Click = Best bandage on target
Shift-Left-Click = Worst bandage on self (for the frugal paramedic)
Shift-Right-Click = Worst bandage on self (for the frugal paramedic)
Ctrl-Left-Click = Hmmm... any suggestions ?
Ctrl-Right-Click = Hmmm... any suggestions ?


Thx
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: