Help request

Need help running MacroQuest 1? Too bad! Use MQ2.

Moderator: MacroQuest Developers

User avatar
Nuad
a ghoul
a ghoul
Posts: 93
Joined: Thu Jun 27, 2002 11:43 am
Location: Berlin, Germany

Help request

Post by Nuad » Fri Jun 28, 2002 5:10 am

I posted this in the wrong Forum before... deleted now.

Hi!

I need a little Macro for the Faction Quest in Erudin...

Could someone please tell me what i have to write to give a specific NPC an item?

i know about /target and /finditem to put an Item into a Container but what did i have to do to give a NPC an item (i'm a complete Newbie in programming)?

Thanks in advance...

User avatar
Nuad
a ghoul
a ghoul
Posts: 93
Joined: Thu Jun 27, 2002 11:43 am
Location: Berlin, Germany

bump carefully

Post by Nuad » Sat Jun 29, 2002 6:24 pm

.

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Sun Jun 30, 2002 1:51 am

Salutations,
see if this works...

Code: Select all

| syntax:
|  /call givetotarg targname item1 [item2 [item3 [item4]]]
| ie /call givetotarg "a Shady Swashbuckler" "Mature Cheese" "Rennet" "Bottle of Milk" "Dairy Spoon"

sub givetotarg
   /target $p0
   /sendkey down up
  :gototarg
    /face
    /if $target(distance)>=2 /goto :gototarg
  /sendkey up up
  /face
  /click right 400 300
  /delay 20

  /if "$p1"=="" /return
  /finditem $p1
  /if $find()==FALSE /return
  :itemwait0
   /if "$cursor()"!="TRUE" /goto :itemwait0
  /click left 60 60
  :itemwait1
   /if "$cursor()"=="TRUE" /goto :itemwait1

  /if "$p2"=="" /return
  /finditem $p2
  /if $find()==FALSE /return
  :itemwait2
   /if "$cursor()"!="TRUE" /goto :itemwait2
  /click left 60 115
  :itemwait3
   /if "$cursor()"=="TRUE" /goto :itemwait3

  /if "$p3"=="" /return
  /finditem $p3
  /if $find()==FALSE /return
  :itemwait4
   /if "$cursor()"!="TRUE" /goto :itemwait4
  /click left 60 170
  :itemwait5
   /if "$cursor()"=="TRUE" /goto :itemwait5

  /if "$p4"=="" /return
  /finditem $p4
  /if $find()==FALSE /return
  :itemwait6
   /if "$cursor()"!="TRUE" /goto :itemwait6
  /click left 60 223
  :itemwait7
   /if "$cursor()"=="TRUE" /goto :itemwait7
/return

User avatar
Nuad
a ghoul
a ghoul
Posts: 93
Joined: Thu Jun 27, 2002 11:43 am
Location: Berlin, Germany

Post by Nuad » Sun Jun 30, 2002 7:09 am

Thanks, i'll try it out these days... :)