Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Trav Leech - RD
- function NTMain(){
- Include("Common/Libs/CLCommon.ntl");
- CLC_IncludeLibs();
- CLC_IncludeConfig();
- NT_LoadConfig();
- CLSI_LoadNIPFiles();
- CLA_Initialize(); // 10
- if(!CLTM_CheckAct()){
- CLC_SendMsgToScript("CScriptControl.ntj", "CLTM_CheckAct()");
- return;
- }
- if(me.areaid != 75){
- if(!CLTM_TownMove("waypoint")){
- CLC_SendMsgToScript("CScriptControl.ntj", "CLTM_TownMove()");
- return;
- }
- if(!CLM_TakeWaypoint(75)){
- CLC_SendMsgToScript("CScriptControl.ntj", "CLM_TakeWaypoint()");
- return;
- }
- }
- CLTMGR_TownManager();
- CLTM_TownMove("portalspot");
- for(var i = 0 ; i < 100 && me.areaid == 75 ; i++){
- CLM_UsePortal("BluePortal", 83, NTConfig_Leader);
- Delay(200);
- }
- if(NTConfig_LeechPrecast)
- CLP_DoPrecast(true);
- if(!CLM_MoveTo(me.areaid, 4837, 1172)){
- CLC_SendMsgToScript("CScriptControl.ntj", "CLM_MoveTo()");
- return;
- }
- CLA_ClearPosition(40);
- Delay(500);
- CLSI_PickItems();
- while(CLC_CheckPlayer(NTConfig_Leader)){
- if(_leaderareaid != 83)
- break;
- if(CLTMGR_CheckCurse(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe) || me.hp <= parseInt((me.hpmax*NTConfig_TPChicken)/100)){
- if(!CLTMGR_VisitTown())
- return 0;
- }
- Delay(500);
- }
- CLC_SendMsgToScript("CScriptControl.ntj", "SCRIPT_END");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement