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())
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
- return;
- }
- NTTMGR_TownManager();
- if(!NTTM_TownMove("waypoint"))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
- return;
- }
- if(!NTM_TakeWaypoint(118))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
- return;
- }
- Print("ΓΏc3[Snapchip Shatter]");
- NTP_DoPrecast(true);
- if(!NTM_MoveToStair(me.areaid, 119, 0, 0))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
- return;
- }
- NTA_ClearPosition(30);
- if(!NTM_TakeStair(119))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
- return;
- }
- if(!NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_OBJECT, 397, 3, 3))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToPresetUnit()");
- return;
- }
- if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
- {
- NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
- return;
- }
- NTA_ClearPosition(30);
- NTA_KillMonster(GetLocaleString(22496));
- NTSI_PickItems();
- if(NTConfig_OpenChest)
- {
- var _chest;
- _chest = NTC_GetSpecialChest();
- if(_chest)
- {
- if(NTM_MoveTo(_chest.areaid, _chest.x+2, _chest.y))
- {
- if(NTConfig_ClearPosition)
- NTA_ClearPosition();
- NTC_OpenChest(_chest);
- NTSI_PickItems();
- }
- }
- }
- NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement