Auto Vend and Buy bot. macro

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

obietobi
Noob
Noob
Posts: 13
Joined: 16 Mar 2010, 11:48
Noob?: Yes

Auto Vend and Buy bot. macro

#1 Post by obietobi »

i need help. i think there's something wrong with the conditions of the automacros. it won't trigger automatically.
thnx for your help.

Code: Select all

###############
###VENDING###
###############

automacro wrong_location {
  location not prontera 160 190
  cart White Potion >= 1
  run-once 1
  call move
  timeout 5
  }

macro move {
  do move prontera 160 190
  release wrong_location
  }

automacro shop_check {
  location prontera 160 190
  call openshop
  run-once 1
  timeout 5
  }

macro openshop {
  do openshop
  release buy_whites2
  pause 10
  }

###############
###BUY ITEM###
###############

automacro soldout_whites1 {
  console /sold out: White Potion/
  run-once 1
  exclusive 1
  call buy_whites1
  }

automacro soldout_whites2 {
  cart White Potion < 1
  run-once 1
  exclusive 1
  call buy_whites1
  }

macro buy_whites1 {
  do move prt_in 131 71
  pause 5
  release soldout_whites
  release soldout_whites2
  }


automacro buy_whites2 {
  location prt_in 131 71
  run-once 1
  call {
	pause 3
	do talk @npc (126 76)
	pause 1
	do store
	pause 1
	do buy 5 200
	pause 1
	do cart add White Potion
	pause 1
	do buy 5 200
	pause 1
	do cart add White Potion
	pause 1
	move prontera 160 190
	do relog 5
	pause 1
	}
  }
  
VashTheStampede
Plain Yogurt
Plain Yogurt
Posts: 68
Joined: 11 Jun 2011, 01:47
Noob?: No

Re: Auto Vend and Buy bot. macro

#2 Post by VashTheStampede »

You've got a macro named "move". I can't swear that Kore is incapable of overloading, but as finicky as Perl is, I kind of doubt it.

The other issue is the fact that you have location not prontera 160 190 as your auto trigger. And anytime you're not at 160 190, it triggers and moves to 160 190. This will not work like this.
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Auto Vend and Buy bot. macro

#3 Post by EternalHarvest »

VashTheStampede wrote:You've got a macro named "move". I can't swear that Kore is incapable of overloading, but as finicky as Perl is, I kind of doubt it.
There's nothing to overload - macro names aren't mixed with command names anywhere.
obietobi
Noob
Noob
Posts: 13
Joined: 16 Mar 2010, 11:48
Noob?: Yes

Re: Auto Vend and Buy bot. macro

#4 Post by obietobi »

VashTheStampede wrote: The other issue is the fact that you have location not prontera 160 190 as your auto trigger. And anytime you're not at 160 190, it triggers and moves to 160 190. This will not work like this.
That's why i have second trigger "cart White Potion >= 1"
but i think its not working. someone help please?