Hello,
Im using Muddys bot. I've got a ice sorc that should clear the river of flame but skip it, if there are Grotesques like the "MWConfig_SkipBaalOnDolls" option for the NTBaal script.
As far as I understand it, Ill need a bool var e.g. "MWConfig_SkipRoFOnGrotesques" and I have to modify the RoF script "MWRiverOfFlame".
My guess is that Ill need an if statement around the line "NTA_ClearLevel(true, 2, MWConfig_ClearAreaSpectypes.RiverOfFlame);". But Im not sure what I have to write...
The script without modifications will be started with
"MWConfig_Script.push(["MWRiverOfFlame.ntj", 10]); MWConfig_ClearAreaSpectypes.RiverOfFlame = 0x01;".
Ive compared it with the "MWWorldstoneKeep.ntj" script, so my guess is Ill need something like
Im using Muddys bot. I've got a ice sorc that should clear the river of flame but skip it, if there are Grotesques like the "MWConfig_SkipBaalOnDolls" option for the NTBaal script.
As far as I understand it, Ill need a bool var e.g. "MWConfig_SkipRoFOnGrotesques" and I have to modify the RoF script "MWRiverOfFlame".
Code:
/** MWRiverOfFlame.ntj * This file was written by [Only registered and activated users can see links. Click Here To Register...] * Check the programming section for updates and further scripts * Last Update: 16:36 17.08.2011 */ function NTMain() { Include("libs/common/NTCommon.ntl"); NTC_IncludeLibs(); NTC_IncludeConfig("NTBot/char_configs"); NT_LoadConfig(); NTSI_LoadNIPFiles("NTBot/item_configs"); MWC_Initialize(); if(!NTTM_CheckAct(me.act, true)) { NTC_SendMsgToScript("MWBotGame.ntj", NTTM_CheckAct, 18, me.act, true); return; } NTTMGR_TownManager(); if(!NTTM_TownMove("waypoint")) { NTC_SendMsgToScript("MWBotGame.ntj", NTTM_TownMove, 26, "waypoint"); return; } if(!NTM_TakeWaypoint(106)) { if(!NTM_TakeWaypoint(107)) { NTC_SendMsgToScript("MWBotGame.ntj", NTM_TakeWaypoint, 34, 107); return; } } else { if(!NTM_MoveToStair(me.areaid, 107)) { NTC_SendMsgToScript("MWBotGame.ntj", NTM_MoveToStair, 42, me.areaid, 107); return; } if(!NTM_TakeStair(107)) { NTC_SendMsgToScript("MWBotGame.ntj", NTM_TakeStair, 48, 107); return; } } NTP_DoPrecast(true); NTA_ClearLevel(true, 2, MWConfig_ClearAreaSpectypes.RiverOfFlame); NTC_SendMsgToScript("MWBotGame.ntj", "SCRIPT_END"); }
The script without modifications will be started with
"MWConfig_Script.push(["MWRiverOfFlame.ntj", 10]); MWConfig_ClearAreaSpectypes.RiverOfFlame = 0x01;".
Ive compared it with the "MWWorldstoneKeep.ntj" script, so my guess is Ill need something like
Code:
if(MWConfig_SkipRoFOnGrotesques && NTC_FindUnit(NTC_UNIT_MONSTER, 300)) // Grotesque ID = 300
{
if(_area)
Print("ÿc1Skipping " + _area.name + " due to Grotesques...");
continue;
}