Advertisement
kolton

Untitled

Dec 13th, 2011
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. function NTMain()
  2. {
  3. Include("libs/common/NTCommon.ntl");
  4. NTC_IncludeLibs();
  5. NTC_IncludeConfig("NTBot/char_configs");
  6.  
  7. NT_LoadConfig();
  8. NTSI_LoadNIPFiles("NTBot/item_configs");
  9.  
  10. NTA_Initialize();
  11.  
  12. if(!NTTM_CheckAct())
  13. {
  14. NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
  15. return;
  16. }
  17.  
  18. NTTMGR_TownManager();
  19.  
  20. if(!NTTM_TownMove("waypoint"))
  21. {
  22. NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
  23. return;
  24. }
  25.  
  26. if(!NTM_TakeWaypoint(83))
  27. {
  28. NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
  29. return;
  30. }
  31.  
  32. var i,
  33. orgx = me.x,
  34. orgy = me.y,
  35. attackpos = [112, -93, 84, -93, 76, -72];
  36.  
  37. NTP_DoPrecast(true);
  38.  
  39. for(i = 0; i < attackpos.length; i += 2)
  40. {
  41. NTM_MoveTo(me.areaid, orgx + attackpos[i], orgy + attackpos[i + 1]);
  42.  
  43. NTA_ClearPosition(25, true, 2);
  44. }
  45.  
  46. NTSI_PickItems();
  47.  
  48. NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement