Requesting a simple macroto log out at FM

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

User avatar
Morath
a lesser mummy
a lesser mummy
Posts: 41
Joined: Tue Oct 22, 2002 3:09 pm

Requesting a simple macroto log out at FM

Post by Morath » Tue Oct 29, 2002 10:46 pm

My coding experience is very limited:

my best:

Code: Select all

Sub Main 
:Loop 
/doability 3
/delay 45
/goto :Loop 
/return
What I would like is a macro that checks mana, does a /q at Full Mana

Somethin I can use to deplete all mana...goto bed and know I will be logged out and have full mana rdy for the next day.

Syn

User avatar
Morath
a lesser mummy
a lesser mummy
Posts: 41
Joined: Tue Oct 22, 2002 3:09 pm

I gave it a shot...

Post by Morath » Tue Oct 29, 2002 11:20 pm

This is what I came up with, but I get a "Couldn't parse Sub Log"

Help would be koolies!!

Code: Select all

|<fmlog.mac>

|Created by Mor-ath, the God of Stealth and Silence

|This is Mor-aths first attempt at coding!!

|Hate logging in with no mana?  This should allow you to finish playing 
|goto bed, and log out automatically at Full Mana.
|So you can log in and get to playin without waiting for mana!

Sub Main

/if n $char(mana,pct)<10 /call meditate

/if n $char(mana,pct)>99 /call log

/if $gm==TRUE /call GMhere 

Sub meditate

/sit

Sub log

/q

Sub Main GMhere

/q

/return
Syn

Lurker_005
a lesser mummy
a lesser mummy
Posts: 51
Joined: Thu Oct 17, 2002 12:08 pm

Post by Lurker_005 » Wed Oct 30, 2002 1:54 am

Edited to work (untested)

Code: Select all

|<fmlog.mac> 

|Created by Mor-ath, the God of Stealth and Silence 

|This is Mor-aths first attempt at coding!! 

|Hate logging in with no mana?  This should allow you to finish playing 
|goto bed, and log out automatically at Full Mana. 
|So you can log in and get to playin without waiting for mana! 

Sub Main 
  /call meditate
  /call log
/return

Sub meditate 
   /sit on
   :medding
   /wait 1000
   /if n $char(mana,pct)<100 goto :medding
 /return 

Sub log 
  /sit on
  /camp
  /macroend 
/return

Flint_the_dorf
orc pawn
orc pawn
Posts: 13
Joined: Sat Oct 12, 2002 3:14 pm
Location: Atlanta, GA
Contact:

Edited and tested -- working

Post by Flint_the_dorf » Wed Oct 30, 2002 4:03 am

Edited your code and tested it this does work ;)

Code: Select all

|<fmlog.mac> 

|Created by Mor-ath, the God of Stealth and Silence 

|This is Mor-aths first attempt at coding!! 

|Hate logging in with no mana?  This should allow you to finish playing 
|goto bed, and log out automatically at Full Mana. 
|So you can log in and get to playin without waiting for mana! 

Sub Main 
    /echo Medding to 100% mana and logging!
    /if $gm==TRUE /call log      |for those who are paranoid - like myself
    /call meditate 

/return 

Sub meditate
 /sit  
    :medding 
 /delay 10s
    /if n $char(mana,pct)<100 /goto :medding 
    /if n $char(mana,pct)>=100 /call log
/return 

Sub log 
   /camp desktop   
   /unload

/return

Flint

User avatar
Morath
a lesser mummy
a lesser mummy
Posts: 41
Joined: Tue Oct 22, 2002 3:09 pm

Thx Flint

Post by Morath » Wed Oct 30, 2002 9:57 pm

It works great...thx Flint!!

Lurker_005
a lesser mummy
a lesser mummy
Posts: 51
Joined: Thu Oct 17, 2002 12:08 pm

Post by Lurker_005 » Wed Oct 30, 2002 11:23 pm

Someone stamp this request filled.

Pats Morath, Flint, and myself on the back :lol:

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

Post by rizwank » Wed Oct 30, 2002 11:34 pm

please repost tis on the macro depot for others to use :)

rk
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]