- Registered User
Member for 12 years and 15 days
Last active Thu, Jun, 28 2018 09:32:57
- 0 Followers
- 133 Total Posts
- 0 Thanks
Dec 18, 2010Well 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
Dec 18, 2010Hmmm. Well i don't know why, but that doesn't work, i tried messing around with it and i just got error's.Posted in: Lua Code Discussion
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.
Dec 12, 2010This is my .luaPosted in: Lua Code Discussion
-- 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.
Dec 12, 2010Ok, 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
Dec 12, 2010Ok, i just realized i would want it to show when either or are up, and hide only when both are applied to.Posted in: Lua Code Discussion
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...
Dec 12, 2010I tried being simple, and having it identify the event, but it didn't work:Posted in: Lua Code Discussion
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
Dec 12, 2010I just got back from a long vacation, and am trying to do something with rogue poison's.Posted in: Lua Code Discussion
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.
Nov 18, 2010http://pastebin.com/h6x0twtcPosted in: Addon Ideas
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.
Nov 18, 2010Ok, so in my attempt to create the whole thing i am now running into error after error.Posted in: Addon Ideas
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?
Nov 17, 2010Diablo 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.Posted in: Lua Code Discussion
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.
Nov 16, 2010Also, WoW say's that the AddOn is "Out Of Date" How do i fix that?..Posted in: Lua Code Discussion
And how would i put a description/information for it?
This is my .toc:
## Author: wwwDot
## Interface: 400300
## Title: Easy Control
## Version: 1.0
- To post a comment, please login or register a new account.