freezing

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

lupinus
a lesser mummy
a lesser mummy
Posts: 40
Joined: Wed Jul 17, 2002 8:28 am

freezing

Post by lupinus » Fri Sep 20, 2002 9:17 am

OK i have my macro running very nicely with only one real exception. If another toon already has the merchant window open it will cause my macro to just stop doing anything. This happens to me on several macros but I use the cheese macro as the basis for alot of them. Any help would be appriciated. Is there a way to check to see if someone already has the merchat open and if so delay and recheck merchant?
:x :x :x :x

lupinus
a lesser mummy
a lesser mummy
Posts: 40
Joined: Wed Jul 17, 2002 8:28 am

anyone

Post by lupinus » Sat Sep 21, 2002 3:06 pm

does no one know the answer to my question or is this just one of those things we keep to ourselves?
:x :x :x :x

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Sat Sep 21, 2002 3:13 pm

its no big secret.. write it yourself

If the merchant says "im busy right now" create an event that will /delay 100 then try again.. or after you click on the merchant do a check of $merchant, to see if a merchant inventory is open... if not /delay 10s or something and try again...

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Sat Sep 21, 2002 4:05 pm

err more than 1 person can use a merchant at once?? what ya talking about.

Gengis
a ghoul
a ghoul
Posts: 116
Joined: Wed Aug 14, 2002 7:46 pm

Post by Gengis » Sat Sep 21, 2002 4:52 pm

Maybe this would work?

Code: Select all

   :OpenMerchant
   /varset v65 0
   /target npc
   /varset v66 "$target(name,clean)"
   /click right target

   :WaitForMerchant
      /doevents
   /if n $v65==1 /delay 100 /goto :OpenMerchant
   /if $merchant!=TRUE /goto :WaitForMerchant

Code: Select all

sub Event_Chat
   /if "$p1"=="$v66" /if "$p0"~~"says" /if "$p2"~~"sorry" /varset v65 1
/return

lupinus
a lesser mummy
a lesser mummy
Posts: 40
Joined: Wed Jul 17, 2002 8:28 am

thanks

Post by lupinus » Sun Sep 22, 2002 7:58 pm

thanks for the help and yes i have tried to write if for myself. I have always believed that more than one person could use a merchant but when i am running a macro it just seems to freeze up if someone opens the same merchant.
:x :x :x :x

Gengis
a ghoul
a ghoul
Posts: 116
Joined: Wed Aug 14, 2002 7:46 pm

Post by Gengis » Mon Sep 23, 2002 12:19 am

change

Code: Select all

/if "$p0"=="say" /if "$p1"~~"Granger" /varset v55 1 
to

Code: Select all

/if "$p0"=="say" /if "$p1"~~"Granger" /if "$p2"~~"$char(name)" /varset v55 1
and maybe add in a delay