Hi everyone, i am currently playing on a freeshard that allows scripts and automation in any form.
The shard contains a questing system, which works as follow:
-take quest from quester
-quester assigns you to a quest of killing one type of mobs (out of three different)
now, what i want the script to do, is this:
-take quest from quester (got macro for it)
-check via journal, whether i have to kill Abyss, Palifico, or Marty
-tp to the location via runebook (got macro for it)
-wait at the location as long as message Mission Complete is not in journal
-if message Mission Complete is in journal move some tiles (Orion.Walkto) and wait some seconds
-tp back to City
-go to quester
...and then from the beginning...
I kind of got everything in the script already, i just messed up big big time with the syntax, currently Line 9 is giving me Syntax Error.
Here's what i got:
function quester()
{
while(true)
{
Orion.PlayMacro('takequest');
Orion.Wait(1000);
{
if(Orion.InJournal('NPC: Marty.')
{
Orion.PlayMacro('tpMarty');
{
while(!Orion.InJournal('Mission Complete'));
{
Orion.Wait(2000);
}
else
Orion.WalkTo(1285, 494, 11, [distance=1]);
Orion.Wait(8000);
Orion.PlayMacro('tpTR');
Orion.Wait(500);
Orion.Exec('walktoquester');
Orion.Wait(20000);
Orion.ClearJournal();
}
Orion.Wait(100);
}
Orion.Wait(100);
else if(Orion.InJournal('NPC: Palifico.')
{
Orion.PlayMacro('tpPalifico');
{
while(!Orion.InJournal('Mission Complete'));
{
Orion.Wait(2000);
}
else
Orion.WalkTo(1285, 494, 11, [distance=1]);
Orion.Wait(8000);
Orion.PlayMacro('tpTR');
Orion.Wait(500);
Orion.Exec('walktoquester');
Orion.Wait(20000);
Orion.ClearJournal();
}
Orion.Wait(100);
}
Orion.Wait(100);
else if(Orion.InJournal('NPC: Abyss.')
{
Orion.PlayMacro('tpAbyss');
{
while(!Orion.InJournal('Mission Complete'));
{
Orion.Wait(2000);
}
else
Orion.WalkTo(1285, 494, 11, [distance=1]);
Orion.Wait(8000);
Orion.PlayMacro('tpTR');
Orion.Wait(500);
Orion.Exec('walktoquester');
Orion.Wait(20000);
Orion.ClearJournal();
}
Orion.Wait(100);
}
Orion.Wait(100);
}
hope anyone whos not as bad in scripting as i am, is willing to help.
Thanks for your attention
Jens