Guest User

Untitled

a guest
Jan 22nd, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1.  
  2. {$DEFINE PRSC}
  3.  
  4. {$I MSSL\MSSL.scar}
  5.  
  6. const
  7. COMBAT_STYLE = PRSC_COMBAT_STYLE_STRENGTH;
  8. USERNAME = 'dgfg';
  9. PASSWORD = 'dfgdfgf';
  10. LOW_HP = 10;
  11.  
  12. procedure ScriptTerminate;
  13. begin
  14. MSSL_Unsetup;
  15. end;
  16.  
  17. procedure PickFeathers;
  18. var
  19. TPA: TPointArray;
  20. ATPA: T2DPointArray;
  21. p: TPoint;
  22. begin
  23. repeat
  24. if not PRSC_LoggedIn then
  25. Break
  26. else
  27. if FindColorsSpiralEx(RandomRange(136, 377) , RandomRange(90, 214), TPA, [5921370, 8816262, 12105912], 0, 34, PRSC_APPLET_WIDTH, PRSC_APPLET_HEIGHT) then
  28. begin
  29. ATPA := SplitTPA(TPA, 8);
  30. SetLength(TPA, 0);
  31. SortATPABySize(ATPA);
  32. p := MSSL_BoxCenter(TPABounds(ATPA[0]));
  33. ClickMouse(p.X, p.Y, mbRight);
  34. Wait(100);
  35. if not PRSC_ChooseOptionUse('Take Feather') then
  36. begin
  37. MoveMouse(10, 160);
  38. MoveMouse(500, 160);
  39. end else
  40. Wait(2000);
  41. SetLength(ATPA, 0);
  42. end;
  43. Wait(10);
  44. if GetKeyState(VK_F12) then
  45. TerminateScript;
  46. until GetKeyState(VK_F12);
  47. end;
  48.  
  49. procedure Fight;
  50. var
  51. fp, cs, hp, x, y, tm: Integer;
  52. begin
  53. hp := -1;
  54. if FindColorsSpiral(RandomRange(136, 377) , RandomRange(90, 214), x, y, [4934475, 14342875, 2499366], 0, 0, PRSC_APPLET_WIDTH, PRSC_APPLET_HEIGHT) then
  55. begin
  56. ClickMouse(x, y, mbRight);
  57. Wait(40);
  58. if PRSC_ChooseOptionUse('Attack Cow (level-8)') then
  59. begin
  60. tm := GetSystemTime;
  61. repeat
  62. Wait(10);
  63. until (PRSC_InFight or ((GetSystemTime - tm) >= 1200));
  64. if PRSC_InFight then
  65. repeat
  66. if not PRSC_LoggedIn then
  67. Exit;
  68. if PRSC_GetCombatStyle(cs) then
  69. if (cs <> COMBAT_STYLE) then
  70. PRSC_SetCombatStyle(COMBAT_STYLE);
  71. if PRSC_OpenGameTab(PRSC_GAMETAB_STATS) then
  72. begin
  73. hp := StrToIntDef(GetTextAtEx(343, 115, 0, MSSL_MM.st[PRSC_MMS].font[PRSC_MainFont].obj, False, False, 0, 0, 65535, 2, True, tr_AllChars), -1);
  74. if (hp > -1) then
  75. if (hp <= LOW_HP) then
  76. if PRSC_OpenGameTab(PRSC_GAMETAB_MAP) then
  77. begin
  78. Wait(50);
  79. tm := GetSystemTime;
  80. repeat
  81. ClickMouse(431, 112, mbLeft);
  82. Wait(100);
  83. if GetKeyState(VK_F12) then
  84. TerminateScript;
  85. until (((GetSystemTime - tm) > 20000) or not PRSC_InFight);
  86. end;
  87. end;
  88. if GetKeyState(VK_F12) then
  89. TerminateScript;
  90. until not PRSC_InFight;
  91. if ((hp > -1) and (hp < LOW_HP)) then
  92. PickFeathers
  93. else
  94. if PRSC_GetFatigue(fp) then
  95. if (fp = 100) then
  96. PickFeathers;
  97. end else
  98. if PRSC_ChooseOptionInUse(x, y) then
  99. PRSC_Click(x, y, 0, 0, mbRight);
  100. end;
  101. end;
  102.  
  103. begin
  104. MSSL_Setup;
  105. PRSC_Client.Activate;
  106. Wait(1500);
  107. repeat
  108. MoveMouse(300, 10);
  109. if not PRSC_LoggedIn then
  110. PRSC_LogIn(USERNAME, PASSWORD)
  111. else
  112. if not PRSC_InFight then
  113. Fight;
  114. until GetKeyState(VK_F12);
  115. end.
Add Comment
Please, Sign In to add comment