Help section from before the user variable changes that broke all macros
Moderator: MacroQuest Developers
-
kozz
- orc pawn

- Posts: 27
- Joined: Wed Sep 04, 2002 9:11 pm
Post
by kozz » Fri Sep 27, 2002 7:12 pm
Ok iv'e been messing around with this macro. It was orginally made by somebody else but iv'e changed a few lines to make it do what I want. I can get the mob targeted, get the spells cast I wanted, get auto attack on, get the corpse target (sometimes it walks off in a diffrent direction before returning to corpse) but then after it has the corpse targeted I run into problems. I can't get it to get close enough to the corpse to loot or if it is close enough the mouse will click on the wrong loot boxes giving me no loot. Iv'e tried using old UI and new UI no real diffrence tho..
Code: Select all
|Dyllin.mac
#include Routines.mac
Sub Main
/target snow
/varset v90 $target(id)
/face
/cast 8
/delay 9s
/cast 7
/delay 5s
/face
/attack on
/varset t0 5m
:CloserAF
/if "$target(id)"!="$v90" /goto :EndAF
/if n $target(distance)>14 /call AutoRun 1
/if n $target(distance)<7 /call AutoRun 0
/if n $t0==0 /press esc
/if n $char(hp,pct)<30 /press esc
/face
/doevents
/goto :CloserAF
:EndAF
/call AutoRun 0
/attack off
/delay 2s
/goto :AutoLoot
:AutoLoot
/attack off
/target corpse
/face
/click right auto
/delay 3s
/mouseto corpse 0
/delay 1s
/click right
/mouseto corpse 1
/delay 1s
/click right
/mouseto corpse 2
/delay 1s
/click right
/delay 1s
/press esc esc esc
/call Main
Sub AutoRun
/if $p0==$v80 /return
/varset v80 $p0
/if $p0==1 /sendkey down up
/if $p0==0 /sendkey up up
/return
Is there somthing wrong with that code?
Last edited by
kozz on Fri Sep 27, 2002 7:53 pm, edited 1 time in total.
-
Magnus
- a ghoul

- Posts: 85
- Joined: Sun Aug 11, 2002 3:50 pm
Post
by Magnus » Fri Sep 27, 2002 7:28 pm
Whole thing is wrong cause it's not in Code Brackets. In the spirit if Lizard I am boycotting this thread that contains no code brackets!!
Mag
-
kozz
- orc pawn

- Posts: 27
- Joined: Wed Sep 04, 2002 9:11 pm
Post
by kozz » Fri Sep 27, 2002 7:50 pm
Ok, did some more playing with it. Got it to all most work except that it targets the corpse but sometimes dosen't right click it enough times to open up the loot window..hmm ill do some more tinkering. I would think somebody would have this macro already tuned up. Somebody post some code =P
-
kozz
- orc pawn

- Posts: 27
- Joined: Wed Sep 04, 2002 9:11 pm
Post
by kozz » Fri Sep 27, 2002 8:07 pm
Bleh my code sucks , someone post somthing that works!!!
-
Magnus
- a ghoul

- Posts: 85
- Joined: Sun Aug 11, 2002 3:50 pm
Post
by Magnus » Fri Sep 27, 2002 8:24 pm
Ok... let's look at this..
Code: Select all
:AutoLoot
/attack off
/target corpse
/face
/click right auto
/delay 3s
/mouseto corpse 0
/delay 1s
/click right
/mouseto corpse 1
/delay 1s
/click right
/mouseto corpse 2
/delay 1s
/click right
/delay 1s
/press esc esc esc
/call Main
First off, you right click the corpse and then you auto-equip..nothing really big but it's kinda sloppy. With your problems it sounds like you're on a really laggy system. Change the wy you loot entirely using /if then's or add more delay time to your looting process. There's lots you can do but I'm not gonna read your mind. You can /if to check if there's a corpse and have it keep looting til there's no corpse. You can /if cursor!= true on slots 1 and 2 til there's no corpse.
What you have will work if you play with your delays.
Mag
-
kozz
- orc pawn

- Posts: 27
- Joined: Wed Sep 04, 2002 9:11 pm
Post
by kozz » Fri Sep 27, 2002 9:51 pm
Ok, I got it so I no longer have a problem right clicking on the corpse. Only thing wrong now is it won't auto equip the loot. I can watch the mouse arrow go to each loot slot, move/delay, move/delay, but no auto equip.
-
Magnus
- a ghoul

- Posts: 85
- Joined: Sun Aug 11, 2002 3:50 pm
Post
by Magnus » Fri Sep 27, 2002 11:16 pm
Put a delay between your /click right and your next /moveto and see if it helps.
Mag
-
kozz
- orc pawn

- Posts: 27
- Joined: Wed Sep 04, 2002 9:11 pm
Post
by kozz » Fri Sep 27, 2002 11:38 pm
Bleh I switched back to new UI now everything in my script works except for one thing. When I use the mob that I want to camp as the target if the mobs not up it will still go about performing the script ie casting spells (or attempting depending on if I have a target) etc..How would I be able to run the macro then sit back and watch T.V. or somthing while it does what it does instead of it performing it's actions when the mob isn't even up?
-
Magnus
- a ghoul

- Posts: 85
- Joined: Sun Aug 11, 2002 3:50 pm
Post
by Magnus » Fri Sep 27, 2002 11:47 pm
That, you're gonna read the manual and figure out.
Mag
-
Fippy
- a snow griffon

- Posts: 499
- Joined: Tue Jul 16, 2002 10:42 am
Post
by Fippy » Sat Sep 28, 2002 5:08 am
-
kozz
- orc pawn

- Posts: 27
- Joined: Wed Sep 04, 2002 9:11 pm
Post
by kozz » Sat Sep 28, 2002 11:36 am
Auto looting is not my problem. Making the macro wait until the spawn pops before it goes about casting spells blah blah is my problem. I know there is a way to delay the macro before the mob pops just don't know what code to use. Iv'e read the stupid read me too!
-
Magnus
- a ghoul

- Posts: 85
- Joined: Sun Aug 11, 2002 3:50 pm
Post
by Magnus » Sat Sep 28, 2002 1:50 pm
I posted this in another ? post so I'll tell you too. Loop it on the check for spawn routine of your script. Looping will cause you to do basically nothing. However, toss in a few /if's and you can have your guy med or do an entirely different script while waiting for a spawn.
Mag
-
BadBoy
- a hill giant

- Posts: 158
- Joined: Thu Sep 05, 2002 11:53 am
Post
by BadBoy » Sat Sep 28, 2002 1:53 pm
Will it work with the new interface?
-
Magnus
- a ghoul

- Posts: 85
- Joined: Sun Aug 11, 2002 3:50 pm
Post
by Magnus » Sat Sep 28, 2002 1:57 pm
Do a search on "click" and do some reading. If you have any real interest in this program you will read every post on these boards. If you're too lazy to do that then the rest of us will be too lazy to answer questions.
Mag
-
BadBoy
- a hill giant

- Posts: 158
- Joined: Thu Sep 05, 2002 11:53 am
Post
by BadBoy » Sat Sep 28, 2002 2:10 pm
thank you "Mag"