Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function NT_Mephisto(){
- var Barbarian = "SNC-BaBa";
- var waitlist = ["name1", "name2"];
- var _area;
- var _exits;
- var _destx, _desty;
- print("ÿc3FK Mephisto script, Written by Jacob");
- if (!NTTM_CheckAct(3)) {
- return false;
- }
- NTTMGR_TownManager();
- print("ÿc8Going to Durance of Hate Level 2");
- if (!NTTM_TownMove("waypoint")) {
- return false;
- }
- if (!NTM_UsePortal("Waypoint", 101)) {
- print("ÿc8Seems we do not have the waypoint, Lets go get it! Traveling to Durance of Hate Level 2");
- NTM_TravelTO(101);
- print("ÿc8Interacting with Waypoint as we don't have it.");
- NTM_GotoWaypoint(101, true, 10000);
- }
- if (me.charname == Barbarian) {
- for (var i = 0; i < waitlist.length; i += 1) {
- while (!getUnit(0, waitlist[i])) {
- delay(500);
- }
- }
- NTP_DoPrecast();
- while (me.ingame) {
- for (var i = 0; i < waitlist.length; i += 1) {
- while (findLead(waitlist[i])) {
- delay(500);
- }
- }
- delay(1000);
- }
- quit();
- }
- if (me.charname == Sorc) {
- while(!(me.getState(26) && me.getState(32) && me.getState(51))) {
- delay(500);
- }
- NTM_TravelTO(102);
- if (NTConfig_CheckSafe) {
- if (!NTTMGR_CheckSafe(2)) {
- print("Mephisto Safe Check = Failed!");
- return false;
- }
- }
- NTM_MoveTo(17565, 8070);
- print("ÿc1Killing Mephisto");
- NTA_KillBoss(getLocaleString(3062));
- if (NTConfig_ClearPosition) {
- NTA_ClearPosition();
- }
- NTSI_PickItems();
- }
- return true;
- }
- function findLead(Sorc)
- {
- var _lead= getUnit(0, Sorc)
- if(_lead)
- return _lead.area;
- // Sorc not found look in party
- var area =0;
- var a = getParty();
- if(!a)
- return false;
- //sendCopyData(null, "OOG", 0,"party len:"+a.partyid );
- do {
- if (a.name==Sorc){
- return true;
- }
- } while(a.getNext());
- if (area==0) {
- //sendCopyData(null, "OOG", 0,"Quit:Quit()" );
- return false;
- }
- return area;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement