Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!
Moderator: MacroQuest Developers
-
bohicaseti
- a lesser mummy

- Posts: 33
- Joined: Sat Mar 06, 2004 5:55 am
Post
by bohicaseti » Mon Apr 26, 2004 4:06 am
I have 2 chest peices that I carry. My Chestwraps of Enlightenment & my Silver Moon Chest Wraps (for cheesy 100hp heal). Since $parms is gone the way of the DoDo, so has my grasp on how to get this to work. I can't find a simple basic example in the forums to work off of and all my attempts thus far from the examples I did find just got me more lost. I'll supply the gasoline for the flamage, but why I can't get this to just swap out robes and do it's thing makes me dizzy. ( I miss /finditem

)
Here's my tortured code.
Code: Select all
Sub Main
/if (${Me.PctHPs}>=91) /return
/if (!${Me.Inv[]}) /keypress i
/itemnotify ${FindItem[=Silver Moon Chest Wraps].Item} leftmouseup
/delay 1s
/click left chest
:HPCheck
/cast item "Silver Moon Chest Wraps"
/delay 11s
/if (${Me.PctHPs}>=91) /goto :bp
/goto :HPCheck
:bp
/delay 1s
/click left chest
/autoinv
/cleanup
/return
I keep my robe in one of my bags and not in a base inventory slot. Just need some type of example if possible of how /itemnotify can work with different settings as far as grabbing out of a bag or making sure the right peice of armor is one before you go back out into battle. Sorry for the lack of code, but this doesn't seem to have much in the way of documentation built up yet. Thanks. Flame on.
Friends help friends move . . . .
Real friends help friends move dead bodies.
-
Preocts
- a snow griffon

- Posts: 312
- Joined: Thu Jan 29, 2004 1:02 pm
Post
by Preocts » Mon Apr 26, 2004 1:34 pm
[Complete Waste of My Time]
Last edited by
Preocts on Mon Apr 26, 2004 5:14 pm, edited 1 time in total.
-
Preocts
- a snow griffon

- Posts: 312
- Joined: Thu Jan 29, 2004 1:02 pm
Post
by Preocts » Mon Apr 26, 2004 1:51 pm
[Complete Waste of my Time]
Last edited by
Preocts on Mon Apr 26, 2004 5:13 pm, edited 1 time in total.
-
bohicaseti
- a lesser mummy

- Posts: 33
- Joined: Sat Mar 06, 2004 5:55 am
Post
by bohicaseti » Mon Apr 26, 2004 4:41 pm
Well so far the only thing I can get it to do is open the pack that has the robe. I am so clueless now as to get it to put the robe on the mouse and then equip it. I got the casting part down. I just need it to do what my old script did. Can't figure it out at all. /finditem worked great and was simple and short. Here is the original code using $parms
Code: Select all
Sub Robe
/if n $char(hp,pct)>=91 /return
/if "$invpanel"!="true" /press i
/finditem "Silver Moon Chest Wraps"
/delay 1s
/finditem "Silver Moon Chest Wraps"
/delay 1s
/click left chest
:HPCheck
/cast item "Silver Moon Chest Wraps"
/delay 60
/if n $char(hp,pct)>=91 /goto :bp
/goto :HPCheck
:bp
/click left chest
/delay 1s
/if "$cursor(name)"!="Silver Moon Chest Wraps" /goto :Bp
/click left auto
/cleanup
/return
This new /itemnotify stuff has me boggled beyond comprehension. If anyone knows how to swap/cast/re-swap and continue on, I have not been able to find an example of it on these forums. Sorry. */hands over the gasoline*
Friends help friends move . . . .
Real friends help friends move dead bodies.
-
bohicaseti
- a lesser mummy

- Posts: 33
- Joined: Sat Mar 06, 2004 5:55 am
Post
by bohicaseti » Mon Apr 26, 2004 10:56 pm
Nice use of the gasoline Preocts :)
Code: Select all
Sub Main
[Complete Waste of My Time]
/return
Worked like a charm.
Gruefood, appreciate the link. Been messing with it, but keep getting ERROR: @Param0 is invalid. I'm not sure if this has something to do with the fact that my "so called array" only has 1 item listed in the clickies.ini file I made or not. Arrays are something that I'm still trying to get a grasp on. Just can't get the old brain to lock onto the logic of it yet and make actual use of it. I understand that any replies to this are done with someones free time and desire to help others so I appologize if I seem like a moron but when it comes to this stuff I am. Before the big change came it wasn't necessarily easy for me to make a script, but after a few hours of browsing other peoples examples and tinkering with trial and error I was always able to get it in the end. This new format may be better but it is also way different and there's a good chunk of people who are having to totally re-learn everything and don't have a natural knack for understanding programming in general. 90% of my stuff I've been able to figure out on my own without asking for help. If I'm in error for not picking it up yet I'm sorry but I'm trying. Thanks for hearin me out.
Friends help friends move . . . .
Real friends help friends move dead bodies.
-
Wraeth
- orc pawn

- Posts: 16
- Joined: Sun Dec 21, 2003 10:18 am
Post
by Wraeth » Mon Apr 26, 2004 11:15 pm
Post your INI
-
bohicaseti
- a lesser mummy

- Posts: 33
- Joined: Sat Mar 06, 2004 5:55 am
Post
by bohicaseti » Mon Apr 26, 2004 11:25 pm
My clickies.ini
Code: Select all
[Items]
Robe=Silver Moon Chest Wraps;pack1;1;chest;15
I only have 1 item that I'm trying to swap out right now. Robe is sitting in the first pack 1 slot and has a 15 second cast time.
Friends help friends move . . . .
Real friends help friends move dead bodies.