Howrse Foal Games

Foal games for Howrse in script form.

  1. // ==UserScript==
  2. // @name Howrse Foal Games
  3. // @namespace myHowrse
  4. // @description Foal games for Howrse in script form.
  5. // @include http://*.howrse.com/elevage/chevaux/cheval?id=*
  6. // @author daexion
  7. // @version 3
  8. // ==/UserScript==
  9. scipts = document.getElementsByTagName("script");
  10. i=0;
  11. while(scipts[i].text.indexOf("chevalDouche") < 0 && i < scipts.length) ++i;
  12. horseVars = scipts[i].text;
  13. horseVars = horseVars.substring(horseVars.indexOf("chevalDouche"),horseVars.length);
  14. chevalShower = horseVars.substring(horseVars.indexOf("=")+2,horseVars.indexOf(";"));
  15. horseVars = horseVars.substring(horseVars.indexOf("chevalAge"),horseVars.length);
  16. chevalAge = parseInt(horseVars.substring(horseVars.indexOf("=")+2,horseVars.indexOf(";")));
  17. if(chevalAge < 17 && chevalAge > 7)
  18. {
  19. feedMe = document.getElementById("feeding");
  20. feedAmount = feedMe.getElementsByClassName("nowrap");
  21. if(feedAmount[0].textContent == "4.4") feedInstead = "8";
  22. else if(feedAmount[0].textContent == "6.6") feedInstead = "10";
  23. else if(feedAmount[0].textContent == "8.8" || feedAmount[0].textContent == "11") feedInstead = "12";
  24. else feedInstead = "0";
  25. if(chevalShower == "false")
  26. {
  27. if(feedInstead == "0")
  28. iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>" + chevalAge + " m<br>=-=-=-=-=-=-=-=-=<br>Groom<br>Play 1 hr<br>Turnip<br>Play until not enough to play more<br>Stroke, Carrot, Drink<br>You can make up lost time at 1y 4m.";
  29. else if(chevalAge == 8) iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>8 m<br>=-=-=-=-=-=-=-=-=<br>Drink<br>Box 2 hrs<br>Groom<br>Play .5 hr<br>Feed " + feedInstead + "lbs<br>Play 7.5 hrs<br>Stroke, Carrot, Turnip<br>Play 1 hr<br>";
  30. else if(chevalAge == 10) iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>10m<br>=-=-=-=-=-=-=-=-=<br>Drink<br>Box 1 hr<br>Groom<br>Play .5 hr<br>Feed " + feedInstead + "lbs<br>Play 8 hrs<br>Stroke, Carrot, Turnip<br>Play 1 hr<br>";
  31. else if(chevalAge == 12) iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>1y<br>=-=-=-=-=-=-=-=-=<br>Drink<br>Box 1 hr<br>Groom<br>Play .5 hr<br>Feed " + feedInstead + "lbs<br>Play 9 hrs<br>Stroke, Carrot, Turnip<br>Play 1 hr<br>";
  32. else if(chevalAge == 14)
  33. {
  34. if(feedInstead == "12") iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>1y 2m<br>=-=-=-=-=-=-=-=-=<br>Drink, Groom<br>Play .5 hr<br>Feed " + feedInstead + "lbs<br>Play 10 hrs<br>Stroke, Carrot, Turnip<br>Play 1 hr<br>";
  35. else iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>1y 2m<br>=-=-=-=-=-=-=-=-=<br>Drink, Groom<br>Play .5 hr<br>Feed " + feedInstead + "lbs<br>Play 9.5 hrs<br>Stroke, Carrot, Turnip<br>Play 1 hr<br>"
  36. }
  37. else if(chevalAge == 16) iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>1y 4m<br>=-=-=-=-=-=-=-=-=<br>Drink, Groom<br>Play .5 hr<br>Feed " + feedInstead + "lbs<br>Play 9.5 hrs<br>If the foal has more skills to gain, do that here<br>Stroke<br>Carrot (If stroke doesn't bring the foal up to 20energy)<br>";
  38. newDiv = document.createElement("div");
  39. trainingBox = document.getElementById("training-head-title");
  40. trainingBox.innerHTML = iHTML + "=-=-=-=-=-=-=-=-=<br><br>" + trainingBox.innerHTML;
  41. }
  42. else
  43. {
  44. if(feedInstead == "0")
  45. iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>" + chevalAge + " m<br>=-=-=-=-=-=-=-=-=<br>Groom<br>Play 1 hr<br>Turnip<br>Play until not enough to play more<br>Stroke, Carrot, Drink<br>You can make up lost time at 1y 4m.";
  46. else if(chevalAge == 8) iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>8 m<br>=-=-=-=-=-=-=-=-=<br>Drink<br>Box 2 hrs<br>Groom<br>Play .5 hr<br>Feed " + feedInstead + "lbs<br>Play 8.5 hrs<br>Stroke, Carrot<br>";
  47. else if(chevalAge == 10) iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>10m<br>=-=-=-=-=-=-=-=-=<br>Groom<br>Play .5 hr<br>Feed " + feedInstead + "lbs<br>Play 9 hrs<br>Stroke, Carrot<br>Drink<br>";
  48. else if(chevalAge == 12) iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>1y<br>=-=-=-=-=-=-=-=-=<br>Groom<br>Play .5 hr<br>Feed " + feedInstead + "lbs<br>Play 9.5 hrs<br>Stroke, Carrot<br>Drink<br>";
  49. else if(chevalAge == 14)
  50. {
  51. iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>1y 2m<br>=-=-=-=-=-=-=-=-=<br>Groom<br>Play .5 hr<br>Feed " + feedInstead + "lbs<br>Play 10.5 hrs<br>Stroke, Carrot<br>Drink (if needed)<br>";
  52. }
  53. else if(chevalAge == 16) iHTML = "=-=-=-=-=-=-=-=-=<br>=- Foal Games -=<br>1y 4m<br>=-=-=-=-=-=-=-=-=<br>Groom<br>Play .5 hr<br>Feed " + feedInstead + "lbs<br>Play 10 hrs<br>If the foal has more skills to gain, do that here<br>Stroke<br>Carrot (If stroke doesn't bring the foal up to 20energy)<br>";
  54. newDiv = document.createElement("div");
  55. trainingBox = document.getElementById("training-head-title");
  56. trainingBox.innerHTML = iHTML + "=-=-=-=-=-=-=-=-=<br><br>" + trainingBox.innerHTML;
  57. }
  58. }