• 0

    posted a message on Add on for helping Enhance shammy
    i didnt say it was an easy one.
    Posted in: Addon Ideas
  • 0

    posted a message on Add on for helping Enhance shammy
    I play my shammy different to any other I've seen in a raid.

    I don't use wolfs or shamaistic rage or fire elemental untill I'm about to use herorism. Shamanistic rage only gets used when i need mana quickly to continue a fight. Trash and boss fights it seems to work as I'm pushing top 5 on total damage and dps.

    You are right about what I#d like it to do.

    display on screen +1000 AP with the trinkets I know thats mirror popped... lets me also see just how many times it does proc.

    Don't need to see when I'm missing SoE totem, always down even with DK in raid.

    3 yea would be nice to see what my highest ever AP was during a fight. and what highest unbuffed AP is.

    At the moment 3601 unbuffed 8700+ buffed

    So it's not something most people will want, but it is something I'd like to know and have. hence I'm learning how to make it.
    Posted in: Addon Ideas
  • 0

    posted a message on Add on for helping Enhance shammy
    ok just to clarify this.

    My main is a shammy, enhancement spec. AP is something we value very highly without it we don't do a lot of damage.

    The only addon I've found that on screen shows you your attack power (but without any of the extra things I'd like) is http://www.wowinterface.com/downloads/info10230-TektonicAttackPower.html this one.

    I've got scrolling combat text installed, but can in no way get it to show an increase to this as an event (ive tryed a few things) Looked through curse for a buff to advise of this again nothing showed up without downloading every buff addon and manually testing it.

    yea you are right about hitting c, so what pressing c still doesn't let me know at a quick glance how my Ap has been hadded when casting "strenght of earth totem" without going and figuring it out. or if the buffs you got in raid last night someone used a different spell on you to get hight amount.

    but then why have it. when pressing c gives you the total in the end.
    Posted in: Addon Ideas
  • 0

    posted a message on Add on for helping Enhance shammy
    Ok I've an Idea for an addon to help me out when I'm in a raid/party to quickly see attack power and see when my trinkets/enchants have cast.

    Now most of you will think just hit c, well in a Ulduar raid this isn't practical.

    The Idea for this is just a little bit more than displaying the AP points.

    Generally:
    1 - display AP with colour grading for the amount you have
    2 - log beneficial spells and the amounts it increases your AP (could also log agility)
    3 - Logs standard AP, raid buffed max and max attackpower during fights (like critline to a degree)
    4 - shouts to your screen when new max reached.

    I've looked about for attack power addons and there aren't many stand alone unless they are part of something bigger and of no use to my shaman.

    What do you think?
    Posted in: Addon Ideas
  • 0

    posted a message on HI, Maybe someone can help with this
    Ok I've done a little rethink of this and started code from scratch. think I have it a lot simpler and hopefully not to far away from getting the first output from showng on screen.

    I've noticed something, the output for when add on loads isn't showing at all. and I do have an error on screen (finally)

    Error
    [string "APLiveframe:OnUpdate"]:1:atempt
    to call global 'APLive_OnUpdate' (a nil value)



    .lua file
    -- Attack power counting addon
    
    -- Some variables need for our AP Live Window.
    local base, posBuff, negBuff = UnitAttackPower("player");
    local effective = base + posBuff + negBuff;
    
    -- When addon loads
    function APLive_OnLoad(self)
    			this:RegisterEvent("UNIT_ATTACK_POWER");
    			this:RegisterEvent("PLAYER_LOGIN");
    			this:RegisterEvent("ADDON_LOADED");
    end
    
    function APLive_OnEvent(self, event, ...)
    	if ( event == "ADDON_LOADED" ) then
    			DEFAULT_CHAT_FRAME:AddMessage("AP Live 0.1 Loaded");
    		return;
    	end
    end
    
    function APLive_OnEvent(self, event, ...)
    	if ( event == "PLAYER_LOGIN" ) then
    		APLiveText:SetText("Attack Power: "..effective);
    	return;
    end
    


    .xml file
    <Ui>
    <Frame name="APLiveFrame" parent="UIParent" movable="true">
    		<Size x="180" y="30"/>
    		<Anchors>
    			<Anchor point="CENTER"/>
    		</Anchors>
    	<Backdrop name="APLiveBackdrop" bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
    		<BackgroundInsets>
    			<AbsInset left="4" right="4" top="4" bottom="4"/>
    		</BackgroundInsets>
    		<TileSize>
    			<AbsValue val="16"/>
    		</TileSize>
    		<EdgeSize>
    			<AbsValue val="16"/>
    		</EdgeSize>
    	</Backdrop>		
    		<Layers>
    			<Layer level="BACKGROUND">
    				<FontString name="APLiveText" font="GameFontNormalLarge">
    					<Color r="1" g="1" b="0" a="1" />
    				<Anchors>
    					<Anchor point="LEFT">
    						<Offset>
    							<AbsDimension x="7" y="0"/>
    						</Offset>
    					</Anchor>
    				</Anchors>
    				</FontString>
    			</Layer>
    		</Layers>
    	<Scripts>
    		<OnLoad>
    			APLive_OnLoad(self);
    		</OnLoad>
    		<OnEvent>
    			APLive_OnEvent(self, event, ...);
    		</OnEvent>
    		<OnUpdate>
    			APLive_OnUpdate(self, elapsed);
    		</OnUpdate>
    		<OnMouseDown>
    			self:StartMoving();
    		</OnMouseDown>
    		<OnMouseUp>
    			self:StopMovingOrSizing();
    		</OnMouseUp>
    	</Scripts>
    </Frame>
    </Ui>
    Posted in: AddOn HELP!
  • 0

    posted a message on HI, Maybe someone can help with this
    I don't have any errors on screen when i load it. Not got bugsack.

    1Text doesn't load on to the chat window
    2Will look for the right api code for this
    3will update the code see what it does
    4I was using the blizzard "showmethemoney" tutorial to see if I could re-organise it for this as a test bed.
    5cheers for spotting.

    I think this cod might be a long way for what I want to get working on here.

    Simply a output of a players attack power inside a small frame. But using a xml file and lua file as I want to expand it to include a few other things I have in mind.
    Posted in: AddOn HELP!
  • 0

    posted a message on HI, Maybe someone can help with this
    First off just learning how to do addons, got the wow book and read most of it but I find messing with code better to learn what to do.

    I thought I'd start with taking the blizzard "showme the money" tutorial to see if I could get it to call what i needed. I've changed all of the code to what I think it needs. but nothing is showing on screen. Have I missed something?

    I thank you all for taking hte time to have a look and maybe point out what I've missed here.

    <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">
    <Frame name="AP_LiveFrame" toplevel="true" parent="UIParent" movable="true" hidden="false">
    	<Size x="148" y="30"/>
    	<Anchors>
    		<Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="BOTTOMLEFT">
    			<Offset x="-3" y="-10"/>
    		</Anchor>
    	</Anchors>
    	<Frames>
    		<Frame name="AP_Live" setAllPoints="true" hidden="true">
    			<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
    				<EdgeSize>
    					<AbsValue val="16"/>
    				</EdgeSize>
    				<TileSize>
    					<AbsValue val="16"/>
    				</TileSize>
    				<BackgroundInsets>
    					<AbsInset left="5" right="5" top="5" bottom="5"/>
    				</BackgroundInsets>
    			</Backdrop>
    			<Frames>
    				<Frame name="$parentAttackFrame" inherits="SmallAttackFrameTemplate" hidden="false">
    					<Size x="0" y="30"/>
    					<Anchors>
    						<Anchor point="TOPRIGHT"/>
    					</Anchors>
    					<Scripts>
    						<OnLoad>
    							self.staticPower = 0;
    							AttackFrame_SetType(self, "STATIC");
    						</OnLoad>
    					</Scripts>
    				</Frame>
    			</Frames>
    			<Scripts>
    				<OnLoad>
    					AP_Live_OnLoad(self);
    				</OnLoad>
    				<OnEvent>
    					AP_Live_OnEvent(self, event, ...);
    				</OnEvent>
    				<OnUpdate>
    					AP_Live_OnUpdate(self, elapsed);
    				</OnUpdate>
    			</Scripts>
    		</Frame>
    	</Frames>
    	<Scripts>
    		<OnEnter>
    			UIFrameFadeRemoveFrame(AP_Live);
    			UIFrameFlashRemoveFrame(SAP_Live);
    			UIFrameFadeIn(AP_Live, 0.1);
    		</OnEnter>
    		<OnLeave>
    			UIFrameFadeRemoveFrame(AP_Live);
    			UIFrameFlashRemoveFrame(AP_Live);
    			UIFrameFadeOut(AP_Live, 0.25);
    		</OnLeave>
    		<OnMouseDown>
    			self:StartMoving();
    		</OnMouseDown>
    		<OnMouseUp>
    			self:StopMovingOrSizing();
    		</OnMouseUp>
    	</Scripts>
    </Frame>
    </Ui>


    -- Attack power counting addon
    
    -- Some variables need for our AP Live Window.
    ATTACKPOWER_POWER = 0;
    ATTACKPOWER_STARTPOWER = 0;
    
    -- When addon loads
    function AP_Live_OnLoad(self)
    	-- Set the color of our backdrop.
    	self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
    	self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
    	-- Register the game events neccesary for our functionality
    	self:RegisterEvent("ADDON_LOADED");	.
    	self:RegisterEvent("PLAYER_ENTERING_WORLD");	
    	self:RegisterEvent("PLAYER_POWER");		.
    end
    
    
    function AP_Live_OnEvent(self, event, ...)
    	
    	if ( event == "ADDON_LOADED" ) then
    		local addon = select(1, ...);
    		if ( addon == "Ap_Live" ) then
    			DEFAULT_CHAT_FRAME:AddMessage("AP Live 0.1 Loaded");
    			AttackFrame_Update("AP_LiveAttackFrame", ATTACKPOWER_POWER);
    		end
    		return;
    	end
    	
    	if ( event == "PLAYER_ENTERING_WORLD" ) then
    		 ATTACKPOWER_STARTPOWER = UnitAttackPower("Player");
    		return;
    	end
    		
    	if ( event == "PLAYER_POWER" ) then
    		
    		local power = UnitAttackPower("player");
    		if ( power > ATTACKPOWER_STARTPOWER ) then
    			local increase = (power - SATTACKPOWER_STARTPOWER);
    
    			-- Update the saved variable.
    			ATTACKPOWER_POWER = ATTACKPOWER_POWER + increase;
    			
    			-- When our event fires, we update the value in our frame and fade it out.
    			MoneyFrame_Update("AP_LiveAttackFrame", ATTACKPOWER_POWER);
    			if ( not MouseIsOver(self) ) then
    				UIFrameFadeRemoveFrame(self);
    				UIFrameFlashRemoveFrame(self);
    				UIFrameFlash(self, 0.1, 0.5, 2, false, 0, 1.4);
    			end
    		end
    
    		-- Set the variable "power" for the next event.
    		ATTACKPOWER_STARTPOWER = power;
    		return;
    	end
    end
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.