Hello out there.
- Are there any config, for channel action.
Like, i want my bot, to write a text in the channel, before it's making the game, Are there any options for this?
If anyone, have some GOOD answers, bring them :)
Hello out there.
- Are there any config, for channel action.
Like, i want my bot, to write a text in the channel, before it's making the game, Are there any options for this?
If anyone, have some GOOD answers, bring them :)
i dont think so.
there is however, ways you can change the text for when you are about to kill baal.
thats in the
D2NT172_NTBot36\D2NT\scripts\bots\NTBaal.ntj
here is my file below. the text output is in the middle and towards the end
function NTMain()
{
Include("common/NTCommon.ntl");
NTC_IncludeConfig();
NTC_IncludeLibs();
var i;
var _wave;
var _starttick;
NT_LoadConfig();
NTSI_LoadNIPFiles();
NTA_Initialize();
if(!NTTM_CheckAct())
{
NTC_SendMsgToScript("default.ntj", "NTTM_CheckAct()");
return;
}
NTTMGR_TownManager();
if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("default.ntj", "NTTM_TownMove()");
return;
}
if(!NTM_TakeWaypoint(129))
{
NTC_SendMsgToScript("default.ntj", "NTM_TakeWaypoint()");
return;
}
NTP_DoPrecast();
if(!NTM_MoveToObject(me.areaid, NTC_UNIT_TILE, 82, 83))
{
NTC_SendMsgToScript("default.ntj", "NTM_MoveToObject()");
return;
}
if(!NTM_TakeStairs(82, 83))
{
NTC_SendMsgToScript("default.ntj", "NTM_TakeStairs()");
return;
}
if(!NTM_MoveToObject(me.areaid, NTC_UNIT_TILE, 82, 83))
{
NTC_SendMsgToScript("default.ntj", "NTM_MoveToObject()");
return;
}
NTP_DoPrecast();
if(!NTM_TakeStairs(82, 83))
{
NTC_SendMsgToScript("default.ntj", "NTM_TakeStairs()");
return;
}
if(!NTM_MoveTo(me.areaid, 15112, 5068))
{
NTC_SendMsgToScript("default.ntj", "NTM_MoveTo()");
return;
}
NTA_ClearPosition(20, 0x04);
NTA_ClearPosition();
NTSI_PickItems();
if(NTConfig_PublicMode)
{
NTM_MoveTo(me.areaid, 15116, 5068);
NTC_PingDelay(1000);
if(NTA_ClearPosition())
NTSI_PickItems();
NTM_MoveTo(me.areaid, 15116, 5068);
NTM_MakeTP();
Say("TP up, Enter at own risk");
}
NT_ClearThroneInt();
if(NTConfig_PublicMode)
{
NTM_MoveTo(me.areaid, 15112, 5004, 0, true);
NTM_MakeTP();
Say("TP 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();
}
NTA_ClearPosition(40, 0x04);
NTA_ClearPosition(40);
NTSI_PickItems();
NTT_CleanPotions();
if(_wave == 1)
NTP_DoPrecast();
else if(_wave == 3)
NT_CheckHydraInt();
else if(_wave == 5)
break;
}
if(NTConfig_KillBaal)
{
var _portal;
if(NTConfig_PublicMode)
Say("Killing Baal. Follow me on channel BlizzSector");
if(NTConfig_CheckSafe)
{
if(!NTTMGR_CheckSafe(3))
{
NTC_SendMsgToScript("default.ntj", "NTTMGR_CheckSafe()");
return;
}
}
NTM_MoveTo(me.areaid, 15092, 5010);
NTP_DoPrecast();
while(NTC_FindMonster(543))
NTC_Delay(500);
_portal = NTC_GetUnit(NTC_UNIT_OBJECT, 563);
if(!_portal)
{
NTC_SendMsgToScript("default.ntj", "NTC_GetUnit()");
return;
}
if(!NTM_UsePortal("Portal", 132, null, _portal))
{
NTC_SendMsgToScript("default.ntj", "NTM_UsePortal()");
return;
}
NTM_MoveTo(me.areaid, 15138, 5916);
if(!NTA_KillBoss(544))
{
NTC_SendMsgToScript("default.ntj", "NTA_KillBoss()");
return;
}
NTSI_PickItems();
}
if(NTConfig_PublicMode)
Say("New game in 15s. Follow me at channel BlizzSector");
NTC_SendMsgToScript("default.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, 0x04);
NTA_ClearPosition(25);
NTSI_PickItems();
}
NTT_CleanPotions();
}
function NT_ThroneCheckInt()
{
var _monster;
if(!NTC_FindMonster(543))
return 5;
_monster = NTC_GetUnit(NTC_UNIT_MONSTER);
if(_monster)
{
do
{
if(NTA_IsValidTarget(_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[2] == 56 || NTConfig_AttackSkill[2] == 59)
return NTC_DoCast(NTConfig_AttackSkill[2], 2, 15092, 5028);
}
else if(me.classid == NTC_CHAR_CLASS_PALADIN)
{
if(NTConfig_AttackSkill[2] == 112)
{
if(NTConfig_PutAura > 0)
NTC_PutSkill(NTConfig_PutAura, NTC_HAND_RIGHT);
return NTC_DoCast(NTConfig_AttackSkill[2], 2);
}
}
return false;
}
function NT_CheckHydraInt()
{
var _hydra1, _hydra2, _hydra3;
_hydra1 = NTC_GetUnit(NTC_UNIT_MONSTER, 351);
_hydra2 = NTC_GetUnit(NTC_UNIT_MONSTER, 352);
_hydra3 = NTC_GetUnit(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_Delay(3000);
}
}
US East L/NL-arowws4 arowws5 uber/organ runs for free. Free items too. Just ask. Must be member of this site.
Yes i know. But it was more about, helping the Channel users, so they can see the next game my bot gonna make.
Thanks Mob! I'm glad to finally get it to say something fun :)
"Baal stole my catnip! Bad Monster!!"
you might need to have a dedicated channel bot then..
as far as i know, d2nt doesnt have that feature. (or i never discovered it)
US East L/NL-arowws4 arowws5 uber/organ runs for free. Free items too. Just ask. Must be member of this site.
There is a way to get it to say things in chat, but i haven't gotten it to be able to say the number of the next game.
If you look in the NTBot file and go down to case 3: //lobby chat you can add something like
Say(Next Game Soon);
under
Say("/join" + etc...);
I'm still looking into editing a script for this, ill post back if i find anything new.
There is no real way to do this with the Standard D2NT. However, GVEtal (Heavily modded D2NT) has this option available and you may want to look into it.
Need help with setting up D2NT? Check out my guide: http://d2nt-setup-pickit-guide.bravehost.com/
OMG.. just add another chat after it. worked for me :P
case 3: // Lobby Chat
if(!chatActionsDone)
{
chatActionsDone = true;
Delay(Random(waitInChatBeforeActionsMin, waitInChatBeforeActionsMax));
if(joinRandomChannel || joinChannelInChat != "")
{
Say("/join " + (joinRandomChannel ? getRandomString(Random(3,10)) : joinChannelInChat)); Say
("noobs fail.");
Delay(1000);
}
}
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks