Advertisement
kolton

Untitled

Jan 31st, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 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. {
  14. NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
  15. return;
  16. }
  17.  
  18. NTTMGR_TownManager();
  19.  
  20. if(!NTTM_TownMove("waypoint"))
  21. {
  22. NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
  23. return;
  24. }
  25.  
  26. if(!NTM_TakeWaypoint(118))
  27. {
  28. NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
  29. return;
  30. }
  31.  
  32. Print("ΓΏc3[Snapchip Shatter]");
  33.  
  34. NTP_DoPrecast(true);
  35.  
  36. if(!NTM_MoveToStair(me.areaid, 119, 0, 0))
  37. {
  38. NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
  39. return;
  40. }
  41.  
  42. NTA_ClearPosition(30);
  43.  
  44. if(!NTM_TakeStair(119))
  45. {
  46. NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
  47. return;
  48. }
  49.  
  50. if(!NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_OBJECT, 397, 3, 3))
  51. {
  52. NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToPresetUnit()");
  53. return;
  54. }
  55.  
  56. if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
  57. {
  58. NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
  59. return;
  60. }
  61.  
  62. NTA_ClearPosition(30);
  63. NTA_KillMonster(GetLocaleString(22496));
  64. NTSI_PickItems();
  65.  
  66. if(NTConfig_OpenChest)
  67. {
  68. var _chest;
  69.  
  70. _chest = NTC_GetSpecialChest();
  71.  
  72. if(_chest)
  73. {
  74. if(NTM_MoveTo(_chest.areaid, _chest.x+2, _chest.y))
  75. {
  76. if(NTConfig_ClearPosition)
  77. NTA_ClearPosition();
  78.  
  79. NTC_OpenChest(_chest);
  80.  
  81. NTSI_PickItems();
  82. }
  83. }
  84. }
  85.  
  86. NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement