pool.mac

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

kharmakazy
a lesser mummy
a lesser mummy
Posts: 62
Joined: Wed Nov 13, 2002 10:35 pm

pool.mac

Post by kharmakazy » Fri Nov 22, 2002 1:22 am

I'm new at this but here goes.

I made this to practice swimming in the safest pool i know... Plane of knowledge. it only works IN THE POOL. plus you have to turn autorun on before you start it. (i dont know how to code it yet).

It faces people on either side of the pool and autrun makes you head that way. It waits about the length of the pool and then faces someone on the other side.

note: if the npc's are killed or move this prolly wont work right.

Well i know it's stupid but maybe it will help someone as clueless as me.


Code: Select all



Sub Main 

/face ciren
/delay 80 
/face daeld
/delay 80
/call main




[/code]

Catt
a lesser mummy
a lesser mummy
Posts: 76
Joined: Mon Sep 16, 2002 2:49 am

Post by Catt » Fri Nov 22, 2002 3:21 am

Code: Select all

Sub Main 

  :loop
  /face ciren 
  /delay 80 
  /face daeld 
  /delay 80 
  /goto :loop

/return 

That should do what you want, however, you really don't need a macro for swimming, just swim into a corner, head up (so you breath) and leave it there until desired level is attained.

kharmakazy
a lesser mummy
a lesser mummy
Posts: 62
Joined: Wed Nov 13, 2002 10:35 pm

Post by kharmakazy » Fri Nov 22, 2002 4:23 am

It works just fine the way i wrote it.
It loops repeatedly. (i know ive been swimming laps from 0-61 in about an hour)

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

Post by Lurker_005 » Fri Nov 22, 2002 9:48 am

For running they usually just do a /press down UP (presses down on the UP key)

An old school way is to hold down foward and right (be sure to be looking up too) and hitting the enter key. That triggers the chat mode, and EQ continues going foward and to the right. Net effect you swim in circles till you hit another key.

Another way, swim into a corner of teh pool with a high wall that you can't get out. Look up some and turn on autorun.

Nerfy
a lesser mummy
a lesser mummy
Posts: 72
Joined: Tue Oct 15, 2002 11:37 am

Post by Nerfy » Fri Nov 22, 2002 10:14 am

You may be looping because you didn't include a /return in your code.

Just as an FYI, you could make this a bit more general using /face with a direction. I think that the verbage is 'heading'. Ah hell, let's get complicated:

Code: Select all

sub Main
   /sendkey down up             | Move forward
   /varset v1 0                 | Angle that you will face
   :Swim                        | Start Loop
      /press Page_Up            | Look up
      /face heading $v1         | Face the direction
      /delay 1s                 | Pause
      /varadd v1 90             | Direction = Old Direction + 90
      /if $v1>270 /varset v1 0  | 360 is a circle, so back to 0
   /goto :Swim                  | Loop
/return

I over commented so that you can see what things mean. Hope this helps out. This should work if you station yourself in the middle of a pool somewhere. Adding heading to /face faces you at that angle. 0=N, 90=W, 180=S, and 270=E. Couldn't tell you if 360 would do N again, so I just dropped it back to 0.

There's a difference in /press and /sendkey. /press is as if you just tapped the key. So /press Page_Up just taps your view up. It's in the loop above though, so you'll be looking straight up soon enough. /sendkey is always followed by the word UP or DOWN. Then the key name. This leaves that key in the up or down position. So if you wanted to sit (using hotkeys) you could do this:

Code: Select all

   /sendkey down Ctrl
   /press s
   /sendkey up Ctrl

That holds down CTRL, presses S, and then releases CTRL.

Hope this helps out a bit.
----------
* Nerfy *

kharmakazy
a lesser mummy
a lesser mummy
Posts: 62
Joined: Wed Nov 13, 2002 10:35 pm

Post by kharmakazy » Fri Nov 22, 2002 1:03 pm

I realize that mine isnt the most efficient but it works.

Also thanks for the face heading stuff i can put that to good use. I didnt like swimming in the corner as it didnt give me the whole swimming laps appearance i was looking for. Only problem i had was that the better i got at swimming the shorter the delays needed to be for me to turn around at the appropriate moment rather than later.

...note to self...
put in code that compares against level of swimming and adjusts delay accordingly.
...end note...

