Page 1 of 1

sit to heal?

Posted: Sun Dec 11, 2011 2:44 am
by Golbez
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.

Re: sit to heal?

Posted: Sun Dec 11, 2011 3:14 am
by lisa
Trouble with sitting down is you can't cast any skills while sitting.
So if you get attacked then you need to either press the sit key or a movement key to be able to fight back.

It would be very easy to add in a keypress for sit when resting to get hp/mp back up but the tricky part is telling it to stand up again if needed.

Re: sit to heal?

Posted: Mon Mar 05, 2012 4:21 pm
by imaginethat
Hi
so how do you get bot to sit? it could then be forced to jumps of move when HP and MP gets to 100.
I am actually asking for my Change Channel function. I have one waypoint that seems to not deal with the changechannel very well. It sits to change channel, and when its finished it just keeps sitting, unable to cast any spells, with the camera doing a continuous 360 shot of the bot.
I would like to add a stand/jump/move at the end of my ChangeChannel function.

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;
	end

Re: sit to heal?

Posted: Mon Mar 05, 2012 7:33 pm
by lisa

Code: Select all

keyboardPress(settings.hotkeys.MOVE_FORWARD.key) 
yrest(3000)
I did some testing the other nite and hp regen was higher when I was standing, I really don't see the point in sitting to regen health.

Re: sit to heal?

Posted: Mon Mar 05, 2012 8:58 pm
by rock5
I seemed to remember once looking more closely at that. Seemed that it looked the same but it was going faster.