2 Gold onto Cursor, how?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

HELP

2 Gold onto Cursor, how?

Post by HELP » Sat Dec 06, 2003 10:41 am

I got basic idea of making macros, and getting item onto cursor, but how would I say get 2 gold out of 1000 gold in my inv, onto a cursor, so I may give it to NPC for faction?

User avatar
psychotik
a ghoul
a ghoul
Posts: 112
Joined: Mon Oct 06, 2003 3:48 am

Post by psychotik » Sat Dec 06, 2003 11:03 am

if you have some basic code of how youre doing it, post it and ill see what i can do

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

Post by Catt » Sat Dec 06, 2003 11:00 pm

I'd CTRL-Click gold 2 times.

That is, pick up 1 gold, click NPC, pick up 1 gold, click NPC, then press "give".

koad
Plugins Czar
Posts: 127
Joined: Fri May 16, 2003 8:32 pm

Post by koad » Sun Dec 07, 2003 12:24 am

this should work, dont move your give/inventory windows or its gonna mess up.

if they are overlapping they will need moved however, and then you need to force save (relog etc)

Code: Select all

|givegold.mac
|

sub main
  /target npctogivegold
  /face
  :mainloop
   
  /sendkey down ctrl
  /click left gold
  /sendkey up ctrl
  /delay 2
  /click left target
  /delay 2
  
  /sendkey down ctrl
  /click left gold
  /sendkey up ctrl
  /delay 2
  /click left target
  /delay 2
  
  /click left npctrade give
  /delay 2s
  
  /if n $char(gold)<4 /goto :mainend
  /goto :mainloop
  :mainend
/return

THANKS

It works

Post by THANKS » Sun Dec 07, 2003 4:36 am

it works! Well, keeps giving 1 gold at a time, I will add a loop to click trade every 2 gold given to NPC, but /click left gold is what I was looking for, didnt know "gold" was keyword to pick up money although should have been common sense, then Click left bank p/g/s/c is what got me confused, thought I had to be at banker, Was up 30 hours anyways and ovewr tired, anyways THANKS =)

Opps

umm

Post by Opps » Sun Dec 07, 2003 4:44 am

/click left npctrade give was already in the code, nm, just wasnt working, will look up documentations to see if there is problem with resolution or somethign, I run small screens so I can 2box without video lag.

Me again

Thanks

Post by Me again » Sun Dec 07, 2003 7:04 am

Ok, it works PERFECT.

Problem #1 was video lag, so I had to change a delay.

Problem #2 was click npc trade mouse was going to wrong spot so I moved the trade window a tad and it clicks on correct spot.

You guys own, thanks much! =)

Scary_Penguin
a lesser mummy
a lesser mummy
Posts: 76
Joined: Sun Nov 16, 2003 11:45 am

Post by Scary_Penguin » Sun Dec 07, 2003 1:39 pm

You should register so we know that Help, oops, and me again are all the same person~