Guest User

GetBO.ntj

a guest
Nov 4th, 2011
424
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())
  13.     {
  14.         NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
  15.         return;
  16.     }
  17.  
  18.     if(!NTTM_TownMove("waypoint"))
  19.     {
  20.         NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
  21.         return;
  22.     }
  23.    
  24.     if(!NTM_TakeWaypoint(NTConfig_GetBOWP))
  25.     {
  26.         NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
  27.         return;
  28.     }
  29.  
  30.     Say("Bo me!");
  31.     NTC_Delay(1000);
  32.    
  33.     var counting = 0;
  34.    
  35.     while(!me.GetState(26) || !me.GetState(32) || !me.GetState(51))
  36.     {
  37.         if(counting == NTConfig_GetBoWait && NTConfig_GetBoWait != 0)
  38.         {
  39.             Say("Don't have bo. Moving on without it.");
  40.             if(!NTM_TakeWaypoint(NTConfig_AfterGetBOWP))
  41.             {
  42.                 NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
  43.                 return;
  44.             }  
  45.             NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
  46.         }
  47.         NTC_Delay(1000);
  48.         counting++;
  49.     }
  50.    
  51.     NTC_Delay(1500);
  52.     Say("Thanks for BO!");
  53.     NTC_Delay(500);
  54.    
  55.     if(!NTM_TakeWaypoint(NTConfig_AfterGetBOWP))
  56.     {
  57.         NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
  58.         return;
  59.     }
  60.    
  61.     NTC_Delay(500);
  62.    
  63.     NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
  64. }
  65.  
Advertisement
Add Comment
Please, Sign In to add comment