flame away, heres my first attempt at a script

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

Moderator: MacroQuest Developers

User avatar
Damien_lord_of_newbs
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sun Nov 03, 2002 7:34 am

flame away, heres my first attempt at a script

Post by Damien_lord_of_newbs » Sun Nov 03, 2002 7:42 am

Hello, totally new to MQ here, just downloaded it tonight. Now I know everyones opinion of newbies, so flame me if ya like. but im not here to "Ge+ ph4T lO0T$ " just for the fun of it all, i like to break stuff, so with out further adiue here is my first atempt at a script, just tryin to figure out the syntax (not exactly a coder but hey, why not eh?) so flame away, id like some feedback from you more experience folk as to how to improve my style

Code: Select all

|<mymac.mac>

|Created by Damien Lord of Newbs from Hell

|this is just a test please rip into my code and flame me as you see fit


Sub Main
	/echo Resting to Full health and then standing up
	/stand
	/sit
	/if $gm==TRUE /call hide
	/if $char(hp,pct)==100 /call restup
	/call alldone
/return

Sub restup
	:resting
/delay 10s
	/if n $char(hp,pct)<100 /goto :resting
	} else /call alldone
/return

Sub alldone

	/stand
	/msgbox <All done resting!!>
	/unload
	/return

Sub hide
	/afk brb getting food
	:hiding
/delay 300s
	/if $gm==TRUE /goto :hiding
	} else /afk
/return
<<I hAve c0ME F0r J00R K3wl $CripT5>> oh wait......im not a "kewl dood"

User avatar
Madman
a ghoul
a ghoul
Posts: 144
Joined: Wed Jun 26, 2002 4:16 pm

Post by Madman » Sun Nov 03, 2002 8:01 am

well it dont look like a money maker and it does look like you did it yourself so there is no reason to flame it..


but if you are doing nothing other than sitting why should you hide from a gm its not as if you are exploiting anything

you may want to hide if an npc comes withn a certian radius of you though..


Madman

Snappahead
orc pawn
orc pawn
Posts: 19
Joined: Sun Oct 27, 2002 4:41 am

Post by Snappahead » Sun Nov 03, 2002 8:22 am

I don't think he is acutally hiding, just changing his afk message in case a gm in the zone asks him what he is doing - although I really don't think you there would be any problems with gm's running this macro - people go afk all the time for extended periods - that is not a bannable offense ;) (yet)

Good job on the macro Lord of the Newbs - I have been trying a few myself.

I have to admit that I first heard about MQ as a way to make oober platz, but since finding and using it, while curious about the abuses that have been available, I have had much more fun with it making little macro's to do all the mundane stuff for me in EQ.

Stupid things like gettin a mule I had in the bazaar to send my character I was playing tells in funny languages for hours to raise skill (yeah, I know I am a looser :P) and improve sense heading after levelling without getting RSI.

The druid.mac is an outstanding example of what you can do with this program. I used to often play 2 characters at the same time by frantically switching mice and keyboards, but that macro has made my time online a lot more enjoyable because I can actually chill out and concerntrate on what I am trying to do, rather than which mouse, keyboard or monitor I need to look at.

Back to your macro though - I am at work so can't test it but it looks like it should work. The /unload command you used in your Sub alldone will actually unload MQ from your system tray (I think), so if you are intending on running other macro's after you use this one, you might want to think about incorportating the /endmacro command in there instead. But hey, I am a newb too - could be wrong. Just a suggestion.

Cheers,

Snappahead

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

Post by Flint_the_dorf » Sun Nov 03, 2002 9:26 am

This will work

Code: Select all

|<mymac.mac> 

|Created by Damien Lord of Newbs from Hell 

|fyi newbies that try usually don't get flamed =)


Sub Main 
   /echo Resting to Full health and then standing up 
   /stand
   /sit 
   /if $gm==TRUE /call Crap 
   /call Restup

/return 

Sub Restup 
   
   :resting 
/delay 10s 
   /if n $char(hp,pct)<100 /goto :resting 
   /if n $char(hp,pct)>=100 /call Alldone 
 /doevents
  /goto :resting
/return 

Sub Alldone 
   /stand 
   /echo Done resting      |you can change that message if you want ;) 
    /unload                           |this does unload mq so change it to end unless this is all your using mq for

/return 

Sub Crap 
   /afk brb getting food 
   /if $gm==TRUE /call Alldone

/return

Flint

User avatar
Damien_lord_of_newbs
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sun Nov 03, 2002 7:34 am

Post by Damien_lord_of_newbs » Sun Nov 03, 2002 3:23 pm

yeah i know the hiding isnt really needed to hide from gms while this is running, i just kinda did this to get a feel for the commands so i could pretty much try out all the different ways to take care of a problem, basicly a learning tool for me. i also heard about MQ as a way to make money, but really had no intention of the such, after playing eq since beta 4 ive kinda gotten tired of the same old exp grind day after day, so i just really look for weird things to do with eq, basicly just to keep my hands from being idle :)
<<I hAve c0ME F0r J00R K3wl $CripT5>> oh wait......im not a "kewl dood"

GD
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jun 29, 2002 11:57 pm

Post by GD » Sun Nov 03, 2002 7:28 pm

Now I just wish more people would take example from you and actually put a little effort in trying to make scripts on their own, instead of just coming in and asking for a macro to do this or that.
Opinions are like assholes, everyone has one, but most of them stink.

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

Post by rizwank » Mon Nov 04, 2002 2:41 am

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

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

User avatar
Damien_lord_of_newbs
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sun Nov 03, 2002 7:34 am

Post by Damien_lord_of_newbs » Mon Nov 04, 2002 5:40 am

i try :) whats the point in using extensive macros & other programs when you dont know how to fix somthing when it dont work, already tryin to make a macro to use my druid for powerlvling......this one is gonna be tough
<<I hAve c0ME F0r J00R K3wl $CripT5>> oh wait......im not a "kewl dood"