this is the macro that i want to run
##########################################
# AN INTEGRATED ELU/ORI STONE REFINERY:-
##########################################
# CONFIGURATION:-
#==================
#
# 1. Refine NPC = 63 69 prt_in
# 2. Kafra NPC = prontera 282 200
# 3. On automacro refinery please choose
# – “set option 0? for Oridecon
# – “set option 1? for Elunium
#
##########################################
automacro refinery {
map prontera
run-once 1
set options 1
set test 0
delay 2
call OreRefinery
}
macro OreRefinery {
if (@config (autoTalkCont) = 0) goto option
do conf autoTalkCont 0
:option
if ($options = 1) goto option1
:option0
$ore = Rough Oridecon
$pure = Oridecon
$resp = 0
goto store
:option1
$ore = Rough Elunium
$pure = Elunium
$resp = 1
:store
if (@config (storageAuto_npc) = prontera 282 200) goto storenext
do conf storageAuto_npc prontera 282 200
:storenext
do conf storageAuto_keepOpen 1
do eval $::Macro::Data::varStack{test} = $::cart{exists}
if ($test = 0) goto end2
log Refine $ore In Progress!!!
do autostorage #You may use the chat storage here
pause 1
:start
call frmstoretoinv
if ($storeore = 0) goto end
call frminvtocart1
call cartweight
$storageore = @storamount ($ore)
if ($storageore < 5) goto initial
if ($addoretocart > 0) goto start
call selfweight
if ($getore > 0) goto start
pause 1
:initial
do storage close
do move 60 68 prt_in
:talk
$check = @invamount ($ore)
if ($check < 5) goto getfromcart
call talk
:getfromcart
pause 1
call getfrmcart
$check = @invamount ($ore)
if ($check < 5) goto store
$pure1 = @invamount ($pure)
if ($pure1 = 0) goto talk
if ($pure1 > 0) goto addpuretocart
call cartweight
if ($addoretocart > 0) goto getfromcart
goto talk
:addpuretocart
call cartweight
call pureadd
goto getfromcart
:end
log No More Ore: $ore Finish Refine
stop
:end2
log You dont have a Cart!!! This macro package need to use cart.
}
macro frmstoretoinv {
log Try To Get $ore From Storage Into Inventory
:x
pause 1
$pure1 = @invamount ($pure)
$pure2 = @cartamount ($pure)
if ($pure1 = 0) goto x1
log Try To Add $pure1 ea Of $pure In Inventory To Storage
do storage add @inventory ($pure) $pure1
:x1
pause 1
if ($pure2 = 0) goto x2
log Try To Add $pure2 ea Of $pure In Cart To Inventory
$getpure = 0
do eval $::Macro::Data::varStack{getpure} = int(($::char->{‘weight_max’} –
$::char->{‘weight’}) * 90 / 100 / 20)
do cart get @cart ($pure) $getpure
goto x
:x2
$getore = 0
do eval $::Macro::Data::varStack{getore} = int(($::char->{‘weight_max’} –
$::char->{‘weight’}) * 90 / 100 / 100)
if ($getore = 0) goto stop
$oxxx = @eval ($getore*5)
$storeore = @storamount ($ore)
if ($storeore = 0) goto stop1
if ($storeore < $oxxx) goto next1
do storage get @storage ($ore) $oxxx
goto end
:next1
$x = @eval ($storeore/5)
$ox = @arg (“$x”, 1)
if ($ox = 0) goto stop1
do storage get @storage ($ore) @eval ($ox*5)
goto end
:stop
log You Are Over Weight
goto end
:stop1
log No more Ore To Refine
:end
}
macro frminvtocart1 {
log Try To Add $ore In Inventory To Cart
:x
pause 1
$pure1 = @invamount ($pure)
$pure2 = @cartamount ($pure)
if ($pure1 = 0) goto x1
do storage add @inventory ($pure) $pure1
:x1
pause 1
if ($pure2 = 0) goto x2
log Try To Add $pure2 ea Of $pure In Cart To Inventory
$getpure = 0
do eval $::Macro::Data::varStack{getpure} = int(($::char->{‘weight_max’} –
$::char->{‘weight’}) * 90 / 100 / 20)
do cart get @cart ($pure) $getpure
goto x
:x2
$citems = @eval ($::cart{items})
$cmitems = @eval ($::cart{items_max})
call cartweight
if ($citems = $cmitems) goto stop1
if ($addoretocart = 0) goto stop2
$oxx = @eval ($addoretocart*5)
$invore = @invamount ($ore)
if ($invore = 0) goto end
if ($invore < $oxx) goto next
do cart add @inventory ($ore) $oxx
goto end
:next
$x = @eval ($invore/5)
$ox = @arg (“$x”, 1)
if ($ox = 0) goto end
do cart add @inventory ($ore) @eval ($ox*5)
goto end
:stop1
log Max Items Number Reached In Cart
goto end
:stop2
log Cart Is Over Limit
log Proceed To Refine Npc
:end
}
macro getfrmcart {
log Try To Get $ore From Cart Into Inventory
$getore = 0
do eval $::Macro::Data::varStack{getore} = int(($::char->{‘weight_max’} –
$::char->{‘weight’}) * 90 / 100 / 100)
if ($getore = 0) goto stop
$amgetore = @eval ($getore*5)
$cartore = @cartamount ($ore)
if ($cartore < 5) goto end
if ($cartore < $amgetore) goto nextget
do cart get @cart ($ore) $amgetore
goto end
:nextget
$x = @eval ($cartore/5)
$ox = @arg (“$x”, 1)
do cart get @cart ($ore) @eval ($ox*5)
goto end
:stop
log Cannot Get Ore From Cart: You Are Over Limit
:end
pause 1
}
macro talk {
$orevalue = @invamount ($ore)
while ($orevalue >= 5) as talk
pause 1
do talknpc 63 69 c r$resp c
pause 1
$orevalue = @invamount ($ore)
end talk
}
macro cartweight {
$addoretocart = 0
do eval $::Macro::Data::varStack{addoretocart} = int(($::cart{‘weight_max’} –
$::cart{‘weight’}) / 100)
}
macro selfweight {
$getore = 0
do eval $::Macro::Data::varStack{getore} = int(($::char->{‘weight_max’} –
$::char->{‘weight’}) * 90 / 100 / 100)
}
macro pureadd {
$pcanadd = 0
do eval $::Macro::Data::varStack{pcanadd} = int(($::cart{‘weight_max’} –
$::cart{‘weight’}) / 20)
if ($pcanadd = 0) goto end
$pure1 = @invamount ($pure)
if ($pure1 = 0) goto end
if ($pure1 > $pcanadd) goto add
do cart add @inventory ($pure) $pure1
goto end
:add
do cart add @inventory ($pure) $pcanadd
:end
}
but when i run openkore.pl and entered "macro list" it only shows
The following macros are available:
------------macros-----------
----------automacros---------
------------Perl Sub----------
i followed all the instructions for a macro plugin
openkore runs clean, no errors.
but cant see the macro in macros.txt
already searched answers for my problem.
but havent found one.
this is whats in my config.txt
macro_readmanual red/chili
macro_nowarn 0
macro_file macros.txt
macro_allowDebug 0
macro_orphans terminate
please help, thank you
My macros wont run and is not in the macro list
Moderator: Moderators
-
- Noob
- Posts: 1
- Joined: 06 Jan 2014, 09:55
- Noob?: Yes
-
- Halfway to Eternity
- Posts: 398
- Joined: 08 Jun 2012, 15:42
- Noob?: No
- Location: Brazil
Re: My macros wont run and is not in the macro list
If you try to manually activate the macro (command macro OreRefinery), works?
On the macro, she is very messy.
Use the new flow settings to make it more readable: http://openkore.com/index.php/Macro_plugin#If
On the macro, she is very messy.
Use the new flow settings to make it more readable: http://openkore.com/index.php/Macro_plugin#If