• 0

    posted a message on A rogue 'beginner' AddOn
    Well i didn't post the error's because i wanted to try to do something lol. I got rid of the error's and made the frame visible, I tried creating the main and off hand each have their own function to see if that would fix it, but it didn't change anything. I will post the code a little bit later, i want to try a little bit more.
    Posted in: Lua Code Discussion
  • 0

    posted a message on A rogue 'beginner' AddOn
    Hmmm. Well i don't know why, but that doesn't work, i tried messing around with it and i just got error's.

    The code above doesn't change the problem i was having before, the notification is always there, no matter to situation.

    I am trying a few things with my .xml to see if that will fix it, since i changed that also. I didn't know how to create, just text, so i created a frame, and a FrontString, and made the frame 'invisible', but allowed to FontString to still be seen. And i am going to see if that is the problem.
    Posted in: Lua Code Discussion
  • 0

    posted a message on A rogue 'beginner' AddOn
    Oh wow. I was totally off. Didn't think it was like that. Well thank you both for the info, i appreciate it a lot.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Addons tab missing from Wowace/CurseForge Home?
    I only see "Overview" | "Tickets" | "Private Messages"
    Posted in: General Chat
  • 0

    posted a message on A rogue 'beginner' AddOn
    This is my .lua

    -- Author      : wwwDot
    -- Create Date : 11/14/2010 5:05:10 PM
    
    --function OutsideFrame(self)
    --	self:RegisterEvent("hasMainHandEnchant")	
    --	self:RegisterEvent("hasOffHandEnchant")
    --end
    
    function OutsideFrame_OnLoad(self)
    	-- if hasMainHandEnchant and  OffHandHasWeapon and hasOffHandEnchant then
    	if UnitBuff("unit", "Poison") then
    		self:Hide()
    	else
    		self:Show()
    	end
    end


    This is my .xml:

    <Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    xmlns="http://www.blizzard.com/wow/ui/">
    	<Script file="EasyControl.lua" />
    	<Frame name="OutsideFrame" parent="UIParent" toplevel="true" movable="false" enableMouse="false">
    		<Size>
    			<AbsDimension x="2" y="1" />
    		</Size>
    		<Anchors>
    			<Anchor point="CENTER">
    				<Offset x="2" y="1" />
    			</Anchor>
    		</Anchors>
    		<TitleRegion setAllPoints="true">
    			<Size>
    				<AbsDimension x="2" y="1" />
    			</Size>
    			<Anchors>
    				<Anchor point="TOPLEFT" />
    				<Anchor point="TOPRIGHT" />
    			</Anchors>
    		</TitleRegion>
    		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
    			<BackgroundInsets>
    				<AbsInset left="2" right="1" top="2" bottom="2" />
    			</BackgroundInsets>
    			<TileSize>
    				<AbsValue val="2" />
    			</TileSize>
    			<EdgeSize>
    				<AbsValue val="1" />
    			</EdgeSize>
    			<Color r="2" g="0.4" b="0.1" />
    			<BorderColor r="1.5" g="0.2" b="0.4" />
    		</Backdrop>
    
    		<Layers>
    			<Layer level="OVERLAY">
    				<FontString name="NoPoisions" inherits="GameFontNormal" text="You currently have one or more weapons equipped without your poision enchant.">
    					<Size>
    						<AbsDimension x="1000" y="10" />
    					</Size>
    					<Anchors>
    						<Anchor point="TOPLEFT">
    							<Offset x="-495" y="200" />
    						</Anchor>
    					</Anchors>
    				</FontString>
    			</Layer>
    		</Layers>
    
    		<Scripts>
    			<OnLoad>OutsideFrame_OnLoad(self)</OnLoad>
    		</Scripts>
    	</Frame>
    
    
    </Ui>


    The .xml is just for the notification to show in the middle of the screen, which it does, but is always shown, no matter if there is a weapon equipped, or poison's applied to 1 or both weapons.
    Posted in: Lua Code Discussion
  • 0

    posted a message on A rogue 'beginner' AddOn
    Can anyone help me please?
    Posted in: Lua Code Discussion
  • 0

    posted a message on A rogue 'beginner' AddOn
    Ok, so now ive gotten it just to show text, which i wanted, but now i need to figure out how to identify when the poison is and is not applied, i can basically rule out the event theory, and i was thinking about using this: http://wowprogramming.com/docs/api/UnitBuff But before i go down that road, i would like to know if this would be the correct path.
    Posted in: Lua Code Discussion
  • 0

    posted a message on A rogue 'beginner' AddOn
    Ok, i just realized i would want it to show when either or are up, and hide only when both are applied to.

    So this is what i have:

    function OutsideFrame(self)
    	self:RegisterEvent("hasMainHandEnchant")	
    	self:RegisterEvent("hasOffHandEnchant")
    end
    
    function OutsideFrame_OnEvent(self, event)
    	if event == "hasMainHandEnchant" and "hasOffHandEnchant" then
    		self:Hide()
    	else
    		self:Show()
    	end
    end


    It now shows my frame, but always does...
    Posted in: Lua Code Discussion
  • 0

    posted a message on A rogue 'beginner' AddOn
    I tried being simple, and having it identify the event, but it didn't work:

    function OutsideFrame(self)
    	self:RegisterEvent("hasMainHandEnchant")	
    	self:RegisterEvent("hasOffHandEnchant")
    end
    
    function OutsideFrame_OnEvent(self, event)
    	if event == "hasMainHandEnchant" then
    		self:Hide()
    	else
    	if event == "hasOffHandEnchant" then
    		self:Hide()
    	else
    		self:Show()
    	end
    
    end
    Posted in: Lua Code Discussion
  • 0

    posted a message on A rogue 'beginner' AddOn
    I just got back from a long vacation, and am trying to do something with rogue poison's.

    Now, i don't know how they register. I think you use hasMainHandEnchant hasOffHandEnchant to see your weapon's have temporary enchant's (posion's).

    But i don't know if that would be an "event" or not, and i would go about getting the AddOn to identify when you do or don't have them applied, and to only take action when you don't.

    So any beginning help would be very much appreciated.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Help with my first
    http://pastebin.com/h6x0twtc

    Its only making the frame, and giving a ton of error's. Dont have time to go into depth right now :/

    Its giving error's about the SetText and SetSize for the button's, says <unamed> before it or something like that.
    Posted in: Addon Ideas
  • 0

    posted a message on Help with my first
    @Phanx,

    I used the UnitExists calls so that if there was no target, it would tell you there was no target..

    @Phanx && Dridzt,

    Thanks for the info.
    Posted in: Addon Ideas
  • 0

    posted a message on Help with my first
    Ok, so in my attempt to create the whole thing i am now running into error after error.

    http://pastebin.com/vekHjNkX

    The blizzard 'bug finder' say's its on line 30, and says attempt to call method 'CreateFrame' (value is nil) plus some other things. Can anyone help?
    Posted in: Addon Ideas
  • 0

    posted a message on Detecting if you are in a party
    Diablo 2 is a 10 year old game barely watched by blizzard, and I stumbled upon the bot about 5 months ago when I was bored which got me into writing code. So really D2NT was my teacher and I was the student. And got me into liking this stuff. Besides, wow is watched so hardcore with security any bot would get banned. Actually, I know of one that has been.

    And i understand the interface/version thing now, thanks, but how do i write the info for it, when turning AddOn's on or off, when you mouse over.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Detecting if you are in a party
    Also, WoW say's that the AddOn is "Out Of Date" How do i fix that?..

    And how would i put a description/information for it?

    This is my .toc:


    ## Author: wwwDot
    ## Interface: 400300
    ## Title: Easy Control
    ## Version: 1.0
    EasyControl.xml
    Easycontrol.lua
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.