Page 1 of 1

how to use macro buy something at npc help plz

Posted: 13 Mar 2013, 16:52
by pattarit
so is this right ?

macro buy weapon {
do buy @npc x y blade[3] 1 or do talknpc x y 4(if the item is #4) 1
}

Re: how to use macro buy something at npc help plz

Posted: 13 Mar 2013, 18:07
by Raider

Re: how to use macro buy something at npc help plz

Posted: 13 Mar 2013, 19:55
by pattarit
thx so much but i want to use macros becuz i try to do nov>monk and it have to buy the weapon
so if use the config should be like this


do conf buyAuto morning star
do conf maxAmount 1
do conf npc prt_church x y
do conf distance 5
pause 2
do reload conf
pause 10
do eq .........
pause 5
do conf buyAuto
do conf maxAmount
do conf npc
do conf distance 5
pause 2
do reload conf
}

???

Re: how to use macro buy something at npc help plz

Posted: 14 Mar 2013, 07:24
by Raider
pattarit wrote:
do conf buyAuto morning star
do conf maxAmount 1
do conf npc prt_church x y
do conf distance 5
pause 2
do reload conf
pause 10
do eq .........
pause 5
do conf buyAuto
do conf maxAmount
do conf npc
do conf distance 5
pause 2
do reload conf
}

???

Code: Select all

buyAuto Morning Star  {
maxAmount 1 
minAmount 0
npc prt_church 108 124
distance  5
}

Re: how to use macro buy something at npc help plz

Posted: 14 Mar 2013, 15:01
by pattarit
i mean in macros T T

Re: how to use macro buy something at npc help plz

Posted: 27 Jan 2015, 04:57
by cursedxxx
ehm this may be somewhat really late, but i was trying to do something similiar
essentially this was my line (in macro) to buy 100 white potions at the npc
i used 2 lines for the buying of items : 1 line to move to the npc and another to buy the item

Code: Select all

do talknpc 126 76 b b5,100 e
as simple explaination of what what does
do : tells it to run this command
talknpc : tells it you're talking to an npc
126 : x coordinate of the npc
76 : y coordinate of the npc
b : tell it you want to open the buy section
b5,100 : b5 = item 5(list starts with 0 so it's the 6th item in the list) , to seperate them and 100 : ammount
e : end the conversation with the npc


well it's a really late response im guessing you'll probably not need it again but maybe someone needs something similiar someday
have a nice day

Re: how to use macro buy something at npc help plz

Posted: 20 Jun 2017, 14:32
by blodycandy
1. use this automacro before,Your character standing near the NPC
automacro buy {
call {
do talk @npc (100 100)
do buy 4 1
stop
}
}

2.use this macro, openkore enter macro buy

macro buy {
do talk @npc (100 100)
do buy 4 1
stop
}

try it

Re: how to use macro buy something at npc help plz

Posted: 23 Jun 2017, 21:43
by SkylorD
Why don't use buyAuto ?

Re: how to use macro buy something at npc help plz

Posted: 08 Dec 2018, 22:37
by headlesscarmen
So i got the same problem when bulk buying armor for armor enhancement/enchant , and here is how i fix it.
this is my macro

Code: Select all

automacro checkeq {
  console /Buy completed./i
  call {
  call buyarmor
}
}
  
macro buyarmor {
do talknpc 341 85 b b35,1 n
}
for the first step, u have to manually enter "macro buyarmor" in the openkore console for the first purchase hence triggering the automacro through the console "Buy completed."

its a little crude but it get the job done. Haha altough i supposed a more advance/better automacro supposed to check for item amount (as a hook) but using console hook works the same for me.

im still pondering the usage of "run-once , exclusive" are they important in someway?