Page 5 of 11

Posted: Wed Aug 25, 2004 9:48 pm
by Hannibal
Rusty~

I recently upgraded to your latest spell_routines.inc.

Below, is my summon arrow subroutine:

Code: Select all

Sub event_SummonArrow(line,int arrows)
	
	/declare a int local

	/echo Summoning ${arrows} stack(s) of arrows.

	/for a 1 to ${arrows}
		/call cast "Tolan's Darkwood Bracer" item
		/autoinventory
	/next a

/return
This worked great, until the latest spell_routines.inc - I'm frequently finding that the autoinventory is not functioning.

Did something change that may affect this?

Posted: Wed Aug 25, 2004 11:32 pm
by Rusty~
it just returns control to your macro sooner now (which is a good thing!)... the problem is there's a small delay between when you finish casting a summoned item and when it appears on your cursor. this should fix your problem though:

Code: Select all

   /call cast "Tolan's Darkwood Bracer" item 
   /delay 1s ${Cursor.ID}
   /autoinventory 
[/code]

Posted: Thu Aug 26, 2004 7:20 am
by Hannibal
That appears to fix the autoinventory issue, but I typically do not have my Tolan's equipped - so it swaps it in, casts, then swaps back.

What happens is that it will get 'stuck' and I'll have the Tolan's AND the arrows on my cursor. I have to /mqpause to correct it, and then unpause the macro again.

Posted: Thu Aug 26, 2004 8:15 am
by Rusty~
ah.. ok, i'll see what i can do to fix that.

Posted: Mon Aug 30, 2004 5:54 am
by frabtik
Not sure if I want to change over to this or not, needs some work to do what I want but stealing some things here and there till I decide what is best for me.
Seems this doesn't work. Just gives syntax.
/windowstate spellbook close
Found a post from DKAA saying it uses windownames now and /windows will list them. Course my server is down so I can't do that command to find the name for ya.

Posted: Tue Aug 31, 2004 12:16 am
by Rusty~
yeah noticed windowstate thing was bugged and fixed it but forgot to post the updated version.

still havent gotten around to working on the small item swap bugs, but will try to as soon as possible

Posted: Wed Sep 01, 2004 8:30 pm
by Rusty~
ok.... casting items that summon other items should now work. i tested it with fisherman's companion as it's only item i had that did that.

Posted: Thu Sep 02, 2004 5:39 pm
by Nueder
Sorry noob question...How do i retrieve the return value from spell_routines.inc such as CAST_RESISTED.

I saw somewhere this syntax but it is not working for me:

/if ($return==CAST_RESISTED) {
/blah
/blah
}

Can you plz post how to do this i would RTFM if i knew where the FM was /grin.

Posted: Thu Sep 02, 2004 6:22 pm
by ieatacid

Code: Select all

/if (${Macro.Return.Equal["CAST_RESISTED"]})

Posted: Thu Sep 02, 2004 6:57 pm
by Nueder

Code: Select all

			/call Cast "Ultor's Greaves of Faith" item
			/if (${Macro.Return.Equal["CAST_RESISTED"]}){
				/if (${announce}==1) {
					/g %T RESISTED ${morspell}
				} else {
					/chat #${mychannel} %T RESISTED ${morspell}
				}
			}
Whats wrong with this?

Posted: Thu Sep 02, 2004 7:32 pm
by Night Hawk

Code: Select all

/if (${Macro.Return.Equal["CAST_RESISTED"]}){ 
need a space before you put a bracket

Posted: Thu Sep 02, 2004 7:43 pm
by Hannibal
ok.... casting items that summon other items should now work. i tested it with fisherman's companion as it's only item i had that did that.
Works well, my tolan's macro is back to working as intended.

Posted: Mon Sep 06, 2004 3:04 am
by Hannibal
Not sure about this one - but I think in the older release, it used to return the swapped item to the original bag slot.

It appears to auto-inventory it now.

Bad thing being, before - I could /arrows 100, and it would only drop arrows on the ground. Now, it will actually drop the Tolan's.

Posted: Tue Sep 21, 2004 4:10 pm
by loadingpleasewait
is ${Macro.Return} working as intended? I had this in my ranger macro to detect resisted snares, some reason it wasnt returning anything. I've bandaged up my macros by putting local events in, but using macro.return was alot cleaner.

Posted: Wed Sep 22, 2004 10:32 am
by Rusty~
${Macro.Return} works fine. not sure why you'd be having problems with it really.

and yes, there are some bugs in the itemswap code again i found, i'm going to work on rewriting it again =/

i had problems when people would cast mod rods or something while casting and i'd get stuck in a loop so i added the autoinventory stuff.. but that introduced new problems now heh