A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.
Moderator: MacroQuest Developers
-
xcopyx
- decaying skeleton

- Posts: 3
- Joined: Wed Dec 31, 2003 6:04 pm
Post
by xcopyx » Fri Jan 02, 2004 8:55 am
This script finds your breastplate (or rather clicks to it in this version) and it puts it on your chest (must equip to cast) and casts heal till your 100. then it puts the bps back in the right place. This is my first script.
Code: Select all
| Very easy bp heal script for bards. puts SS bp on and heals you
| to 100 then puts everything back...
| Change slot numbers to customize to your needs
#turbo
Sub Main
/press i
/click right inv 4
/click left pack 4 5
| /finditem "Singing Steel Breastplate" can be used. i didnt.
/delay 1s
/click left chest
/if n $char(hp,pct)==100 /goto :bp
:Loop
/cast item "Singing Steel Breastplate"
/if n $char(hp,pct)==100 /goto :bp
/goto :loop
:bp
/click left chest
/delay 1s
/click left pack 4 5
/click right inv 4
/press i
/goto :end
:end
/return
I know its coded funky but it works.
-
xcopyx
- decaying skeleton

- Posts: 3
- Joined: Wed Dec 31, 2003 6:04 pm
Post
by xcopyx » Thu Jan 15, 2004 3:57 am
ok so instead of pressing i do a
/cleanup
that way it closes other windows and opens the inventory. also throwing in
/delay 2 here and there would help with those who said it didnt equip right.
-
Consilium
- Contributing Member

- Posts: 100
- Joined: Wed Oct 02, 2002 10:42 pm
Post
by Consilium » Mon Feb 09, 2004 6:02 am
Here is my modification to your script bud. This will grab it from anywhere. This also puts in some checks to make sure it puts it back.
Code: Select all
| Breastplate heal script for any class. Simply change the "Singing Steel Breastplate
| to the name of your clicky heal breastplate. Could also
| be easily adapted to work with other items that need to
| be equipped. This is a combination of - helmheal.mac -
| (Author, eqjim, modified by curiousgeorge, cleaned up by DeathSpiral)
| and xcopyx's basic singing steel script... I merely put them together
| - Consilium
#turbo
Sub Main
| No need to heal if we are full health
|/echo checking hp
/if n $char(hp,pct)==100 /return
| Make sure the inventory window is open
/if "$invpanel"!="true" /press i
| Equip the breastplate
|/echo finding the BREASTPLATE
|For some reason this takes two calls for finditem
|first opens the bag second actually grabs item
/finditem "Singing Steel Breastplate"
/delay 1
/finditem "Singing Steel Breastplate"
/delay 1
|/echo putting bp on
/click left chest
:CheckHP
/cast item "Singing Steel Breastplate"
/delay 60
/if n $char(hp,pct)==100 /goto :bp
/goto :CheckHP
:bp
| get old bp back on back on
/click left chest
/delay 1s
/if "$cursor(name)"!="Singing Steel Breastplate" /goto :Bp
/click left auto
|while the manuel sais that this command closes all windows and then
|opens inventory it seems to only close all windows so it works great here
/cleanup
/return
-SH
+Student
digitalsavior.com
-
Consilium
- Contributing Member

- Posts: 100
- Joined: Wed Oct 02, 2002 10:42 pm
Post
by Consilium » Mon Feb 09, 2004 6:05 am
I noticed I had "Singing Steel Breastplate" in there a lot and also realized that other classes have healing BP's. So I attempted to put in the begining
#define BREASTPLATE "Singing Steel Breastplate"
and then replace every instance of "Singing Steel Breastplate"
in the code with BREASTPLATE but for some reason it could parse the # define correctly. I know I could figure this out but I need to move onto something else... anyone want to explain why this doesnt work? Do I have to declare some sort of string define instead or a pointer that points to the begining address of the string and declare the string in the begining... oh wait think I just answered my own Q
-SH
+Student
digitalsavior.com
-
Mutter
- a ghoul

- Posts: 105
- Joined: Sat Nov 16, 2002 1:09 pm
Post
by Mutter » Tue Feb 10, 2004 1:29 pm
Actually I do! You have your spaces/tabs screwed up. If you use ultraedit, do a convert tabs to spaces, and it will fix it.
-
xcopyx
- decaying skeleton

- Posts: 3
- Joined: Wed Dec 31, 2003 6:04 pm
Post
by xcopyx » Thu Feb 12, 2004 11:20 pm
looks good. mine never has failed me but i can see how that one is a bit improved. great for pling. my script has been used in a hunter script that will be posted later by bd. (if he gets around to it) it levels a bard from 46 to 55.
-
Mutter
- a ghoul

- Posts: 105
- Joined: Sat Nov 16, 2002 1:09 pm
Post
by Mutter » Fri Feb 13, 2004 1:14 pm
I would be VERY interested in the bard PL script, I have never gotten mine to work for bard.