Hey guys, I'm trying to make a script that does the following:
Goes to town when no buffs
Buffs
Ports to MOS from rune village (back ent)
Run to bot spot
Start bot.
But it doesn't quite seem to work. Can someone point out my problem(s)
I went to one of the l2w scripts posted in the stickie in L2 macros, bots, ect section for the buff check code.
Any help would be greatly appreciated.
Thanks,
Tommy14
Goes to town when no buffs
Buffs
Ports to MOS from rune village (back ent)
Run to bot spot
Start bot.
But it doesn't quite seem to work. Can someone point out my problem(s)
Code:
//Loop Start\\
LABEL(FOREVER)
//Buff Check\\
POSOUTRANGE(43898, -47814, -798)
{
CALL(BUFFCHECK)
}
//Calls\\
POSINRANGE(43898, -47814, -798)
{
CALL(RUNTOBUFFS)
CALL(RUNTOGK)
CALL(RUNTOSPOT)
}
//Loop End\\
JMP(FOREVER)
//Labels\\
LABEL(RUNTOBUFFS)
{
MSG(Running to Buffer...)
MOVETO(43932, -47709, -798)
NPCSEL(Beryl[ID=31323])
NPCDLG(Beryl[ID=31323])
MSG(Buffing...)
DELAY(1000)
DLGSEL(View the list of available Magical Support.)
DELAY(1000)
DLGSEL(Mages)
DELAY(1000)
DLGSEL(Chant of Spirit)
DELAY(1000)
DLGSEL(Chant of Protection)
DELAY(1000)
DLGSEL(Resist Shock)
DELAY(1000)
DLGSEL(Mental Shield)
DELAY(1000)
DLGSEL(Prophecy of Water)
DELAY(1000)
RETURN()
}
LABEL(RUNTOGK)
{
MSG(Running to gatekeeper...)
MOVETO(43898, -47814, -798)
NPCSEL(Ilyana[31320])
NPCDLG(Ilyana[31320])
DLGSEL(Ilyana Teleport)
MSG(Teleporting...)
DELAY(1000)
DLGSEL(Monastery of Silence - 14000 Adena)
DELAY(1000)
RETURN()
}
LABEL(RUNTOSPOT)
{
MSG(Moving to bot spot...)
MOVETO(122826, -74857, -2885)
MOVETO(120779, -74842, -3286)
MOVETO(120684, -75213, -2370)
MOVETO(120684, -75990, -3270)
MOVETO(120733, -76360, -3270)
MOVETO(120070, -76399, -3270)
MOVETO(119854, -76798, -3270)
MOVETO(118993, -77317, -3389)
MOVETO(118933, -77917, -3524)
RETURN()
}
LABEL(BUFFCHECK)
{
CharStatus(CMP,<=,3662)
{
CharStatus(MP,>=,63)
{
CharStatus(CMP,<=,2950)
{
CALL(TOTOWN)
}
}
}
RETURN()
}
LABEL(TOTOWN)
{
MSG(Going to town...)
SET(FIGHTSTOP)
DELAY(25000)
USEITEM(Escape - Rune Township[ID=13412])
MSG(Returning to town...)
SET(FIGHTSTART)
DELAY(20000)
CALL(FOREVER)
}
Any help would be greatly appreciated.
Thanks,
Tommy14