Openkore.com

OpenKore Forums
It is currently 11 Dec 2018, 07:20

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Automated Refiner using only macros
PostPosted: 05 Dec 2018, 02:45 
Offline
Noob
Noob
User avatar

Joined: 08 Oct 2018, 15:54
Posts: 16
Location: Kuala Lumpur,Malaysia
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
   }

}


Top
 Profile  
 
 Post subject: Re: Automated Refiner using only macros
PostPosted: 05 Dec 2018, 04:38 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 483
Location: Genting Highland, Malaysia
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 .

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Top
 Profile  
 
 Post subject: Re: Automated Refiner using only macros
PostPosted: 05 Dec 2018, 04:47 
Offline
Noob
Noob
User avatar

Joined: 08 Oct 2018, 15:54
Posts: 16
Location: Kuala Lumpur,Malaysia
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group