Advertisement
kolton

Untitled

May 8th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. function NT_Mephisto(){
  2. var Barbarian = "SNC-BaBa";
  3. var waitlist = ["name1", "name2"];
  4. var _area;
  5. var _exits;
  6. var _destx, _desty;
  7.  
  8. print("ÿc3FK Mephisto script, Written by Jacob");
  9.  
  10. if (!NTTM_CheckAct(3)) {
  11. return false;
  12. }
  13.  
  14. NTTMGR_TownManager();
  15. print("ÿc8Going to Durance of Hate Level 2");
  16.  
  17. if (!NTTM_TownMove("waypoint")) {
  18. return false;
  19. }
  20.  
  21. if (!NTM_UsePortal("Waypoint", 101)) {
  22. print("ÿc8Seems we do not have the waypoint, Lets go get it! Traveling to Durance of Hate Level 2");
  23. NTM_TravelTO(101);
  24. print("ÿc8Interacting with Waypoint as we don't have it.");
  25. NTM_GotoWaypoint(101, true, 10000);
  26. }
  27.  
  28. if (me.charname == Barbarian) {
  29. for (var i = 0; i < waitlist.length; i += 1) {
  30. while (!getUnit(0, waitlist[i])) {
  31. delay(500);
  32. }
  33. }
  34.  
  35. NTP_DoPrecast();
  36.  
  37. while (me.ingame) {
  38. for (var i = 0; i < waitlist.length; i += 1) {
  39. while (findLead(waitlist[i])) {
  40. delay(500);
  41. }
  42. }
  43.  
  44. delay(1000);
  45. }
  46.  
  47. quit();
  48. }
  49.  
  50. if (me.charname == Sorc) {
  51. while(!(me.getState(26) && me.getState(32) && me.getState(51))) {
  52. delay(500);
  53. }
  54.  
  55. NTM_TravelTO(102);
  56.  
  57. if (NTConfig_CheckSafe) {
  58. if (!NTTMGR_CheckSafe(2)) {
  59. print("Mephisto Safe Check = Failed!");
  60. return false;
  61. }
  62. }
  63.  
  64. NTM_MoveTo(17565, 8070);
  65. print("ÿc1Killing Mephisto");
  66. NTA_KillBoss(getLocaleString(3062));
  67.  
  68. if (NTConfig_ClearPosition) {
  69. NTA_ClearPosition();
  70. }
  71.  
  72. NTSI_PickItems();
  73. }
  74.  
  75. return true;
  76. }
  77.  
  78. function findLead(Sorc)
  79. {
  80. var _lead= getUnit(0, Sorc)
  81. if(_lead)
  82. return _lead.area;
  83. // Sorc not found look in party
  84. var area =0;
  85. var a = getParty();
  86. if(!a)
  87. return false;
  88. //sendCopyData(null, "OOG", 0,"party len:"+a.partyid );
  89. do {
  90. if (a.name==Sorc){
  91. return true;
  92. }
  93. } while(a.getNext());
  94. if (area==0) {
  95. //sendCopyData(null, "OOG", 0,"Quit:Quit()" );
  96. return false;
  97.  
  98. }
  99. return area;
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement