Advertisement
kolton

Untitled

Nov 15th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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(1))
  13.     {
  14.         NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
  15.         return;
  16.     }
  17.    
  18.     //Lower Kurast
  19.    
  20.     NTTMGR_TownManager();
  21.  
  22.     if(!NTTM_TownMove("waypoint"))
  23.     {
  24.         NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
  25.         return;
  26.     }
  27.  
  28.     if(!NTM_TakeWaypoint(79))
  29.     {
  30.         NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
  31.         return;
  32.     }
  33.  
  34.     NTP_DoPrecast(true);
  35.  
  36.     if (me.classid === 4) {
  37.         NTC_SwapWeapons(1);
  38.     }
  39.    
  40.     NTC_OpenChestsInArea();
  41.    
  42.    //Kurast Bazaar
  43.    
  44.     if(NTConfig_KurastBazaar)
  45.     {
  46.         NTM_MoveToPresetUnit(80, NTC_UNIT_OBJECT, 580);
  47.    
  48.         NTP_DoPrecast(true);
  49.  
  50.         NTC_OpenChestsInArea();
  51.     }
  52.    
  53.     //Kurast Sewers
  54.    
  55.     if(NTConfig_KurastSewers)
  56.     {
  57.         NTP_DoPrecast(true);
  58.  
  59.         if(!NTM_MoveToStair(me.areaid, 92))
  60.         {
  61.             NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
  62.             return;
  63.         }
  64.  
  65.         if(!NTM_TakeStair(92))
  66.         {
  67.             NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
  68.             return;
  69.         }
  70.        
  71.         NTC_OpenChestsInArea();
  72.        
  73.         //NTP_DoPrecast(true);
  74.        
  75.         if(!NTM_MoveToStair(me.areaid, 93))
  76.         {
  77.             NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
  78.             return;
  79.         }
  80.        
  81.         if(!NTM_TakeStair(93))
  82.         {
  83.             NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
  84.             return;
  85.         }
  86.    
  87.         var _chest = GetUnit(NTC_UNIT_OBJECT, "chest");
  88.         if(_chest)
  89.         {
  90.             do
  91.             {
  92.                 if(NTM_MoveTo(me.areaid, _chest.x+2, _chest.y))
  93.                 {
  94.                     //NTA_ClearPosition();
  95.                     if(NTC_OpenChest(_chest))
  96.                     NTSI_PickItems();
  97.                 }
  98.             }  
  99.             while(_chest.GetNext());
  100.         }
  101.         //NTC_OpenChestsInArea();
  102.     }
  103.    
  104.     NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
  105. }
  106.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement