Openkore.com
http://forums.openkore.com/

Automated Refiner using only macros
http://forums.openkore.com/viewtopic.php?f=33&t=15154
Page 2 of 2

Author:  headlesscarmen [ 05 Dec 2018, 02:45 ]
Post subject:  Re: Automated Refiner using only macros

hi,

i get the macro working with nidhogur garment (Piece Of Angent Skin) working wonderfully.

however when i change to Valkyrie Shield ( Valkyrja's Shield) it doesnt auto refine
manual macro (console : macro refinement1/2 works fine), elunium automacros also triggered, however i cant get the AUTO-refining going :/

i logged into openkore and it said the item name is Valkyrja's Shield.

disclaimer
newest openkore installed
this macro works fine with nidhogur garment
server doesnt have +4 safe limit options.

Code:
macro refinement {
   do talknpc 63 60 c r0 c r0 c c r0 n
}

macro refinement2 {
   do talknpc 63 60 c r0 c r0 n
}

macro equipnow {
[
   $plus0 = @invamount(Valkyrja's Shield [1])
   $plus1 = @invamount(+1 Valkyrja's Shield [1])
   $plus2 = @invamount(+2 Valkyrja's Shield [1])
   $plus3 = @invamount(+3 Valkyrja's Shield [1])
   $plus4 = @invamount(+4 Valkyrja's Shield [1])
   $plus5 = @invamount(+5 Valkyrja's Shield [1])
   $plus6 = @invamount(+6 Valkyrja's Shield [1])
   $plus7 = @invamount(+7 Valkyrja's Shield [1])
   
   if ($plus0 >= 1) goto equip0
   if ($plus1 >=  1) goto equip1
   if ($plus2 >=  1) goto equip2
   if ($plus3 >=  1) goto equip3
   if ($plus4 >=  1) goto equip4
   if ($plus5 >=  1) goto equip5
   if ($plus6 >=  1) goto equip6
   if ($plus7 >=  1) goto equip7
   stop
   
   :equip0
   do eq Valkyrja's Shield
   stop
   :equip1
   do eq +1 Valkyrja's Shield
   stop
   :equip2
   do eq +2 Valkyrja's Shield
   stop
   :equip3
   do eq +3 Valkyrja's Shield
   stop
   :equip4
   do eq +4 Valkyrja's Shield
   stop
   :equip5
   do eq +5 Valkyrja's Shield
   stop
   :equip6
   do eq +6 Valkyrja's Shield
   stop
   :equip7
   do eq +7 Valkyrja's Shield
   stop
]
}


#----------autmacros start here

automacro refine_start0 {
  priority 1
  inventory Elunium >= 4
  equipped left hand Valkyrja's Shield
  location prt_in
  exclusive 1
   
  run-once 1
  call {
  call refinement2 4
  call equipnow
  release all
}
}

automacro refine_start1 {
  priority 1
  inventory Elunium >= 3
  equipped left hand +1 Valkyrja's Shield
  location prt_in
  exclusive 1
   
  run-once 1
  call {
  call refinement2 3
  call equipnow
  release all
  }
}

automacro refine_start2 {
  priority 1
  inventory Elunium >= 2
  equipped left hand +2 Valkyrja's Shield
  location prt_in
  exclusive 1
   
  run-once 1
  call {
  call refinement2 2
  call equipnow
  release all
  }
}

automacro refine_start3 {
  priority 1
  inventory Elunium >= 1
  equipped left hand +3 Valkyrja's Shield
  location prt_in
  exclusive 1
   
  run-once 1
  call {
  call refinement2 1
  call equipnow
  release all
  }
}

automacro refine_start4 {
  priority 1
  inventory Elunium >= 1
  equipped left hand +4 Valkyrja's Shield
  location prt_in
  exclusive 1
   
  run-once 1
  call {
  call refinement
  call equipnow
  release all
  }
}

automacro refine_start5 {
  priority 1
  inventory Elunium >= 1
  equipped left hand +5 Valkyrja's Shield
  location prt_in
  exclusive 1
   
  run-once 1
  call {
  call refinement
  call equipnow
  release all
  }
}

automacro refine_start6 {
  priority 1
  inventory Elunium >= 1
  equipped left hand +6 Valkyrja's Shield
  location prt_in
  exclusive 1
   
  run-once 1
  call {
  call refinement
  call equipnow
  release all
  }
}

automacro refine_start7 {
  priority 1
  inventory Elunium >= 1
  equipped left hand +7 Valkyrja's Shield
  location prt_in
  exclusive 1
   
  run-once 1
  call {
  call refinement
  call equipnow
  release all
  }
}

#--------------Collect

automacro success8 {
  equipped left hand +8 Valkyrja's Shield
  run-once 1
  exclusive 1
  call {
   do uneq +8 Valkyrja's Shield
   do cart add +8 Valkyrja's Shield
   call equipnow
   release all
   }
}

#-------------automacro elunium check
automacro elunium {
  priority 0
  location prt_in
  inventory Elunium <= 5
  run-once 1
  exclusive 1
  call {
   do autostorage
   release all
   }

}

Author:  fadreus [ 05 Dec 2018, 04:38 ]
Post subject:  Re: Automated Refiner using only macros

It's leftHand, not left hand.

Image

Btw, you can simply use equipAuto in config rather than need run command to equip manually and set to loop until refine == +10 rather than this long script :D .

Author:  headlesscarmen [ 05 Dec 2018, 04:47 ]
Post subject:  Re: Automated Refiner using only macros

fadreus wrote:
It's leftHand, not left hand.

Image



FFS simple error like this...im very embarrased,thanks you fad

Quote:
Slots are topHead, midHead, lowHead, leftHand, rightHand, robe, armor, shoes, leftAccessory, rightAccessory and arrow.


working like a charm :D

Page 2 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/