Camp Ground Script

darkkol

New member
Just a quick request. A simple script to allow my characters to use the campground to rest up to full for both magic and HP.
 

Nightmist

Member
Non-ASH version:
Code:
while health != 100%
rest 1
while mana != 100%
rest 1
And yes it doesnt use the beanbag chair but I dont think theres a way to check if you have one or not... (Without going into ash scripting)


ASH version:
Code:
boolean HaveBeanbag()
{
 if( my_mp() != my_maxmp())
 {
  int PreMP = my_mp();
  cli_execute( "relax 1");
  if( PreMP != my_mp())
  {
  return true;
  }
  else
  {
   return false;
  }
 }
 return false;
}

void Campground()
{
 while( my_hp() != my_maxhp())
 {
  cli_execute( "rest 1");
 }
 while( my_mp() != my_maxmp())
 {
  if( HaveBeanbag())
  {
  cli_execute( "relax 1");
  }
  else
  {
  cli_execute( "rest 1");
  }
 }
}

void main()
{
 Campground();
}

Both totally untested so if theres any problems post in here. (Be wary that since its untested it may eat up all your adventures so test at your own risk)
 

darkkol

New member
Well I am using the first one and it works. Sometimes causes Kolmafia to act wierd but works all the same. I just need to get a house and pagoda for my characters now so it doesnt burn so many adventures. Thanks for the scripts.
 
Top