Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.28 KB | None | 0 0
  1. function NT_Baal() {
  2. var i;
  3. var _wave;
  4. var _starttick;
  5.  
  6. print("˙c3Starting Baal Script");
  7. if (!NTTM_CheckAct()) {
  8. return false;
  9. }
  10. NTTMGR_TownManager();
  11.  
  12. print("˙c8Going to The Worldstone Keep Level 2");
  13. if (!NTTM_TownMove("waypoint")) return false;
  14. if (!NTM_UsePortal("Waypoint", 129)) {
  15. print("˙c8Seems we do not have the waypoint, Lets go get it! Traveling to The Worldstone Keep Level 2");
  16. NTM_TravelTO(129);
  17. print("˙c8Interacting with Waypoint as we don't have it.");
  18. NTM_GotoWaypoint(129, true, 10000);
  19. }
  20. print("˙c5Precasting");
  21. NTP_DoPrecast();
  22. print("˙c8Going to Throne of Destruction");
  23. NTM_TravelTO(131);
  24.  
  25. if (!NTM_MoveTo(15112, 5068)) return false;
  26.  
  27. NTA_ClearPosition(20, 0x04);
  28. NTA_ClearPosition();
  29. NTSI_PickItems();
  30.  
  31. NT_ClearThroneInt();
  32.  
  33. if (NTConfig_PublicMode) {
  34. NTM_MoveTo(15112, 5004);
  35.  
  36. NTM_MakeTP();
  37. }
  38.  
  39. while (1) {
  40. if (me.classid == NTC_CHAR_CLASS_PALADIN || me.classid == NTC_CHAR_CLASS_BARBARIAN) NTM_MoveTo(15092, 5028);
  41. else NTM_MoveTo(15092, 5040);
  42.  
  43. if (me.getState(2)) NTC_PutSkill(109, NTC_HAND_RIGHT);
  44.  
  45. for (i = 0; i < 6; i++) {
  46. _wave = NT_ThroneCheckInt();
  47. if (_wave > 0) break;
  48.  
  49. NTC_Delay(500);
  50. }
  51.  
  52. _starttick = getTickCount();
  53.  
  54. while (_wave == 0) {
  55. if (!NT_ThronePreAttackInt()) NTC_Delay(250);
  56.  
  57. if (getTickCount() - _starttick > 15000) {
  58. NT_ClearThroneInt();
  59.  
  60. _starttick = getTickCount();
  61. }
  62.  
  63. _wave = NT_ThroneCheckInt();
  64. }
  65.  
  66. NTA_ClearPosition(40, 0x04);
  67. NTA_ClearPosition(40);
  68. NTSI_PickItems();
  69. NTT_CleanPotions();
  70.  
  71. if (_wave == 1) NTP_DoPrecast();
  72. else if (_wave == 3) NT_CheckHydraInt();
  73. else if (_wave == 5) break;
  74. }
  75.  
  76. if (NTConfig_KillBaal) {
  77. var _portal;
  78.  
  79. if (NTConfig_PublicMode) {
  80. print("˙c1Killing Baal");
  81. say(KillBaalMsg);
  82. }
  83.  
  84. if (NTConfig_CheckSafe) {
  85. if (!NTTMGR_CheckSafe(3)) return false;
  86. }
  87.  
  88. NTM_MoveTo(15092, 5010);
  89.  
  90. NTP_DoPrecast();
  91.  
  92. while (NTC_FindMonster(getLocaleString(3061))) //543
  93. NTC_Delay(250);
  94.  
  95. _portal = NTC_GetUnit(NTC_UNIT_OBJECT, 563);
  96.  
  97. if (!_portal) return false;
  98.  
  99. if (!NTM_UsePortal("Portal", 132, null, _portal)) return false;
  100.  
  101. NTM_MoveTo(15138, 5916);
  102.  
  103. if (!NTA_KillBoss(getLocaleString(3061))) return false;
  104.  
  105. NTSI_PickItems();
  106. }
  107.  
  108. if (NTConfig_PublicMode) {
  109. say(BaalNextGameMsg);
  110. }
  111. sendCopyData(null, "OOG", 0, "Quit:Full Run");
  112. return true;
  113. }
  114.  
  115. function NT_ClearThroneInt() {
  116. var _attackpos = [15112, 5068, 15075, 5065, 15114, 5045, 15114, 5012, 15095, 5024, 15078, 5013, 15092, 5040];
  117.  
  118. for (var i = 0; i < _attackpos.length; i += 2) {
  119. NTM_MoveTo(_attackpos[i], _attackpos[i + 1]);
  120.  
  121. NTA_ClearPosition(25, 0x04);
  122. NTA_ClearPosition(25);
  123. NTSI_PickItems();
  124. }
  125.  
  126. NTT_CleanPotions();
  127. }
  128.  
  129. function NT_ThroneCheckInt() {
  130. var _monster;
  131.  
  132. if (!NTC_FindMonster(getLocaleString(3061))) return 5;
  133.  
  134. _monster = NTC_GetUnit(NTC_UNIT_MONSTER);
  135.  
  136. if (_monster) {
  137. do {
  138. if (NTA_IsValidTarget(_monster)) {
  139. if (_monster.classid == 23 || _monster.classid == 62) return 1;
  140.  
  141. if (_monster.classid == 105 || _monster.classid == 381) return 2;
  142.  
  143. if (_monster.classid == 557) return 3;
  144.  
  145. if (_monster.classid == 558) return 4;
  146.  
  147. if (_monster.classid == 571) return 5;
  148. }
  149. } while (_monster.getNext());
  150. }
  151.  
  152. return 0;
  153. }
  154.  
  155. function NT_ThronePreAttackInt() {
  156. if (me.classid == NTC_CHAR_CLASS_SORCERESS) {
  157. if (NTConfig_AttackOthers == 56 || NTConfig_AttackOthers == 59) return NTC_DoCast(NTConfig_AttackOthers, 2, 15092, 5028);
  158. } else if (me.classid == NTC_CHAR_CLASS_PALADIN) {
  159. if (NTConfig_AttackOthers == 112) {
  160. if (NTConfig_PutAura > 0) NTC_PutSkill(NTConfig_PutAura, NTC_HAND_RIGHT);
  161.  
  162. return NTC_DoCast(NTConfig_AttackOthers, 2);
  163. }
  164. }
  165.  
  166. return false;
  167. }
  168.  
  169. function NT_CheckHydraInt() {
  170. var _hydra1, _hydra2, _hydra3;
  171.  
  172. _hydra1 = NTC_GetUnit(NTC_UNIT_MONSTER, 351);
  173. _hydra2 = NTC_GetUnit(NTC_UNIT_MONSTER, 352);
  174. _hydra3 = NTC_GetUnit(NTC_UNIT_MONSTER, 353);
  175.  
  176. if ((_hydra1 && _hydra1.getStat(172) != 2 && _hydra1.getState(105)) || (_hydra2 && _hydra2.getStat(172) != 2 && _hydra2.getState(105)) || (_hydra3 && _hydra3.getStat(172) != 2 && _hydra3.getState(105))) {
  177. NTM_MoveTo(15112, 5004);
  178.  
  179. if (me.getState(2)) NTC_PutSkill(109, NTC_HAND_RIGHT);
  180.  
  181. NTC_Delay(3000);
  182. }
  183. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement