PDA

View Full Version : Healthstones and sidebars


Anonymous
11-11-2004, 12:07 PM
Hi everybody,
I use Cosmos and i think it's a cool enhancement for WoW. I use Sidebars and second bar.
I would know if exist a mode to move automatically an Healthstone after creation on a prefixed slot on sidebar.
I can be lazy, but it's very useful for us warlocks move directly healthstones on sidebars.

I thanks everyone that can possibly help me. :)

PS: Bad English...but i can't do better for now :D

sarf
11-11-2004, 04:42 PM
It is possible, but not easy.

Now all you have to do is to convince someone to do it for you. :)

Sarf
---
Sir, you have tasted two whole worms; you have hissed all my mystery lectures and been caught fighting a liar in the quad; you will leave Oxford by the next town drain.

Wasqa
11-13-2004, 05:42 AM
Is there already existing Script/Function that can use an item by name? Something like UseItem(ItemName) ? If so it could be probably mapped to a key or a macro?

Wasqa
11-13-2004, 06:15 AM
Ok found it. It is not exactly what you asked, but even better :)

Create a macro:
/use Minor Healthstone

Place that macro on the desired quickbar. Click it if the healthstone in your inventory you will use it :)

Anonymous
11-14-2004, 08:47 AM
Ok found it. It is not exactly what you asked, but even better :)

Create a macro:
/use Minor Healthstone

Place that macro on the desired quickbar. Click it if the healthstone in your inventory you will use it :)

heh i wouldn't of thought of that, good thinking :D

i think i'll use this too ;p

Anonymous
11-16-2004, 06:15 AM
the crappy thing is you cant use the cooldown count addon to see how long until you can use your next stone/bandage/potion agian :(

its just an icon that says whatever macro title you gave it.

Wasqa
11-16-2004, 01:53 PM
the crappy thing is you cant use the cooldown count addon to see how long until you can use your next stone/bandage/potion agian :(

its just an icon that says whatever macro title you gave it.Atleast I do not have to drag the damn thing to the quickbar over and over again :) If you were a Warlock you would know What I'm talking about.

sarf
11-16-2004, 02:33 PM
Ahem.

A fix for this would be to add this code to the /use whatever macro:

BUTTONNAME should be the name of the button where the macro is located, so it's an ugly hack, but it should work.

DURATION is how long the cooldown is on the item

ENABLE should be 0 or 1. Try one then the other.

/script local obj = getglobal(BUTTONNAME:GetName().."Cooldown"); CooldownFrame_SetTimer(obj, DURATION, ENABLE);

Note:

The first sidebar is named SideBar, and its buttons are named SideBarButton1 to SideBarButton6.

The second sidebar is named SideBar2, and hence its buttons are named
SideBar2Button1 through SideBar2Button6.

Hope this helps!

Sarf
---
Self-sacrifice is always a virtue -- in other people.

Anonymous
11-16-2004, 07:51 PM
If you were a Warlock you would know What I'm talking about.

but i do know, i played a warlock to 40 :p

Neri
11-19-2004, 10:06 PM
A fix for this would be to add this code to the /use whatever macro:

/script local obj = getglobal(BUTTONNAME:GetName().."Cooldown"); CooldownFrame_SetTimer(obj, DURATION, ENABLE);


I'm a newbie :\ Where would I add the /use Healthstone line? Before or after your /script?

This programming stuff makes my head hurt!

sarf
11-19-2004, 10:49 PM
Erm... doesn't really matter whether it's before or after.

I think you should do it before though, since then the timer will be off in a positive direction (not that you, the player, will notice that, since it'd be a difference of a tenth of a second, if that, but...).

Sarf
---
Of course I still love you. Now stop whining and let me shoot you.

Anonymous
11-28-2004, 08:25 PM
forgive my programming ignorance but could you offer up the command to stick it on the main action bar (slot 12)?

I tried both mainbarbutton12 and actionbarbutton12 and neither worked.

sarf
11-28-2004, 08:58 PM
BUTTONNAME should in that case be ActionButton12

Sarf
---
"If Java had true garbage collection, most programs would delete themselves upon execution." - Robert Sewell

Anonymous
11-29-2004, 10:12 PM
Dumb Question..

Whenever I type

/use Minor Healthstone

in a macro or the commandline all I get is

Type '/help' for a listing of a few commands.


If /use a Cosmos Command? Do I need to get something?

sarf
11-29-2004, 11:38 PM
/use is a Cosmos command.

Sarf
---
I wasn't sleeping. I was testing the keyboard for drool resistance.

mshieh
11-29-2004, 11:58 PM
This is more of an aside than an answer:

I have a similar macro I use to get myself out of trouble. All it does is attempt to use every bit of healing that I have, in order. Some of the items are on different timers, so it's useful to mash a couple times if you're in trouble.

/use Lesser Healthstone
/use Healing Potion
/use Lesser Healing Potion
/use Minor Healing Potion
/use (some item that I got for a quest that heals 180 over 12 seconds)
etc.

Anonymous
12-02-2004, 09:13 PM
I get the following error w/ this code:

"String: Interface\FrameXML\Cooldown.lua
line: 3
Count: 2
Error: attempt to compare number with nil"

The exact macro text is:

/script local obj = getglobal(ActionButton12:GetName().."Cooldown"); CooldownFrame_SetTimer(obj, DURATION, ENABLE);
/use Minor Healthstone

It might be me tho, i'm not a programmer.

Anonymous
12-02-2004, 09:14 PM
I get the following error w/ this code:

"String: Interface\FrameXML\Cooldown.lua
line: 3
Count: 2
Error: attempt to compare number with nil"

The exact macro text is:

/script local obj = getglobal(ActionButton12:GetName().."Cooldown"); CooldownFrame_SetTimer(obj, DURATION, ENABLE);
/use Minor Healthstone

It might be me tho, i'm not a programmer.

Anonymous
12-02-2004, 09:16 PM
I get the following error w/ this code:


"String: Interface\FrameXML\Cooldown.lua
line: 3
Count: 2
Error: attempt to compare number with nil"

The exact macro text is:

/script local obj = getglobal(ActionButton12:GetName().."Cooldown"); CooldownFrame_SetTimer(obj, DURATION, ENABLE);
/use Minor Healthstone

It might be me tho, i'm not a programmer.

Anonymous
12-03-2004, 06:42 PM
I get the following error w/ this code:


"String: Interface\FrameXML\Cooldown.lua
line: 3
Count: 2
Error: attempt to compare number with nil"

The exact macro text is:

/script local obj = getglobal(ActionButton12:GetName().."Cooldown"); CooldownFrame_SetTimer(obj, DURATION, ENABLE);
/use Minor Healthstone

It might be me tho, i'm not a programmer.

You have to pass a value to duration and enable. Don't know if duration is in seconds or minutes, but I would guess seconds, so try 180. (I believe countdown is 3 minutes, but if not adjust) Next you have to pass a value for enable, with is either 0 or 1
CooldownFrame_SetTimer(obj, 180, 1); for example. This should work, haven't had tome to test it though.

Anonymous
12-03-2004, 06:42 PM
I get the following error w/ this code:


"String: Interface\FrameXML\Cooldown.lua
line: 3
Count: 2
Error: attempt to compare number with nil"

The exact macro text is:

/script local obj = getglobal(ActionButton12:GetName().."Cooldown"); CooldownFrame_SetTimer(obj, DURATION, ENABLE);
/use Minor Healthstone

It might be me tho, i'm not a programmer.

You have to pass a value to duration and enable. Don't know if duration is in seconds or minutes, but I would guess seconds, so try 180. (I believe countdown is 3 minutes, but if not adjust) Next you have to pass a value for enable, with is either 0 or 1
CooldownFrame_SetTimer(obj, 180, 1); for example. This should work, haven't had tome to test it though.

jimmcq
12-03-2004, 07:10 PM
Not to take this too far off topic, but I started using the following macro for emergencies:

/use Minor Healthstone
/use Lesser Healthstone
/use Healing Potion
/use Lesser Healing Potion
/use Minor Healing Potion
Sometimes I get an error that the items can't be used because of another action in progress (such as casting). Is there any sort of macro or script command to cancel all actions/spells that are in progress?

I guess as a workaround I could just take a step backwards first and then use the macro.

sarf
12-06-2004, 07:46 PM
If it is done in a macro... :

/script MoveForwardStart();
/script MoveForwardStop();

should interrupt stuff.

Sarf
---
Life is a garden. Dig it.

Anonymous
01-10-2005, 10:10 PM
In conjunction with Cosmos I use the addon auto-bar it rocks is customizable, u can set it to find any item, and it will automacially place it in a hotkey bar of your choice if you have it in your posseccion (and you can set in order of rank, minor, lessor greater (potions), shards, engineering bombs)...

http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=17607&p=1


I use, have used, many addons this one complements all ui's and fills their gaps ...

Anonymous
01-10-2005, 10:10 PM
In conjunction with Cosmos I use the addon auto-bar it rocks is customizable, u can set it to find any item, and it will automacially place it in a hotkey bar of your choice if you have it in your posseccion (and you can set in order of rank, minor, lessor greater (potions), shards, engineering bombs)...

http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=17607&p=1


I use, have used, many addons this one complements all ui's and fills their gaps ...

Anonymous
01-10-2005, 10:11 PM
In conjunction with Cosmos I use the addon auto-bar it rocks is customizable, u can set it to find any item, and it will automacially place it in a hotkey bar of your choice if you have it in your posseccion (and you can set in order of rank, minor, lessor greater (potions), shards, engineering bombs)...

search google for "wow autobar"

I use, have used, many addons this one complements all ui's and fills their gaps ...


(can I mention autopotion rocks too)

sad_story
01-10-2005, 10:16 PM
In conjunction with Cosmos I use the addon auto-bar it rocks is customizable, u can set it to find any item, and it will automacially place it in a hotkey bar of your choice if you have it in your posseccion (and you can set in order of rank, minor, lessor greater (potions), shards, engineering bombs)...

search google for "wow autobar"

I use, have used, many addons this one complements all ui's and fills their gaps ...


(can I mention autopotion rocks too)

sad_story
01-10-2005, 10:17 PM
In conjunction with Cosmos I use the addon auto-bar it rocks, u can set it to find any item, and it will automacially place it in a hotkey bar of your choice if you have it in your posseccion (and you can set in order of rank, minor, lessor greater (potions), shards, engineering bombs)...

search google for "wow autobar"

I use, have used, many addons this one complements all ui's and fills their gaps ...


(can I mention autopotion rocks too)

Flisher
01-11-2005, 01:01 AM
I'm using cosmos with the coolcountdown timer version 0.20 and im unable to do it.

i'm trying to display a timer for the duration of a warlock DOT.

/script local obj = getglobal(ActionButton12:GetName().."Cooldown"); CooldownFrame_SetTimer(obj, 30, 1);

It do not display anything. Anyone can help? (also tryed 0 on the enable field).

My goal is to see how much time left on a DOT (and not how much time before I can recast it..

Flisher
01-11-2005, 01:07 AM
I also tryed

/script local obj = getglobal(ActionButton12:GetName().."Cooldown");
/script CooldownFrame_SetTimer(obj, 180, 1);

Adoxi
01-11-2005, 03:31 PM
Check the WoW UI Customization forum for Autobar...there's a few variations of it, but the one by the original person is really good...you can set up custom sets etc...but by default it will show you heal pots, mana pots, food, drink, heal stones, etc...and it can be attached to a number of different spots... i use it all the time in addition to cosmos, and they play nicely together.

Adoxi
01-11-2005, 03:32 PM
Check the WoW UI Customization forum for Autobar...there's a few variations of it, but the one by the original person is really good...you can set up custom sets etc...but by default it will show you heal pots, mana pots, food, drink, heal stones, etc...and it can be attached to a number of different spots... i use it all the time in addition to cosmos, and they play nicely together.

Adoxi
01-11-2005, 03:32 PM
Check the WoW UI Customization forum for Autobar...there's a few variations of it, but the one by the original person is really good...you can set up custom sets etc...but by default it will show you heal pots, mana pots, food, drink, heal stones, etc...and it can be attached to a number of different spots... i use it all the time in addition to cosmos, and they play nicely together.