Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function NTMain()
- {
- Include("libs/common/NTCommon.ntl");
- NTC_IncludeLibs();
- NTC_IncludeConfig("NTBot/char_configs");
- NT_LoadConfig();
- NTSI_LoadNIPFiles("NTBot/item_configs");
- NTA_Initialize();
- if(!NTTM_CheckAct(1))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
- return;
- }
- //Lower Kurast
- NTTMGR_TownManager();
- if(!NTTM_TownMove("waypoint"))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
- return;
- }
- if(!NTM_TakeWaypoint(79))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
- return;
- }
- NTP_DoPrecast(true);
- if (me.classid === 4) {
- NTC_SwapWeapons(1);
- }
- NTC_OpenChestsInArea();
- //Kurast Bazaar
- if(NTConfig_KurastBazaar)
- {
- NTM_MoveToPresetUnit(80, NTC_UNIT_OBJECT, 580);
- NTP_DoPrecast(true);
- NTC_OpenChestsInArea();
- }
- //Kurast Sewers
- if(NTConfig_KurastSewers)
- {
- NTP_DoPrecast(true);
- if(!NTM_MoveToStair(me.areaid, 92))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
- return;
- }
- if(!NTM_TakeStair(92))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
- return;
- }
- NTC_OpenChestsInArea();
- //NTP_DoPrecast(true);
- if(!NTM_MoveToStair(me.areaid, 93))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
- return;
- }
- if(!NTM_TakeStair(93))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
- return;
- }
- var _chest = GetUnit(NTC_UNIT_OBJECT, "chest");
- if(_chest)
- {
- do
- {
- if(NTM_MoveTo(me.areaid, _chest.x+2, _chest.y))
- {
- //NTA_ClearPosition();
- if(NTC_OpenChest(_chest))
- NTSI_PickItems();
- }
- }
- while(_chest.GetNext());
- }
- //NTC_OpenChestsInArea();
- }
- NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement