request: macro lockmap autowarp

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

Moderator: Moderators

Message
Author
mrmtsuruya
Human
Human
Posts: 21
Joined: 30 Oct 2011, 06:27
Noob?: No
Location: Philippines

request: macro lockmap autowarp

#1 Post by mrmtsuruya »

i just need a little help with my code.
it will autowarp to current lockmap.

Code: Select all

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:
########## 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!

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: request: macro lockmap autowarp

#2 Post by SkylorD »

$lockmap = @config(lockMap)

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

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

mrmtsuruya
Human
Human
Posts: 21
Joined: 30 Oct 2011, 06:27
Noob?: No
Location: Philippines

Re: request: macro lockmap autowarp

#3 Post by mrmtsuruya »

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.

Post Reply