Advertisement
kolton

Untitled

Feb 4th, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. function NTMain()
  2. {
  3. Include("libs/common/NTCommon.ntl");
  4. NTC_IncludeLibs();
  5. NTC_IncludeConfig("NTBot/char_configs");
  6. NT_LoadConfig();
  7. NTSI_LoadNIPFiles("NTBot/item_configs");
  8. NTA_Initialize();
  9. var _leader = ""; //leader name case sensitive.
  10. NTTM_CheckAct(1);
  11. NTTMGR_TownManager();
  12. NTTM_TownMove("stash");
  13.  
  14. var startTime = GetTickCount();
  15. var duration = 900000;
  16.  
  17. function Announcer(msg, type) {
  18. if (type === 0 && msg.toLowerCase().indexOf("time left") > -1) {
  19. var timeLeft = duration - Math.round((GetTickCount() - startTime) / 1000);
  20.  
  21. Say(timeLeft + " seconds left.");
  22. }
  23. }
  24.  
  25. RegisterEvent(EVENT_GAMEMSG, Announcer);
  26.  
  27. Delay(duration); //oh yeah baby just chilln in town for peeps
  28.  
  29. Say(NTConfig_ChantNextGameSay + NTC_NextGameSayererer());
  30.  
  31. NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement