swapcast.mac a swap item and cast it macro (updated 7-2-5)

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

yesman
a lesser mummy
a lesser mummy
Posts: 64
Joined: Tue Apr 27, 2004 9:06 pm

Post by yesman » Tue Jun 22, 2004 2:03 pm

You need the newest MQ2, it will fix it. Have SwapCast as an Include and it's running great.

BlackTooth
a lesser mummy
a lesser mummy
Posts: 50
Joined: Mon Dec 08, 2003 10:32 am

Post by BlackTooth » Wed Jun 23, 2004 9:10 pm

Is there a way to modify this so that i can simply swap it to the specified place and leave it there?

Like with my bard i always have to search thru the invintory and find the Drums or whatever and then switch it with my sword...

if it would do this for me and leave it there untill i called it again to switch back that would be helpful.

any way to do this?

mikey
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sat Jul 03, 2004 7:56 pm

Saelinye..

Post by mikey » Sat Jul 03, 2004 7:58 pm

/call swapcast "Shrunken Goblin Skull earring" rightfinger

and it says, must be equipped to cast... or something like that.
This could be because it's an earring and you are trying to equip it on your finger instead of ear.

dsavereide
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sat Jan 03, 2004 4:55 pm

Post by dsavereide » Mon Aug 30, 2004 4:15 am

This doesn't work for me at all. I'm using MQ from Auguest 18. I'm trying to swap in my Singing Steel Boots. I tried:

/macro swapcast singing
/macro swapcast "Singing Steel Boots"

I also tried other swapables, but they all get the same error messages:

Unparseable in calculation: 'g'
swapcast mac@19 (SwapCast(item,equipslot)):
(${Me.Casting.ID}>0){
swapcast mac@2 (Main(p0,p1)):/call SwapCast "$(p0)""${p1}"
The current macro has ended
Failed to parse lf condition '(NULL >o)' non-numeric encountered

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Mon Aug 30, 2004 6:15 am

Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

dsavereide
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sat Jan 03, 2004 4:55 pm

Post by dsavereide » Mon Aug 30, 2004 5:52 pm

Thank you. I never would have found that.

Anticant
decaying skeleton
decaying skeleton
Posts: 8
Joined: Tue Dec 07, 2004 12:35 am

targetable clicky?

Post by Anticant » Tue Dec 07, 2004 12:45 am

When I try to use my Bangle of Disease Warding everything works properly except the macro leaves the Bangle on my pointer instead of swaping it back into inventory. I have a hunch this is due to the fact that the clicky is a necessarily targetable one. If I target myself or try to swapcast another item the bangle still stays on my cursor. Does anyone know how to fix this?

I figured out a way to fix it by using /target myself and /autoinv

Also had to add a close bags to the end of it with the bangle, otherwise the bag with bangle stays open.

not the most graceful way to do it, but it works.

Does anyone know a way to toggle last target so at the end of the macro so that I can switch back to original target?

nemiq
orc pawn
orc pawn
Posts: 23
Joined: Tue Jan 13, 2004 1:36 am

Post by nemiq » Thu Dec 30, 2004 1:24 am

is there any way to make it so I can cast like 10 or so clickies with just one type of the macro or do i have to do each item by hand?

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Thu Dec 30, 2004 6:29 am

Yes, make it an INC file instead of MAC and write a macro that uses it to do what you want.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

nemiq
orc pawn
orc pawn
Posts: 23
Joined: Tue Jan 13, 2004 1:36 am

Post by nemiq » Thu Dec 30, 2004 3:09 pm

would you be willing to show me an example of how to do it with 1 item and then I can just put in the rest? I would really appreciate that because I'm not quite sure how to do it

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Thu Dec 30, 2004 3:29 pm

nemiq wrote:would you be willing to show me an example of how to do it with 1 item and then I can just put in the rest? I would really appreciate that because I'm not quite sure how to do it
uhh, read page 1?
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

nemiq
orc pawn
orc pawn
Posts: 23
Joined: Tue Jan 13, 2004 1:36 am

Post by nemiq » Thu Dec 30, 2004 7:56 pm

right but I'm not sure what to type into the new macro to make it use the inc and use the swapcast

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Thu Dec 30, 2004 9:41 pm

Just so you know, I learned what little I know by ripping apart other peoples work. I found small easy to understand macros learned to read them and understand them as best I could and then tried to make things from what I had learned.

I asked questions when I tried and failed, and included my work and the problem and what was intended. I got much more help that way.

Might want to consider trying that.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

DEDruid
orc pawn
orc pawn
Posts: 25
Joined: Thu Apr 14, 2005 12:55 am

Post by DEDruid » Tue May 03, 2005 1:05 am

I'm using Bardomatic's swapcast macro, and it works great. I've just noticed one problem, when I use it on a mod rod, if the rod poofs when I cast (i.e. the rod is out of charges) I go LD and get booted to log in screen. Any ideas how to fix this?

User avatar
OnyxSys
a ghoul
a ghoul
Posts: 133
Joined: Sun Dec 21, 2003 9:58 pm
Contact:

Post by OnyxSys » Mon May 23, 2005 8:57 am

Anyone up to the task, this would own as a plugin :)
[img]http://web.infoave.net/~jpdixon/onyxsys.jpg[/img]