Don't like ads? PRO users don't see any ads ;-)
Guest

MephMoat.ntj

By: a guest on May 5th, 2012  |  syntax: None  |  size: 1.94 KB  |  hits: 44  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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(101))
  27.    {
  28.       NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
  29.       return;
  30.    }
  31.  
  32.    NTP_DoPrecast(true);
  33.  
  34.  
  35.    if(!NTM_MoveToStair(me.areaid, 102))
  36.    {
  37.       NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
  38.       return;
  39.    }
  40.  
  41.    if(!NTM_TakeStair(102))
  42.    {
  43.       NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
  44.       return;
  45.    }
  46.  
  47.    
  48.    if(!NTM_MoveTo(me.areaid, 17564, 8069))
  49.    {
  50.       NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
  51.       return;
  52.    }
  53.  
  54.    NTC_Delay(200);
  55.  
  56.    NTM_MoveTo(me.areaid, 17572, 8070);
  57.  
  58.  
  59.    
  60.  
  61.    
  62. NTC_Delay(450);
  63. NTM_WalkTo(17581, 8083)
  64. NTC_Delay(550);
  65. NTM_MoveTo(me.areaid, 17609, 8086)
  66. NTC_Delay(4000);
  67.      
  68.    
  69.    
  70.    if(!NTA_KillMonster(242))
  71.    {
  72.       NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
  73.       return;
  74.    }
  75.  
  76.  
  77.  
  78.    NTSI_PickItems();
  79.  
  80.    if(NTConfig_OpenChest)
  81.    {
  82.       var _chest;
  83.  
  84.       if(NTM_MoveTo(me.areaid, 17520, 8063))
  85.          NTA_ClearPosition(30, true);
  86.  
  87.       _chest = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3260), 1);
  88.  
  89.       if(_chest)
  90.       {
  91.          do
  92.          {
  93.             if(_chest.x == 17513 && _chest.y == 8063)
  94.             {
  95.                if(NTC_OpenChest(_chest))
  96.                   NTSI_PickItems();
  97.  
  98.                break;
  99.             }
  100.          } while(_chest.GetNext());
  101.       }
  102.    }
  103.  
  104.    NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
  105. }