Advertisement
Guest User

Untitled

a guest
Sep 4th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.89 KB | None | 0 0
  1. program JewelleryEnchanter;
  2. {$DEFINE SMART}
  3. {$i AeroLib/AeroLib.Simba}
  4. {$i Reflection/Reflection.simba}
  5.  
  6. {--------Jewellery-Enchanter--------
  7. ---------------v1.0----------------
  8. ------------By Faceless------------
  9.  
  10. /------------\
  11. |Instructions|
  12. \------------/
  13.  
  14. 1. Have cosmic runes in inventory
  15. 2. Equip the correct staff for the spell you are casting.
  16. 3. Put jewellery to be enchanted wherever.
  17. 4. Start at any bank chest.}
  18.  
  19. const
  20. SPELLTOCAST = 'e'; // 's' for sapphire, 'e' for emerald, 'r' for ruby, 'd' for diamond
  21.  
  22. var
  23. statusText, ItemID, EnchantedID, BankType: String;
  24. MyPlayer: TReflectLocalPlayer;
  25. Item, Enchanted : TReflectInvItem;
  26.  
  27.  
  28.  
  29. //---------- EDIT ANYTHING BELOW THIS LINE----------\\
  30. //------------ YOU MAY OR MAY NOT KNOW WHAT YOU ARE DOING-----------\\ ;)
  31.  
  32. procedure Login;
  33. begin
  34. MyPlayer.UserName := 'Thisisforrunescape2@mail.com';
  35. MyPlayer.Password := 'pown123';
  36. MyPlayer.Active := True;
  37. MyPlayer.Login;
  38. ItemID := 'Emerald ring'; //Name for the item to enchant. Case sensitive.
  39. EnchantedID := 'Ring of dueling(8)'; //Name for the enchanted item. Case sensitive.
  40. BankType := 'Bank chest'; // Name for bank. 'Bank' or 'Bank chest'. Case Sensitive
  41. end;
  42.  
  43. Procedure AntiBan;
  44. begin
  45. LevelUp;
  46. case (Random) of
  47. 1:
  48. begin
  49. Status('Antiban: Random right');
  50. RandomRClick;
  51. Wait(RandomRange(1203, 3486));
  52. end;
  53. 2:
  54. begin
  55. Status('Antiban: Random movement');
  56. RandomMovement;
  57. Wait(RandomRange(803, 2486));
  58. end;
  59. 3:
  60. begin
  61. Status('Antiban: Bored human');
  62. BoredHuman;
  63. Wait(RandomRange(543, 3081));
  64. end;
  65. 4:
  66. begin
  67. Status('Antiban: Pick up mouse');
  68. PickUpMouse;
  69. Wait(RandomRange(543, 3081));
  70. end;
  71. 5:
  72. begin
  73.  
  74. end;
  75. 6:
  76. begin
  77. Status('Antiban: Random compass movement');
  78. CompassMovement(10, 30, true);
  79. Wait(RandomRange(543, 3081));
  80. end;
  81. 7:
  82. begin
  83. Status('Antiban: Examining random inventory item');
  84. ExamineInv;
  85. Wait(RandomRange(487, 2427));
  86. end;
  87. 8:
  88. begin
  89. Status('Antiban: Hitting random F keys');
  90. RandomFKeys(true);
  91. Wait(RandomRange(813, 4072));
  92. end;
  93. 9:
  94. begin
  95. Status('Antiban: Moving mouse off client');
  96. MMouseOffClient('random');
  97. Wait(RandomRange(3813, 9072));
  98. end;
  99. end;
  100. end;
  101.  
  102.  
  103. procedure OpenBank;
  104.  
  105. var Bank: TReflectObject;
  106.  
  107. begin
  108.  
  109. begin // Implement bank check if this fails, exit if not
  110. Bank.Find(objGame, BankType, 5);
  111. Reflect.Mouse.Move(Bank.GetMSPoint, 3, 3);
  112. writeLn('Opening Bank');
  113. Reflect.Mouse.Click(Mouse_Left);
  114. end;
  115.  
  116. end;
  117.  
  118. procedure Deposit;
  119.  
  120. var Bank: TReflectObject;
  121.  
  122. begin
  123. begin
  124. wait(1000 + (Random(1000)));
  125. if Enchanted.Find(EnchantedID) then
  126. begin
  127. Reflect.Mouse.Move(Enchanted.GetPoint, 3, 3);
  128. Reflect.Mouse.Click(Mouse_Right);
  129. ChooseOption('sit-All');
  130. WriteLn('Depositing Enchanted Items!')
  131. end;
  132. begin
  133. if not Reflect.Bank.IsOpen then
  134. begin
  135. WriteLn('Cannot find Bank!');
  136. TerminateScript;
  137. end;
  138. end;
  139. end;
  140. end;
  141.  
  142. procedure Withdraw;
  143. begin
  144. begin
  145. wait(1000 + Random(1000));
  146. if Reflect.Bank.IsOpen then
  147. begin
  148. Reflect.Bank.Withdraw(ItemID, -1);
  149. Reflect.Bank.Close;
  150. end;
  151. end;
  152. end;
  153.  
  154. procedure CastEnchant(spellType:String);
  155. begin
  156. if (spellType = 's') then
  157. begin
  158. GaussMouseBox(685, 233, 695, 245, mouse_Move); //You're going to need to change all these co-ords!
  159. wait(RandomRange(150,320)); //(Top left x,y, Bottom Right x,y) of the box
  160. Status('Casting lvl 1 enchant spell'); //Try using GaussMouseBox(, , , , Mouse_Move);
  161. FastClick(mouse_Left);
  162. wait(RandomRange(150,320));
  163. end else if (spellType = 'e') then
  164. begin
  165. GaussMouseBox(616, 278, 619, 281, mouse_Move);
  166. wait(RandomRange(150,320));
  167. Status('Casting lvl 2 enchant spell');
  168. FastClick(mouse_Left);
  169. wait(RandomRange(150,320));
  170. end else if (spellType = 'r') then
  171. begin
  172. GaussMouseBox(565, 329, 576, 339, mouse_Move);
  173. wait(RandomRange(150,320));
  174. Status('Casting lvl 3 enchant spell');
  175. FastClick(mouse_Left);
  176. wait(RandomRange(150,320));
  177. end else if (spellType = 'd') then
  178. begin
  179. GaussMouseBox(590, 353, 599, 364, mouse_Move);
  180. wait(RandomRange(150,320));
  181. Status('Casting lvl 4 enchant spell');
  182. FastClick(mouse_Left);
  183. wait(RandomRange(150,320));
  184. end else
  185. begin
  186. writeln('Invalid spell type');
  187. end;
  188. end;
  189.  
  190. Procedure UseMagics;
  191. var
  192. i:Integer;
  193. begin
  194. i := 2;
  195. if (TabExists(tab_Magic)) then
  196. begin
  197. FTab(tab_Magic);
  198. Wait(RandomRange(1000, 4000));
  199. repeat
  200.  
  201. if (GetCurrentTab <> tab_Magic) then
  202. FTab(tab_Magic);
  203.  
  204. CastEnchant(SPELLTOCAST);
  205. WriteLn('casting enchant');
  206. wait(RandomRange(400,800));
  207. Reflect.Mouse.Move(Item.GetPoint, 3, 3);
  208. WriteLn('Moving to item'); //This stuff may not work
  209. wait(RandomRange(150,320));
  210. FastClick(mouse_Left);
  211. wait (1000 + Random(1000));
  212. if Item.Find(ItemID) then //You'll have to change this so it recognises the item to enchant
  213. Reflect.Mouse.Move(Item.GetPoint, 3, 3);
  214. FastClick(mouse_Left);
  215. wait (1000 + Random(1000));
  216. until(false);
  217. end;
  218. end;
  219.  
  220. procedure MainLoop;
  221. begin
  222. OpenBank;
  223. Deposit;
  224. Withdraw;
  225. AntiBan;
  226. Wait(RandomRange(400, 1500));
  227. UseMagics;
  228. end;
  229.  
  230. begin
  231. // Startup methods
  232. initAL; // This is for aerolib, needed
  233. Reflect.Setup; //This is for reflection, needed
  234. Login; //The login procedure
  235. // start of main loop
  236. repeat
  237. MainLoop;
  238. until(false);
  239. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement