Advertisement
kolton

Untitled

Nov 15th, 2011
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. function NTMain() {
  2. Include("libs/common/NTCommon.ntl");
  3. NTC_IncludeLibs();
  4. NTC_IncludeConfig("NTBot/char_configs");
  5. NT_LoadConfig();
  6. NTSI_LoadNIPFiles("NTBot/item_configs");
  7. NTA_Initialize();
  8.  
  9. NTTM_CheckAct(5);
  10. NTTMGR_TownManager();
  11.  
  12. switch (me.classid) {
  13. case 1: // sorceress
  14. NTTM_TownMove("waypoint");
  15. NTM_TakeWaypoint(129);
  16. NTM_MoveTo(me.areaid, me.x + 5, me.y);
  17. NTM_MakeTP();
  18.  
  19. while (!me.GetState(32)) {
  20. NTC_Delay(500);
  21. }
  22.  
  23. break;
  24. case 4: // barbarian
  25. var i;
  26.  
  27. NTTM_TownMove("portalspot");
  28.  
  29. for (i = 0; i < 20; i += 1) {
  30. if (NTC_InMyParty(NTConfig_Leader)) {
  31. break;
  32. }
  33.  
  34. NTC_Delay(500);
  35. }
  36.  
  37. while (me.areaid === 109) {
  38. NTM_UsePortal("BluePortal", 129, NTConfig_Leader);
  39. NTC_Delay(500);
  40. }
  41.  
  42. NTP_DoPrecast(true);
  43. break;
  44. }
  45.  
  46. NTM_TakeWaypoint(109);
  47. NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
  48. }
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement