Go to Page... |
Updated: | 01-27-10 02:47 AM |
Created: | 09-27-09 04:09 AM |
Downloads: | 4,971 |
Favorites: | 11 |
MD5: |
Whats New! "All Gold made in Game now Shown." Type /guildtax for Command List - common uses are, set tax on guild raids to raise funds for Guild Bank Repairs ect, will also handle donations.
IMPORTANT NOTE: You will need to remove anyother Guild Tax addons you use, or you will risk double taxation with out representaion.
HOW TO USE: Guild leaders need to add a line to the "Guild Message Of The Day, MOTD" with the amount you wish to tax, Must contain the word “tax” and an amount. It is NOT case sensitive.
Guildtax = 15%Tax - 86%GUILDtax: 25TaX 20
If there is an amount in both Guild MOTD and guild info the one in the guild MOTD will be used, the Officers Note overrides all other amounts. If no line is added to the Guild Message or guild infomation of the day then the default of 10% will be used.
Tax cannot be set above 100% or below 0%, if this happens it will be set at 10%.
The amount taxed will be saved up until a player visits the guild bank, at which point it will be deposited automatically when bank is opened.
Comment Options |
Miralen |
View Public Profile |
Send a private message to Miralen |
Find More Posts by Miralen |
Add Miralen to Your Buddy List |
Drshow |
View Public Profile |
Send a private message to Drshow |
Visit Drshow's homepage! |
Find More Posts by Drshow |
Add Drshow to Your Buddy List |
10-24-09, 11:29 AM | |
|
Minor Changes
Hey, slowly but surely getting the guild interested in the addon - thanks
I've made 3 minor edits to our version that'd like to see make it into the official version: 1. Fixed a typo - "Deposted" should be "Deposited" (approximately line 763) 2. Hide the extra info panels by default, starting approximately line 420 if (event == "ADDON_LOADED" and arg1 == "GuildTax") then LoadOptions(); GName(); GuildTaxMiniFrame:Hide(); --Hide extra info by default end 3. Remove some of the extra spam when you open guild bank but have no tax to pay by wrapping DepositMoneyInGuild with an if check function DepositMoneyInGuild() if (taxincopper_total > 0) then -- WRJ ... end |
|
aktlingit |
View Public Profile |
Send a private message to aktlingit |
Visit aktlingit's homepage! |
Find More Posts by aktlingit |
Add aktlingit to Your Buddy List |
10-30-09, 02:57 PM | ||
|
Re: Minor Changes
__________________
|
|
|
Drshow |
View Public Profile |
Send a private message to Drshow |
Visit Drshow's homepage! |
Find More Posts by Drshow |
Add Drshow to Your Buddy List |
10-30-09, 03:01 PM | |
|
Whats New in Guild Tax 5.2.0
Not too much, fixed a few minor bugs and started a few new features.
Added option to set an individuals tax rate in the Officers Note, with format; tax = 25% or guildtax = 25% or tax = 25 or tax 25 Also Donations of gold are made easier now from Guild Tax.
__________________
|
|
Drshow |
View Public Profile |
Send a private message to Drshow |
Visit Drshow's homepage! |
Find More Posts by Drshow |
Add Drshow to Your Buddy List |
11-01-09, 01:44 PM | |
|
I may have missed the option, but is it possible to prevent the addon from posting to the Guild channel when it makes an auto deposit?
Thanks in advance for the help and a great new tool |
|
Vis |
View Public Profile |
Send a private message to Vis |
Visit Vis's homepage! |
Find More Posts by Vis |
Add Vis to Your Buddy List |
11-01-09, 06:52 PM | ||
|
Guild Chat Posts
Auto Deposit Evade Pay Debt These where not set in options as a request to a few guild masters that originally requested those options. Im still considering having options to disable but enable by default. All in time i suppose.
__________________
|
|
|
Drshow |
View Public Profile |
Send a private message to Drshow |
Visit Drshow's homepage! |
Find More Posts by Drshow |
Add Drshow to Your Buddy List |
11-04-09, 11:19 PM | |
|
Minor Logic Problem in GName()
Hey, found a minor logic problem in GName() in 5.3.0 that causes the miniframe to sometimes not display guild name and tax rate. Basically you were missing an else declaration, here's the updated code:
Code:
function GName() local guildName = GetGuildInfo("player"); if (not guildName) then guildName = ("Guild"); elseif strlen(guildName) > 12 then theguild:SetFont("Fonts\\FRIZQT__.TTF", 12, "OUTLINE"); theguild:SetText("" .. guildName .. " Tax"); else nameofguild:SetFont("Fonts\\FRIZQT__.TTF", 10, "OUTLINE"); nameofguild:SetText("" .. guildName .. " Tax @ " .. gtax_amount .. "\%"); end end |
|
aktlingit |
View Public Profile |
Send a private message to aktlingit |
Visit aktlingit's homepage! |
Find More Posts by aktlingit |
Add aktlingit to Your Buddy List |
11-05-09, 11:00 AM | |||
|
Re: Minor Logic Problem in GName()
from VWD express to Notepad ++ i lost most of my formating due to an error when i was writing with VWD express, it started one day inserting formating marks that caused errors in SVN. I started then using Notepad++ and lost alot of formatting, i tend to use tabs for indents but for sure as i get time i will streamline the project code. But for now in the words of Bill Gates "quick and dirty".
__________________
Last edited by Drshow : 11-05-09 at 11:21 AM.
|
||
|
Drshow |
View Public Profile |
Send a private message to Drshow |
Visit Drshow's homepage! |
Find More Posts by Drshow |
Add Drshow to Your Buddy List |
11-05-09, 11:19 AM | ||
|
Re: Minor Logic Problem in GName()
are 2 sperate fontstrings that are called when a guild name is greater than 12 characters, and if notGuildName, then it sets the text to "Guild" adding the logical else will not fix the problem your stating, instead it will only update one fontstring, and only if The use is in guild. The problem is that not all functions ie slash or onload call to this function. Once the minimap button is clicked or gload engaged then the Name of the guild is called if is in guild. This is not so much an error as it is a waiting for format, you should also notice on new toons or fresh installs the 0's are not called in the tax info frame, this also gets its format on first use. The issue you are describing would be fixed by an onload event, but i seem to be having random issues calling GName in OnLoad, when its first loaded. ... Formating guild name if exists and what to do if not. Code:
-- onload event function GuildTaxFrame_OnLoad() SetGuildTaxRate(); GName(); GuildTaxFrame:RegisterEvent("CHAT_MSG_MONEY"); GuildTaxFrame:RegisterEvent("ADDON_LOADED"); GuildTaxFrame:RegisterEvent("GUILDBANKFRAME_OPENED"); GuildTaxFrame:RegisterEvent("CHAT_MSG_SYSTEM"); GuildTaxFrame:RegisterEvent("CHAT_MSG_WHISPER"); GuildTaxFrame:RegisterEvent("PARTY_MEMBERS_CHANGED"); GuildTaxFrame:RegisterEvent("RAID_ROSTER_UPDATE"); GuildTaxFrame:RegisterEvent("GUILD_ROSTER_UPDATE"); GuildTaxFrame:RegisterEvent("MAIL_CLOSED"); GuildTaxFrame:RegisterEvent("MAIL_SHOW"); GuildTaxFrame:RegisterEvent("MERCHANT_CLOSED"); GuildTaxFrame:RegisterEvent("MERCHANT_SHOW"); SLASH_GUILDTAX1 = "/guildtax" SlashCmdList["GUILDTAX"] = function(msg) GuildTax_SlashCmdHandler(msg) end end -- calls a guildname for tax and options frame. function GName() local guildName = GetGuildInfo("player"); if (not guildName) then guildName = ("Guild"); theguild:SetFont("Fonts\\FRIZQT__.TTF", 12, "OUTLINE"); theguild:SetText("" .. guildName .. " Tax"); nameofguild:SetFont("Fonts\\FRIZQT__.TTF", 10, "OUTLINE"); nameofguild:SetText("" .. guildName .. " Tax @ " .. gtax_amount .. "\%"); elseif strlen(guildName) > 12 then theguild:SetFont("Fonts\\FRIZQT__.TTF", 12, "OUTLINE"); theguild:SetText("" .. guildName .. " Tax"); nameofguild:SetFont("Fonts\\FRIZQT__.TTF", 10, "OUTLINE"); nameofguild:SetText("" .. guildName .. " Tax @ " .. gtax_amount .. "\%"); end end If is in guild and has called GName then GuildName Tax @ ??% is shown and formated here If is not in guild or GName has not been called then Guild Tax @ ??% is shown and formated in xml template.
__________________
Last edited by Drshow : 11-05-09 at 12:14 PM.
|
|
|
Drshow |
View Public Profile |
Send a private message to Drshow |
Visit Drshow's homepage! |
Find More Posts by Drshow |
Add Drshow to Your Buddy List |
11-05-09, 12:23 PM | |
|
71 lines retabbed in lua
lol that sucked but the lua is retabbed with indents, will work on xml later n upload tomorrow. It seems the xml is gonna be about 1200 lines to retab, its a shame i cant "Replaces Spaces with tabs lol" would be so much faster.
__________________
Last edited by Drshow : 11-05-09 at 12:24 PM.
|
|
Drshow |
View Public Profile |
Send a private message to Drshow |
Visit Drshow's homepage! |
Find More Posts by Drshow |
Add Drshow to Your Buddy List |
11-05-09, 12:29 PM | |
|
OMG learned something new today
Today i learned
__________________
|
|
Drshow |
View Public Profile |
Send a private message to Drshow |
Visit Drshow's homepage! |
Find More Posts by Drshow |
Add Drshow to Your Buddy List |
11-05-09, 01:45 PM | |
|
Doh!
You are correct sir! I overlooked the object names you were calling the SetText and SetFont methods on lmao. In my defense, my change made my guild tax rate show up consistently though :P
Thanks for reformatting - I was gonna let you know about various editors that can replace spaces/tabs cleanly but you got it. Thanks for all the work. |
|
aktlingit |
View Public Profile |
Send a private message to aktlingit |
Visit aktlingit's homepage! |
Find More Posts by aktlingit |
Add aktlingit to Your Buddy List |
11-05-09, 02:00 PM | ||
|
Re: Doh!
i only know of it not showing, on a new install, on a new toon. Either way i think i have writen the fix. im calling for the guildname of the user in the onload "in green", rather than calling for the function during onload "in red". Code:
function GuildTaxFrame_OnLoad() SetGuildTaxRate(); --GName(); --try to call Guild Name and set its value on an onload event local guildName = GetGuildInfo("player"); if (not guildName) then guildName = ("Guild"); end GuildTaxFrame:RegisterEvent("CHAT_MSG_MONEY"); GuildTaxFrame:RegisterEvent("ADDON_LOADED"); GuildTaxFrame:RegisterEvent("GUILDBANKFRAME_OPENED"); GuildTaxFrame:RegisterEvent("CHAT_MSG_SYSTEM"); GuildTaxFrame:RegisterEvent("CHAT_MSG_WHISPER"); GuildTaxFrame:RegisterEvent("PARTY_MEMBERS_CHANGED"); GuildTaxFrame:RegisterEvent("RAID_ROSTER_UPDATE"); GuildTaxFrame:RegisterEvent("GUILD_ROSTER_UPDATE"); GuildTaxFrame:RegisterEvent("MAIL_CLOSED"); GuildTaxFrame:RegisterEvent("MAIL_SHOW"); GuildTaxFrame:RegisterEvent("MERCHANT_CLOSED"); GuildTaxFrame:RegisterEvent("MERCHANT_SHOW"); SLASH_GUILDTAX1 = "/guildtax" SlashCmdList["GUILDTAX"] = function(msg) GuildTax_SlashCmdHandler(msg) end end Ill set this to be released this weekend.
__________________
|
|
|
Drshow |
View Public Profile |
Send a private message to Drshow |
Visit Drshow's homepage! |
Find More Posts by Drshow |
Add Drshow to Your Buddy List |
11-06-09, 10:04 AM | |
|
OK still have the bugg
BUG = When user is installing addon new, using for the first time, or has removed data tables the guild name if is in guild still does not translate but is stored in table correctly.
__________________
|
|
Drshow |
View Public Profile |
Send a private message to Drshow |
Visit Drshow's homepage! |
Find More Posts by Drshow |
Add Drshow to Your Buddy List |