Turning in PP

Got a cool macro idea? Wanna request a macro? Here is the place for you!

Moderator: MacroQuest Developers

a

Turning in PP

Post by a » Sat Dec 06, 2003 9:56 am

For faction building, is there any macros to hand in say 2gp to an NPC in Qeynos, aka Paladin faction stuff

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:14 am

Code: Select all

#turbo 
Sub Main 
   /declare l0 local 
   :Loop 
      /sendkey down ctrl 
      /for l0 1 to 2 
         /click left gold
         /delay 5 
         /click left target
         /delay 5 
      /next l0 
      /sendkey up ctrl 
      /delay 3
      /click left npctrade give 
      /delay 5 
   /goto :Loop 
/return

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Thu Dec 18, 2003 5:50 pm

what all would you have to add to make this work for the casino? =p

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

Post by psychotik » Thu Dec 18, 2003 6:05 pm

Code: Select all

Sub Main 
   /declare l0 local 
   :Loop 
      /sendkey down ctrl 
      /for l0 1 to 4 
         /finditem "@Param0" 
           /if $find()==FALSE /goto :Done
         /delay 3 
         /if n @l0==1 /click left target 
         /delay 3 
         /if n @l0>1 /click left npctrade $int($calc(@l0-1)) 
         /delay 3 
      /next l0 
      /sendkey up ctrl 
      /delay 3
      /click left npctrade give 
      /delay 5 
   /goto :Loop 
:Done
      /sendkey up ctrl 
      /delay 3
      /click left npctrade give 
/end
/return
someone elses code, i like it though, usage /macro <name> "king's court token"

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Thu Dec 18, 2003 6:38 pm

that will clear the shit items you get in return? hehe think yes is the awnser just wanted to make sure

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

Post by psychotik » Thu Dec 18, 2003 6:49 pm

Code: Select all

Sub Main 
   /declare l0 local 
   :Loop 
      /sendkey down ctrl 
      /for l0 1 to 4 
         /finditem "@Param0" 
           /if $find()==FALSE /goto :Done 
         /delay 3 
         /if n @l0==1 /click left target 
         /delay 3 
         /if n @l0>1 /click left npctrade $int($calc(@l0-1)) 
         /delay 3 
      /next l0 
      /sendkey up ctrl 
      /delay 3 
      /click left npctrade give 
      /delay 5 
       :cursorclear
        /if $cursor(name)=="whatever" {
        /destroy
        /goto :cursorclear
        } else {
        /autoinv
        }
   /goto :Loop 
:Done 
      /sendkey up ctrl 
      /delay 3 
      /click left npctrade give 
/end 
should work, change "whatever" to the name of the item you want destroyed
Last edited by psychotik on Thu Dec 18, 2003 6:57 pm, edited 3 times in total.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Thu Dec 18, 2003 6:52 pm

curser should be spelled cursor.

:wink:

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

Post by psychotik » Thu Dec 18, 2003 6:56 pm

its been a long day :P

leptoid
a lesser mummy
a lesser mummy
Posts: 35
Joined: Tue May 11, 2004 4:47 pm

Post by leptoid » Fri Jun 25, 2004 2:26 pm

lol... how's this for a delayed response? Thanks psychotik for your macro. I have to turn in lots of gold to the same guy.. lol. I have a question for you though. Is there any way to make the macro stop once my faction is maxed so I can do this without wasting lots of Gold?

Sporked
orc pawn
orc pawn
Posts: 28
Joined: Tue Jan 06, 2004 7:08 am

Post by Sporked » Mon Jun 28, 2004 1:27 pm

Well you shouldn't be afk macroing this to begin with. so at most you'll only lose 5 gold .. right?

... but i suppose you could set up a custom event to /endmacro
#event "could not get" /endmacro
or something along those lines