Autor Thema: [D2NT] Shrine Searcher Script  (Gelesen 756 mal)

medix

  • Full Member
  • ***
  • Danke
  • -vergeben: 2
  • -erhalten: 17
  • Beiträge: 101
    • Profil anzeigen

[D2NT] Shrine Searcher Script
« am: Oktober 23, 2011, 11:23:59 »

function NTMain()
{



Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");

NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");

NTA_Initialize();


if(!NTTM_CheckAct())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
return;
}

NTTMGR_TownManager();






const _MyCS_SHRINE     = GetLocaleString(3255);

while(!me.GetState(137)){

if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
return;
}


if(!NTM_TakeWaypoint(NTConfig_WP1))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}

NTP_DoPrecast(true);
getShrine();

NTM_MakeTP();

NTM_UsePortal("BluePortal");

if(me.GetState(137)){
break;
}




if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
return;
}


if(!NTM_TakeWaypoint(NTConfig_WP2))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}


getShrine();

NTM_MakeTP();

NTM_UsePortal("BluePortal");

if(me.GetState(137)){
break;
}



if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
return;
}


if(!NTM_TakeWaypoint(NTConfig_WP3))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}


getShrine();

NTM_MakeTP();

NTM_UsePortal("BluePortal");
break;
}

NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");

}



///////////////////////FUNCTIONS///////////////////////////////////////////////////




function getShrine()
{
const _MyCS_SHRINE     = GetLocaleString(3255);
_unit = GetPresetUnits(me.areaid, NTC_UNIT_OBJECT);

if(_unit)
{
for(n = 0 ; n < _unit.length ; n++)
{
if(_unit[n].id == 2)
{
NTM_MoveTo(me.areaid, _unit[n].roomx*5+_unit[n].x, _unit[n].roomy*5+_unit[n].y);
_object = NTC_FindUnit(NTC_UNIT_OBJECT, _MyCS_SHRINE);

do
{

NTM_MoveTo(me.areaid, _object.x-3, _object.y);



} while(_object.GetNext() && !me.GetState(13));

}
}


}
}

erstellen als bot datei

var NTConfig_WP1;
 var NTConfig_WP2;
   var NTConfig_WP3;

in NTConfig hinzufügen.


charconfig öffnen

vor cobaal oder whatever einfach das script einfügen mit

    NTConfig_Script.push("wiedudasscriptauchimmergenannthast");

und dann in der charconfig einfügen:


NTConfig_WP1 = 3;
NTConfig_WP2 = 4;
NTConfig_WP3 = 5;


jetzt müsst ihr nur noch den shrinecatcher von eon installieren
You are not allowed to view links.Register or Login
shrine catcher for d2nt 3.0

und fertig