Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function NT_Andariel()
- {
- print("ÿc3Starting Andariel Script");
- if (!NTTM_CheckAct())
- throw new Error();
- NTTMGR_TownManager();
- print("ÿc8Going to Catacombs Level 2");
- if (!NTTM_TownMove("waypoint"))
- throw new Error();
- if (!NTM_UsePortal("Waypoint", 35))
- {
- print("ÿc8Seems we do not have the waypoint, Lets go get it! Traveling to Catacombs Level 2");
- NTM_TravelTO(35);
- print("ÿc8Interacting with Waypoint as we don't have it.");
- NTM_GotoWaypoint(35, true, 10000);
- }
- print("ÿc5Precasting");
- NTP_DoPrecast();
- print("ÿc8Going to Catacombs Level 4");
- NTM_TravelTO(37);
- if (NTConfig_CheckSafe)
- {
- if (!NTTMGR_CheckSafe(2))
- {
- print("ÿc1Andariel Safe Check failed!");
- throw new Error();
- }
- }
- NTM_MoveTo(22560, 9536);
- print("ÿc1Killing Andariel");
- if (me.classid === 1) {
- if (!KillAndy()) {
- throw new Error();
- }
- } else if (!NTA_KillBoss(156)) {
- throw new Error();
- }
- if (NTConfig_ClearPosition) {
- NTA_ClearPosition();
- }
- NTC_PingDelay(2000);
- NTSI_PickItems();
- return true;
- }
- function KillAndy()
- {
- var i,
- _target = NTC_GetUnit(NTC_UNIT_MONSTER, 156);
- if (!_target) {
- return false;
- }
- for (i = 0; i < 300; i += 1) {
- if (!me.getState(121)) {
- NTC_DoCast(NTConfig_AttackSkill[1], _NTA_SkillHand[1], _target);
- } else if (NTConfig_AttackSkill[3] > -1) {
- NTC_DoCast(NTConfig_AttackSkill[3], _NTA_SkillHand[3], _target);
- } else {
- NTC_Delay(300);
- }
- if (getDistance(me, _target) <= 10) {
- NTM_MoveTo((me.x > 22548) ? 22535 : 22560, 9536);
- }
- if (_target.hp <= 0 || _target.mode === 0 || _target.mode === 12) {
- return true;
- }
- }
- return (_target.hp <= 0 || _target.mode === 0 || _target.mode === 12);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement