NTLowerkurast Sript
Code:
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("MWBotGame.ntj", "NTTM_CheckAct()");
return;
}
NTTMGR_TownManager();
if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("MWBotGame.ntj", "NTTM_TownMove()");
return;
}
if(!NTM_TakeWaypoint(79))
{
NTC_SendMsgToScript("MWBotGame.ntj", "NTM_TakeWaypoint()");
return;
}
NTP_DoPrecast(true);
Delay(500);
_unit = GetPresetUnits(me.areaid, NTC_UNIT_OBJECT);
if(_unit)
{
for(n = 0 ; n < _unit.length ; n++)
{
if(_unit[n].id == 580)
{
NTM_MoveTo(me.areaid, _unit[n].roomx*5+_unit[n].x, _unit[n].roomy*5+_unit[n].y);
_chest = NTC_FindUnit(NTC_UNIT_OBJECT, "chest");
if(_chest)
{
do
{
if(NTC_OpenChest(_chest))
NTSI_PickItems();
}while(_chest.GetNext());
}
}
else if(_unit[n].id == 104 || _unit[n].id == 105 || _unit[n].id == 106 || _unit[n].id == 107)
{
NTM_MoveTo(me.areaid, _unit[n].roomx*5+_unit[n].x, _unit[n].roomy*5+_unit[n].y);
_chest = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3247));
if(_chest)
{
do
{
if(NTC_OpenChest(_chest))
NTSI_PickItems();
}while(_chest.GetNext());
}
_chest = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3248));
if(_chest)
{
do
{
if(NTC_OpenChest(_chest))
NTSI_PickItems();
}while(_chest.GetNext());
}
}
}
}
NTC_SendMsgToScript("MWBotGame.ntj", "SCRIPT_END");
}
Ich hoffe ihr wisst wo ihr den Code speichert und wie!!(scripts-NTBot-bots)
In der Charkonfig so dann eintragen:
//------------------------------------------------------------------------------
//
// Run Configuration
//
//------------------------------------------------------------------------------
// Use the following syntax for activating botscripts: MWConfig_Script.push([<ScriptName>, <Script runtime in minutes (0 is infinite)>]);
// ***************** Current schedule ******************
MWConfig_Script.push(["NTCountess.ntj", 5]); MWConfig_ClearCountessRoomsSpectype = 0;
MWConfig_Script.push(["NTSummoner.ntj", 5]); NTConfig_KillFireEye = false; MWConfig_ClearPathToSummonerSpectype = 0;
MWConfig_Script.push(["NTLowerkurast.ntj", 10]);