|
Sat, Apr 25 2009 6:47 AM
|
|
|
i cant install the addon studio thing because my .net framework is fed up >.< which means i cant install c++
so i decided to hand code it but all the tutorials are out of date and i cant find one tutorial anywhere that works for say hellworld and small extras to get me started
anyhelp would be great thanks
|
|
|
|
|
Sat, Apr 25 2009 5:05 PM
|
|
|
http://www.wowwiki.com/Portal:Interface_customization
http://wowprogramming.com
http://www.amazon.com/World-Warcraft-Programming-Reference-Creating/dp/0470229810/ref=sr_1_1?ie=UTF8&s=books&qid=1240697007&sr=1-1
http://forums.wowace.com/index.php
Project Lead for SmartRes and MrBigglesworthDeath. SmartRes2 coming soon!
|
|
|
|
|
Sat, Apr 25 2009 6:02 PM
|
|
|
tyvm ill look into those links :)
|
|
|
|
|
Sat, Apr 25 2009 11:40 PM
|
|
|
If the amazon.com link doesn't work, then try this: it's a book called World of Warcraft Programming, by James Whitehead II and Matthew Orlando. I have it, and it has been beyond amazing in teaching me how to code addons. Without it, I'd be lost.
Project Lead for SmartRes and MrBigglesworthDeath. SmartRes2 coming soon!
|
|
|
|
|
Sun, Apr 26 2009 4:14 PM
|
|
|
i read some stuff and started making an addon, ive used some lua before so i knew some stuff but it doesnt work (QQ) my guess is that im using the wrong command (im using message)
i used WoW Ui Designer to make the .xml which helped ALOT but
heres a download link for it: www.outscape.org/wowadd/APF.rar
what its ment to do is show all the persons starts in the black boxes under the title, and in the form1 it simulates a battle finding out average damage with real crit chances.
since it didnt work i tried another way of printing the text but that failed to
[edited by: headchopperz at 11:07 AM (GMT -6) on 27 Apr 2009]
|
|
|
|
|
Sun, Apr 26 2009 6:14 PM
|
|
|
TOC:
## Interface: 30100 ## Title: Attack Power Finder ## Author: Head ## Version: 1 ## Notes: Finds out the Attack Power of a player and Average Hit, and generates a simulation of a battle. ## eMail: N/A ## URL: N/A ## DefaultState: Enabled ## LoadOnDemand: 0 ## SavedVariables: ATP,StrAP,AgilAP,AverageDamage,CRT,avgttldam,hits,damage AttackPowerFinderForm.xml AttackPowerFinder.lua AttackPowerFinderForm1.xml
LUA:
function SAPFIND() local AP = StatLogic:GetAPFromStr(10, StatLogic:PlayerClass) StrAP = AP message(AP); end
function AAPFIND() local AP = StatLogic:GetAPFromAgi(10, StatLogic:PlayerClass) AgilAP = AP message(AP); end
function AFIND() ATP = AgilAP + StrAP message(ATP); end
function BAFind() local AP = StatLogic:GetAP(10, StatLogic:PlayerClass) - ATP message(AP); end
function WEPSpeed() local AP = StatLogic:GetWeaponSpeed(1) -- i know this isnt that its called :3 message(AP); end
function WepAvgDam() local AP1 = StatLogic:GetWeaponDamageMin(1) + StatLogic:GetWeaponDamageMax(1) -- i know this isnt that its called :3 AverageDamage = AP1 / 2 message(AverageDamage); end
function CritFind() CRT = StatLogic::GetCritFromAgi(10) message(CRT); end
function averagetotal() message(avgttldam); end
function totledps() local dps = avgttldam / hits message(dps); end
function FNDDPS1() hits = 1 local re = 1 local dama = 0 avgttldam = 0 repeat local dama = hit(); avgttldam = dama + avgttldam local re = re + 1 until re == hits end
end
function FNDDPS5() hits = 5 local re = 1 local dama = 0 avgttldam = 0 repeat local dama = hit(); avgttldam = dama + avgttldam local re = re + 1 until re == hits end
function FNDDPS10() hits = 10 local re = 1 local dama = 0 avgttldam = 0 repeat local dama = hit(); avgttldam = dama + avgttldam local re = re + 1 until re == hits end
function FNDDPS30() hits = 30 local re = 1 local dama = 0 avgttldam = 0 repeat local dama = hit(); avgttldam = dama + avgttldam local re = re + 1 until re == hits end
function FNDDPS50() hits = 50 local re = 1 local dama = 0 avgttldam = 0 repeat local dama = hit(); avgttldam = dama + avgttldam local re = re + 1 until re == hits end
function FNDDPS100() hits = 100 local re = 1 local dama = 0 avgttldam = 0 repeat local dama = hit(); avgttldam = dama + avgttldam local re = re + 1 until re == hits end
function hit() local didicrit = math.random(1,100) if didicrit= damage = AverageDamage*2 elseif didicrit>CRT then damage = AverageDamage end end damage
function TotalDPS() local totaldps1 = hits * WepSpeed local totaldps = avgttldam / totaldps1 end
[edited by: headchopperz at 6:18 PM (GMT -6) on 26 Apr 2009]
|
|
|
|
|
Sun, Apr 26 2009 8:35 PM
|
|
|
If you are meaning to print the info to the Chat Log, message() is not the function to call
Try using
DEFAULT_CHAT_FRAME:AddMessage("MESSAGE GOES HERE");
for instance...
function WEPSpeed() local AP = StatLogic:GetWeaponSpeed(1) -- i know this isnt that its called :3 message(AP); end
should be
function WEPSpeed() local AP = StatLogic:GetWeaponSpeed(1) -- i know this isnt that its called :3 DEFAULT_CHAT_FRAME:AddMessage(AP); end
[edited by: Nedlinin at 8:37 PM (GMT -6) on 26 Apr 2009]
|
|
|
|
|
Mon, Apr 27 2009 10:28 AM
|
|
|
no its ment to place the text in the boxes made in the .xml
eg
i got this small little box in the xml and when it loads or shows it reloads info from the attributes and i want the text to appear where the boxes are (in the boxes) but i dont know how
if you download / run wow with the addon you can see what i mean
|
|
|
|
|
Mon, Apr 27 2009 10:54 AM
|
|
|
incase you dont plan on installing i made an image of it of what it is
and what i want it to be
on the left is the complex version, on the right is the compact version
http://www.outscape.org/wowadd/Halp.jpg
the top set is what it is
the bottem set is what i want it to look like
its a pseudo group of numbers just to show you what it looks like, those arnt real attribute numbers.
where i have placed numbers there are actually labels there, but i dont know how to change the labels text to the attribute numbers etc
i tried using a tutorial that said but it didnt seem to work

[edited by: headchopperz at 10:57 AM (GMT -6) on 27 Apr 2009]
|
|
|
|
|
Mon, Apr 27 2009 1:19 PM
|
|
|
Ah I see what you mean - Unfortunately, I have never coded an addon with a UI before.. anything Ive made is generally something just run in the background :(
I would highly recommended posting about this in the World of Warcraft UI and Macros forum here - They generally respond within 24 hours and likely with an answer that will help you out (whether it be the code required itself or a guide to point you in the right direction)
Good luck!
|
|
|
|