Openkore.com

OpenKore Forums
It is currently 15 Dec 2018, 17:32

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: request: macro lockmap autowarp
PostPosted: 11 Apr 2014, 10:55 
Offline
Human
Human
User avatar

Joined: 30 Oct 2011, 06:27
Posts: 22
Location: Philippines
i just need a little help with my code.
it will autowarp to current lockmap.

Code:
automacro healer {
  status not Blessing
  status not Inc Agi
  status not Spirit
  exclusive 1
  map mjolnir_03
  timeout 2
  call heal
}

macro heal {
  do c @go 6
  pause 1
  do talk @npc (134 123)
  pause 2
  do c @warp mjolnir_03 # i want to do @warp configured in my lockmap - here was given
  release healer
}


here's why:

Quote:
########## Use loot command ##########
automacro loot {
inventory "Gokurin" < 600
inventory "Fragment of Darkness" < 200
inventory "Cyfar" < 400
inventory "Dark Mask" < 100
priority 1
run-once 1
overrideAI 1
call WOD
}

macro WOD {
[
do c @alootid 13006
do c @warp mjolnir_03
do conf lockMap mjolnir_03
do conf teleportAuto_useChatCommand @warp mjolnir_03
]
}

automacro loot1 {
inventory "Gokurin" >= 600
inventory "Fragment of Darkness" < 200
inventory "Cyfar" < 400
inventory "Dark Mask" < 100
priority 2
run-once 1
overrideAI 1
call FOD
}

macro FOD {
[
do c @alootid 7798
do c @warp moc_fild21
do conf lockMap moc_fild21
do conf teleportAuto_useChatCommand @warp moc_fild21
]
}

automacro loot2 {
inventory "Gokurin" >= 600
inventory "Fragment of Darkness" >= 200
inventory "Cyfar" < 400
inventory "Dark Mask" < 100
priority 3
run-once 1
overrideAI 1
call Cyfarr
}

macro Cyfarr {
[
do c @alootid 7053
do c @warp gl_prison1
do conf lockMap gl_prison1
do conf teleportAuto_useChatCommand @warp gl_prison1
]
}

automacro loot3 {
inventory "Gokurin" >= 600
inventory "Fragment of Darkness" >= 200
inventory "Cyfar" >= 400
inventory "Dark Mask" < 100
priority 4
run-once 1
overrideAI 1
call DarkMaskk
}

macro DarkMaskk {
[
do c @alootid 7157
do c @warp ama_dun03
do conf lockMap ama_dun03
do conf teleportAuto_useChatCommand @warp ama_dun03
]
}

automacro quit {
inventory "Gokurin" >= 600
inventory "Fragment of Darkness" >= 200
inventory "Cyfar" >= 400
inventory "Dark Mask" >= 100
priority 5
run-once 1
overrideAI 1
call exit
}

macro exit {
[
do c @warp alberta_in 130 55
do conf lockMap alberta_in
do conf teleportAuto_useChatCommand @warp alberta_in
]
do quit
}


in every lockmap when status are not found, will autowarp to current lockmap configured by macro.
thanks!


Top
 Profile  
 
 Post subject: Re: request: macro lockmap autowarp
PostPosted: 11 Apr 2014, 22:25 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1212
Location: Brazil
$lockmap = @config(lockMap)

http://www.openkore.com/index.php/Macro_plugin

@config (<variable>)
Returns the value of <variable> specified in config.txt.

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

viewtopic.php?f=10&t=16117

Thanks for this Eternal! =D <3<3


Top
 Profile  
 
 Post subject: Re: request: macro lockmap autowarp
PostPosted: 12 Apr 2014, 08:16 
Offline
Human
Human
User avatar

Joined: 30 Oct 2011, 06:27
Posts: 22
Location: Philippines
SkylorD wrote:
$lockmap = @config(lockMap)

http://www.openkore.com/index.php/Macro_plugin

@config (<variable>)
Returns the value of <variable> specified in config.txt.


thank you for this sir.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


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