kharmakazy
a lesser mummy
a lesser mummy
Posts: 62
Joined: Wed Nov 13, 2002 10:35 pm

Post by kharmakazy » Fri Nov 22, 2002 1:04 pm

I realize that mine isnt the most efficient but it works.

Also thanks for the face heading stuff i can put that to good use. I didnt like swimming in the corner as it didnt give me the whole swimming laps appearance i was looking for. Only problem i had was that the better i got at swimming the shorter the delays needed to be for me to turn around at the appropriate moment rather than later.

...note to self...
put in code that compares against level of swimming and adjusts delay accordingly.
...end note...

arantius2
orc pawn
orc pawn
Posts: 12
Joined: Sun Sep 01, 2002 10:10 pm

Post by arantius2 » Fri Nov 22, 2002 11:30 pm

Let me preface this by stating that it has been a *long* time since I sat down to practice swimming, so things may have changed since then.

But you don't need to be moving in order to gain swimming skill. If auto-run is on, and you are in water, you will gain swimming skill. Find your favorite body of water with a corner that's higher than you can jump out of. Point yourself up a bit, and towards that corner, hit numlock, and watch the skillups fly on by.

Edit: Maybe I should have read the actual messages instead of the further contributed code snippets ;-) Anyways....

Catt
a lesser mummy
a lesser mummy
Posts: 76
Joined: Mon Sep 16, 2002 2:49 am

Post by Catt » Sat Nov 23, 2002 12:03 am

kharmakazy wrote:It works just fine the way i wrote it.
It loops repeatedly. (i know ive been swimming laps from 0-61 in about an hour)
Every Sub has a Return, where is yours?

It may work, but run it too long and it will crash, you are building a list of subs without returns, this is why /goto is used for endless loops vs. /call .

I was only offering constructive criticism, not intentionally putting you down in any way.

Ariain
a ghoul
a ghoul
Posts: 88
Joined: Fri Oct 11, 2002 10:35 am

...

Post by Ariain » Sat Nov 23, 2002 12:10 am

It seems to me he sint just doing this for skill he wants it to look like hes swimming laps to other people whic his why all your suggestions were moot to him.

Everguide
a lesser mummy
a lesser mummy
Posts: 63
Joined: Mon Jun 24, 2002 11:00 pm

Or.

Post by Everguide » Sun Nov 24, 2002 7:05 pm

Or you go to West Freeport...........go to were the caster guild is.... jump in water..... push autorun get stuck in corner.......come back in 3 hours max swiming :)

lifewolf
a ghoul
a ghoul
Posts: 143
Joined: Fri Oct 18, 2002 6:29 pm

Post by lifewolf » Wed Nov 27, 2002 10:52 am

Lurker_005 wrote:An old school way is to hold down foward and right (be sure to be looking up too) and hitting the enter key. That triggers the chat mode, and EQ continues going foward and to the right. Net effect you swim in circles till you hit another key.
That only works if you have bound a movement key (U/D/L/R) to a letter key (A,B,C..) on your keyboard.

Simpler way is to type /safelock <anything> and start swiming with the right angle, autorun on, and holding left, and hit enter.

User avatar
Imperfect
Macro Author
Macro Author
Posts: 319
Joined: Fri Jun 14, 2002 1:52 am

Post by Imperfect » Wed Nov 27, 2002 3:13 pm

repeatedly making a call will cause a memory leak. Basically your macro will crash the game or MQ after awhile. And if you are running a 9x OS it will probably crash your machine.

kkmonte
orc pawn
orc pawn
Posts: 23
Joined: Sat Dec 14, 2002 2:52 pm

hehe

Post by kkmonte » Sun Dec 15, 2002 3:02 pm

When I worked on my swimming skill, I went to felwith pool in the middle, looked straight up, swtiched views with f9 so i could see myself, and then I pushed the Up and Left key down and stuck a little screwdriver down to hold the keys down.. hehe

Things were so much easier years ago.. LOL

Nerfy
a lesser mummy
a lesser mummy
Posts: 72
Joined: Tue Oct 15, 2002 11:37 am

Post by Nerfy » Sun Dec 15, 2002 10:40 pm

Years ago? You mean before Verant nerfed screw drivers? ;)
----------
* Nerfy *