Advertisement
Heckno

Numberology precombat casting

Nov 28th, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. //mostly copied from http://microcoloss.us/cgi-bin/mscripts?q=numb.ash
  2.  
  3. int moonsign() {
  4. switch (my_sign()) {
  5. case "Mongoose": return 1;
  6. case "Wallaby": return 2;
  7. case "Vole": return 3;
  8. case "Platypus": return 4;
  9. case "Opossum": return 5;
  10. case "Marmot": return 6;
  11. case "Wombat": return 7;
  12. case "Blender": return 8;
  13. case "Packrat": return 9;
  14. case "Bad Moon": return 10;
  15. default:
  16. print("Unknown moon sign, guessing 0 as the number.", "red");
  17. return 0;
  18. }
  19. }
  20.  
  21. void main()
  22. {
  23.  
  24. //only autocast numberology in aftercore
  25. if (can_interact() && !to_boolean(get_property("_universeCalculated"))) {
  26.  
  27. //69 = +3 adventures
  28. int target = 69;
  29.  
  30. int s=my_spleen_use();
  31. int m=moonsign();
  32. int l=my_level();
  33. int a = my_ascensions();
  34. int t= my_adventures();
  35. int out1;
  36. int output=0;
  37. int fromnow;
  38.  
  39. for inx from t to 0 {
  40. fromnow=t-inx;
  41. out1 = (((a+m)*(s+l))+inx)%100;
  42. for y from 1 to 400 {
  43. output = ((y+a+m)*(s+l))+inx;
  44. if ((output % 100)==out1){
  45. break;
  46. }
  47. if ((output % 100)==target){
  48. switch (fromnow){
  49. case 0:
  50. //print("Try \""+y+"\" for \""+output+"\"","blue");
  51. cli_execute("numberology "+target);
  52. break;
  53. case 1:
  54. //print("Try \""+y+"\" for \""+output+"\" in "+fromnow+" turn","blue");
  55. break;
  56. default:
  57. //print("Try \""+y+"\" for \""+output+"\" in "+fromnow+" turns","blue");
  58. break;
  59. }
  60. return;
  61. }
  62. }
  63. }
  64. }
  65.  
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement