http://wiki.openkore.com/index.php/Macro_plugin
You must read :
http://wiki.openkore.com/index.php/Macr ... Automacros -> Automacro syntax
http://wiki.openkore.com/index.php/Macr ... cro_Syntax -> Macro syntax (That's)
You can save the new login and password in your macros.txt replacing the username and password lines.
http://wiki.openkore.com/index.php/Conf
You need to use the "do" before all console commands.
http://wiki.openkore.com/index.php/Cate ... le_Command
do move (In your console you just need type "move x y", but with macros you must use "do")
do conf <variable> <value> -> do conf lockMap prt_fild08 | do conf username SkylorD | do conf password 6mole6dura|
do relog <time>
do is <item index>
For example :
In last lines of your quest macro, you can insert the code to change your infos or you can call other macro using the "call" parameter to change your infos.
E.G :
macro ref {
do move prt_in 59 60
call ref-while
}
macro ref-while {
log start refining with
$ori = @invamount (Rough Oridecon) R. Oris
$elu = @invamount (Rough Elunium) R. Elus
log $ori $elu
while (@invamount (Rough Oridecon) > 4) as loop
do talk 0
pause 0.8
do talk resp 0
call ref-while
end loop
while (inventory (Rough Elunium) > 4) as loop
do talk 0
pause 0.8
do talk resp 1
call ref-while
end loop
stop
}
You should call your macro to change your login, pass and relog.
You must use the call in your other macro...
E.g :
Code: Select all
macro changelogin {
$login = SkylorD
$pass = 6mole6dura
do conf username $login
do conf password $pass
do relog 8
}
or (Suppose it's your token quest automacro), add this code or do a call
Code: Select all
automacro tokenquest {
Conditions...
call {
<macro instructions (and only them, as this is regular macro)>
$login = SkylorD
$pass = 6mole6dura
do conf username $login
do conf password $pass
do relog 8
}
}
using call :
Code: Select all
automacro tokenquest {
Conditions...
call {
<macro instructions (and only them, as this is regular macro)>
call changelogin
}
}
macro changelogin {
$login = SkylorD
$pass = 6mole6dura
do conf username $login
do conf password $pass
do relog 8
}