Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. //Trav Leech - RD
  2. function NTMain(){
  3.  
  4. Include("Common/Libs/CLCommon.ntl");
  5. CLC_IncludeLibs();
  6. CLC_IncludeConfig();
  7.  
  8. NT_LoadConfig();
  9. CLSI_LoadNIPFiles();
  10.  
  11. CLA_Initialize(); // 10
  12.  
  13.  
  14. if(!CLTM_CheckAct()){
  15. CLC_SendMsgToScript("CScriptControl.ntj", "CLTM_CheckAct()");
  16. return;
  17. }
  18. if(me.areaid != 75){
  19. if(!CLTM_TownMove("waypoint")){
  20. CLC_SendMsgToScript("CScriptControl.ntj", "CLTM_TownMove()");
  21. return;
  22. }
  23. if(!CLM_TakeWaypoint(75)){
  24. CLC_SendMsgToScript("CScriptControl.ntj", "CLM_TakeWaypoint()");
  25. return;
  26. }
  27. }
  28. CLTMGR_TownManager();
  29. CLTM_TownMove("portalspot");
  30.  
  31. for(var i = 0 ; i < 100 && me.areaid == 75 ; i++){
  32. CLM_UsePortal("BluePortal", 83, NTConfig_Leader);
  33. Delay(200);
  34. }
  35. if(NTConfig_LeechPrecast)
  36. CLP_DoPrecast(true);
  37.  
  38. if(!CLM_MoveTo(me.areaid, 4837, 1172)){
  39. CLC_SendMsgToScript("CScriptControl.ntj", "CLM_MoveTo()");
  40. return;
  41. }
  42. CLA_ClearPosition(40);
  43. Delay(500);
  44.  
  45. CLSI_PickItems();
  46.  
  47. while(CLC_CheckPlayer(NTConfig_Leader)){
  48. if(_leaderareaid != 83)
  49. break;
  50. if(CLTMGR_CheckCurse(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe) || me.hp <= parseInt((me.hpmax*NTConfig_TPChicken)/100)){
  51. if(!CLTMGR_VisitTown())
  52. return 0;
  53. }
  54. Delay(500);
  55. }
  56. CLC_SendMsgToScript("CScriptControl.ntj", "SCRIPT_END");
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement