Automated Refiner using only macros

Moderator: Moderators

Message
Author
headlesscarmen
Noob
Noob
Posts: 17
Joined: 08 Oct 2018, 15:54
Noob?: Yes
Location: Kuala Lumpur,Malaysia

Re: Automated Refiner using only macros

#11 Post by headlesscarmen »

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: Select all

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
   }

}

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Automated Refiner using only macros

#12 Post by fadreus »

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 .

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

headlesscarmen
Noob
Noob
Posts: 17
Joined: 08 Oct 2018, 15:54
Noob?: Yes
Location: Kuala Lumpur,Malaysia

Re: Automated Refiner using only macros

#13 Post by headlesscarmen »

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

Image
FFS simple error like this...im very embarrased,thanks you fad
Slots are topHead, midHead, lowHead, leftHand, rightHand, robe, armor, shoes, leftAccessory, rightAccessory and arrow.
working like a charm :D

Post Reply