Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
in worldstone keep
#1
How do i make my sorcress start firing BEFORE baal throws his minions out? im sure it has something to do with the D2NT\scripts\NTBot\bots\NTBaal.NTJ file.. can anyone tell me how to change it so she is firing before the minions appear?[COLOR="Silver"]

---------- Post added at 06:41 AM ---------- Previous post was at 06:39 AM ----------

[/COLOR]This is what the file looks like someone help me plz..

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

var i;
var _wave;
var _starttick;

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

NTA_Initialize();

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

NTTMGR_TownManager();

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

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

NTP_DoPrecast(true);

for(i = 0 ; i < 2 ; i++)
{
if(!NTM_MoveToStair(me.areaid, 130+i))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
return;
}

if(!NTM_TakeStair(130+i))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
}

if(!NTM_MoveTo(me.areaid, 15112, 5068))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}

NTA_ClearPosition(20, true, 2);

if(NTConfig_PublicMode)
{
NTM_MoveTo(me.areaid, 15116, 5068);

NTC_PingDelay(1000);

NTA_ClearPosition(20, true, 2);

NTM_MoveTo(me.areaid, 15116, 5068);

NTM_MakeTP();
Say("Sup");
}

NT_ClearThroneInt();

if(NTConfig_PublicMode)
{

Say("safe");
}

while(1)
{
if(me.classid == NTC_CHAR_CLASS_PALADIN || me.classid == NTC_CHAR_CLASS_BARBARIAN)
NTM_MoveTo(me.areaid, 15092, 5028);
else
NTM_MoveTo(me.areaid, 15092, 5040);

if(me.GetState(2))
NTC_PutSkill(109, NTC_HAND_RIGHT);

for(i = 0 ; i < 6 ; i++)
{
_wave = NT_ThroneCheckInt();
if(_wave > 0)
break;

NTC_Delay(500);
}

_starttick = GetTickCount();

while(_wave == 0)
{
if(!NT_ThronePreAttackInt())
NTC_Delay(200);

if(GetTickCount()-_starttick > 15000)
{
NT_ClearThroneInt();

_starttick = GetTickCount();
}

_wave = NT_ThroneCheckInt();
}

switch(_wave)
{
case 1:
NTA_ClearPosition(40, true, 1);
NTP_DoPrecast(true);
break;
case 3:
NTA_ClearPosition(40, true, 2);
NT_CheckHydraInt();
break;if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe|0x01, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
case 4:
NTA_ClearPosition(40, true, 2);
break;if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe|0x01, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
case 5:
NTA_ClearPosition(40, true);
break;
default:
NTA_ClearPosition(40, true, 1);
break;
}

if(_wave == 5)
break;
}

if(NTConfig_KillBaal)
{
var _portal;

if(NTConfig_PublicMode)


if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe|0x01, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
Say("-P");
NTM_MoveTo(me.areaid, 15092, 5010);

NTP_DoPrecast(true);

while(NTC_FindUnit(NTC_UNIT_MONSTER, 543))
NTC_Delay(500);

_portal = NTC_FindUnit(NTC_UNIT_OBJECT, 563, 1);

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

if(!NTM_UsePortal("Portal", 132, null, _portal))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_UsePortal()");
return;
}

NTM_MoveTo(me.areaid, 15138, 5916);

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

NTSI_PickItems();
}

if(NTConfig_PublicMode)
Say("Now Chaos");

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

// Internal function
function NT_ClearThroneInt()
{
var _attackpos = [15112, 5068, 15075, 5065, 15114, 5045, 15114, 5012, 15095, 5024, 15078, 5013, 15092, 5040];

for(var i = 0 ; i < _attackpos.length ; i += 2)
{
NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1]);

NTA_ClearPosition(25, true, 2);
}
}

function NT_ThroneCheckInt()
{
var _monster;

if(!NTC_FindUnit(NTC_UNIT_MONSTER, 543))
return 5;

_monster = NTC_FindUnit(NTC_UNIT_MONSTER);

if(_monster)
{
do
{
if(NTA_IsValidMonster(_monster))
{
if(_monster.classid == 23 || _monster.classid == 62)
return 1;

if(_monster.classid == 105 || _monster.classid == 381)
return 2;

if(_monster.classid == 557)
return 3;

if(_monster.classid == 558)
return 4;

if(_monster.classid == 571)
return 5;
}
} while(_monster.GetNext());
}

return 0;
}

function NT_ThronePreAttackInt()
{
if(me.classid == NTC_CHAR_CLASS_SORCERESS)
{
if(NTConfig_AttackSkill[3] == 56 || NTConfig_AttackSkill[3] == 59)
return NTC_CastSkill(NTConfig_AttackSkill[3], 2, 15092, 5028);
}
else if(me.classid == NTC_CHAR_CLASS_PALADIN)
{
if(NTConfig_AttackSkill[3] == 112)
{
if(NTConfig_AttackSkill[4] > 0)
NTC_PutSkill(NTConfig_AttackSkill[4], NTC_HAND_RIGHT);

return NTC_CastSkill(NTConfig_AttackSkill[3], 2);
}
}

return false;
}

function NT_CheckHydraInt()
{
var _hydra1, _hydra2, _hydra3;

_hydra1 = NTC_FindUnit(NTC_UNIT_MONSTER, 351);
_hydra2 = NTC_FindUnit(NTC_UNIT_MONSTER, 352);
_hydra3 = NTC_FindUnit(NTC_UNIT_MONSTER, 353);

if((_hydra1 && _hydra1.GetStat(172) != 2 && _hydra1.GetState(105))
|| (_hydra2 && _hydra2.GetStat(172) != 2 && _hydra2.GetState(105))
|| (_hydra3 && _hydra3.GetStat(172) != 2 && _hydra3.GetState(105)))
{
NTM_MoveTo(me.areaid, 15112, 5004);

if(me.GetState(2))
NTC_PutSkill(109, NTC_HAND_RIGHT);

NTC_PingDelay(3000);
}
}[COLOR="Silver"]

---------- Post added at 07:37 AM ---------- Previous post was at 06:41 AM ----------

[/COLOR]NEVERMIND i figured it out.. for anyone else that has the same problem make sure you chance the skill numbers in this line.............

if(me.classid == NTC_CHAR_CLASS_SORCERESS)
{
if(NTConfig_AttackSkill[3] == 56 || NTConfig_AttackSkill[3] == 59)
return NTC_CastSkill(NTConfig_AttackSkill[3], 2, 15092, 5028);
}

...... of the Bot.ntj file. i set my sorcress up with cold and this line tells it only to use meteor for the pre-attack
Reply


Messages In This Thread
in worldstone keep - by buckallmit - 07-16-2010, 01:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  anyone have a full worldstone keep clear script? dnforever 1 299 05-27-2011, 09:06 PM
Last Post: dnforever

Forum Jump:


Users browsing this thread: 1 Guest(s)