PDA

View Full Version : Alex's Bonus Macro: Revered to Exalted for Arathi Basin


AlexanderYoshi
09-24-2005, 11:54 PM
/z name, description, standingID, barValue = GetFactionInfo(9);
SendChatMessage(string.format("%d games till exalted.",((1-barValue)/0.00681)));

This will tell you how many more wins there are to go in Arathi Basin from Revered to Exalted. If you're clever you can change this to work for any BG.

Danin
09-28-2005, 06:42 PM
How do i make this work? I am not familiar with this.

Thanks for your help!

AlexanderYoshi
09-28-2005, 06:49 PM
Take out the extra new line characters, and use Cosmos's Sky.

morbid_o
09-28-2005, 07:23 PM
crap, I saw the function earlier, but now I've lost it. what's a change to make it print into your chat window (like a system message) instead of printing to the /say channel?

EDIT: /z name, description, standingID, barValue = GetFactionInfo(9); DEFAULT_CHAT_FRAME:AddMessage(string.format("%d games till exalted.",((1-barValue)/0.00681)));

perhaps?

NiGHTsC
10-17-2005, 06:10 AM
GetFactionInfo(9);
Is this "9" equal AB Faction ?
How do I make this works with AV ?
Looking for some help ,Thanx so much .:D

edv
10-20-2005, 02:59 AM
Someone asked this on US UI forum also, but since I have the european version I can't post there. Anyway you can find out the correct number with this for example:

/script for i = 1, GetNumFactions(), 1 do name,_,_,_ = GetFactionInfo(i);DEFAULT_CHAT_FRAME:AddMessage(i .. name); end

Baris
12-30-2005, 03:50 AM
Can you make some macros for other alternatives please?
(i.e. Honored to Revered for Warsong, Neutral to Friendly for Alterac Valley, etc)

Thanks.

PleegWat
12-30-2005, 08:55 AM
Check in the reputation window for the current reputation points (currentrep below) and the needed reputation points for next rank (maxrep below)

Check how much points you get for winning a battleground (repperbg below)

Type the following command in your chat window:

/print (maxrep - currentrep)/repperbg

Can also be used for just about any other mathematics.

Baris
12-30-2005, 09:54 AM
/print doesn't work... o_o

KarlKFI
12-30-2005, 12:28 PM
/print x
is the Sky shortcut for:
/script DEFAULT_CHAT_FRAME:AddMessage(x)