Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. function NTMain()
  2. {
  3. Include("libs/common/NTCommon.ntl");
  4. NTC_IncludeLibs();
  5. NTC_IncludeConfig("NTBot/char_configs");
  6.  
  7. NT_LoadConfig();
  8. NTSI_LoadNIPFiles("NTBot/item_configs");
  9.  
  10. NTA_Initialize();
  11.  
  12. if(!NTTM_CheckAct()){
  13. NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
  14. return;
  15. }
  16. NTTMGR_TownManager();
  17. if(!NTTM_TownMove("waypoint")){
  18. NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
  19. return;
  20. }
  21. if(!NTM_TakeWaypoint(74)){
  22. NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
  23. return;
  24. }
  25. NTP_DoPrecast(true);
  26. if(NTConfig_SwitchTele){
  27. NTC_SwapWeapons(1);
  28. }
  29. if(NTConfig_KillFireEye){
  30. if(NTM_TakeUnit(NTC_UNIT_OBJECT, 298)){
  31. if(NTConfig_SwitchTele){
  32. NTC_SwapWeapons(0);
  33. }
  34. if(NTA_KillMonster(GetLocaleString(2885))){
  35. if(NTConfig_ClearPosition)
  36. NTA_ClearPosition();
  37. NTSI_PickItems();
  38. if(NTConfig_OpenChestsInArea && NTU_DontOpenAreas()){
  39. OpenChestsInArea();
  40. }
  41. }
  42. if(!NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_OBJECT, 298)){
  43. NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToPresetUnit()");
  44. return;
  45. }
  46. if(!NTM_TakeUnit(NTC_UNIT_OBJECT, 298)){
  47. NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeUnit()");
  48. return;
  49. }
  50. }
  51. }
  52. var NTConfig_ClearArcaneSanc = true;
  53. if(NTConfig_ClearArcaneSanc) {
  54. OpenChestsInArea();
  55. NTA_ClearLevel();
  56. }
  57. if(!NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_OBJECT, 357, 2, 2)){
  58. NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToPresetUnit()");
  59. return;
  60. }
  61. if(NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe)){
  62. NTTMGR_VisitTown();
  63. return;
  64. }
  65. if(NTConfig_SwitchTele){
  66. NTC_SwapWeapons(0);
  67. }
  68. if(!NTA_KillMonster(250)) {
  69. NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
  70. return;
  71. }
  72. if(NTConfig_ClearPosition)
  73. NTA_ClearPosition();
  74. NTSI_PickItems();
  75. if(NTConfig_OpenChestsInArea && NTU_DontOpenAreas()){
  76. OpenChestsInArea();
  77. }
  78. NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement