sit to heal?
Posted: Sun Dec 11, 2011 2:44 am
i was just wondering if there was a way to make the bot heal by siting down. i often run out of pots to heal and think it would be better to let the bot tell my character to sit.
Code: Select all
-- Function to Change Channels
function ChangeChannel()
if _showfunctiondebug then cprintf(cli.blue," DEBUGc:: Starting ChangeChannel \n") ; end;
id = RoMScript("GetCurrentParallelID()");
cprintf(cli.lightblue, "\n Change Channels: \n");
PrintLine("lightblue");
if ( id == 1 ) then
RoMScript("ChangeParallelID(2)");
printf(" Current channel: 1 \n");
printf(" Changing to Channel: 2 \n");
elseif ( id == 2 ) then
RoMScript("ChangeParallelID(3)");
printf(" Current channel: 2 \n");
printf(" Changing to Channel 3 \n");
elseif ( id == 3 ) then
RoMScript("ChangeParallelID(1)");
printf(" Current channel: 3 \n");
printf(" Changing to Channel 1 \n");
end;
yrest(30000); -- have been making this longer and longer to see if it helps to get the bot back on its feet.
PrintLine("lightblue");
if _dotodolist == 1 then
printf(" Crossing ChangeChannel off the todo list. Setting _changechannel to 0 \n");
end
_changechannel = 0;
endCode: Select all
keyboardPress(settings.hotkeys.MOVE_FORWARD.key)
yrest(3000)