Unofficial World of Warcraft Forums  
Please respect other members. Please do not post links or information about hacking/warez/cheats.
Read the rules of these forums as we rarely warn before banning. Lost or need RSS check the forum map.

Quick Site Nav
Navigation
Worldofwar.Net
WoW Forums
WoWDigger WoW Database
Articles
Community Blogs
WoW Info
Wrath of the Lich King Info
Primary Professions
Secondary Professions
Maps
Classes
PvP
A-Z Index
Guides
Submit Guides
List Guides
UI/Mods
Latest Mods
Submit Mod
List Macros
Submit Macro
Media Gallery
Gallery Home
Upload Pics
Community WoW Shots
Community BC Shots
Player Pics
Official WoW Shots
Official BC Shots


Donate and get extra forum perks
Support WoW:IncGamers

Go Back   Unofficial World of Warcraft Forums > WoW Community Forums > UI Customisation > UI/Mod Developer Forum

Reply
 
Thread Tools Display Modes
Old 14-01-2006, 08:33 PM   #1
Fenyx
WorldofWar.Net Member
 
Join Date: Sep 2005
Location: Iowa
Posts: 1
Energy costs

I was hoping someone had written a function that would return the energy cost values of rogue abilities (or all spells including rogue abilities).

I'm hoping for an interface similar to : SpellCostByName("Sinister Strike")

This would return a variable number depending on how many talent points you have in sinister strike. Other things would also have to be considered like eviscerate and the madcap set, etc.

If there isn't one then is there a good way to check if someone is getting a set bonus?

Thanks.

- Fenyx
Fenyx is offline   Reply With Quote
Old 27-05-2006, 06:15 PM   #2
freeri
WorldofWar.Net Member
 
Join Date: Oct 2005
Location: Norway
Posts: 47
You can make a function by your self, just make an array with all the skills and the energy cost.

Example:

local EnergyCost = { };

EnergyCost["Sinister Strike"] = 40;
EnergyCost["Eviscorate"] = 35;
EnergyCost["Backstab"] = 60;

etc.

I don't know the Energy values, but I guess you get my point.

Then you can either use

EnergyCost["Sinister Strike"]

Or you can make a function;


function SpellCostByName(arg1)

local cost;
cost = EnergyCost[arg1];
return cost;

end


Then you can use SpellCostByName("Sinister Strike") to get the energy cost.
freeri is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:52 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Advertisement System V2.5 By   Branden