NTConfig


SUBMITTED BY: Guest

DATE: Aug. 20, 2012, 11:13 a.m.

FORMAT: Text only

SIZE: 1.3 kB

HITS: 2570

  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. if(!NTTM_CheckAct())
  10. {
  11. NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
  12. return;
  13. }
  14. NTTMGR_TownManager();
  15. if(!NTTM_TownMove("waypoint"))
  16. {
  17. NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
  18. return;
  19. }
  20. if(!NTM_TakeWaypoint(107))
  21. {
  22. NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
  23. return;
  24. }
  25. NTP_DoPrecast(true);
  26. if(!NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_OBJECT, 376))
  27. {
  28. NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToPresetUnit()");
  29. return;
  30. }
  31. if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
  32. {
  33. NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
  34. return;
  35. }
  36. if(!NTA_KillMonster(409))
  37. {
  38. NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
  39. return;
  40. }
  41. if(NTConfig_ClearPosition)
  42. NTA_ClearPosition(30);
  43. NTSI_PickItems();
  44. NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
  45. }

comments powered by Disqus