Author Topic: Rush Bot: Help with Giving all Waypoints  (Read 1967 times)

cooptheking

  • Guest
Re: Rush Bot: Help with Giving all Waypoints
« Reply #15 on: August 05, 2010, 12:43:50 PM »
care to post the radament script and i'll take a look

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: Rush Bot: Help with Giving all Waypoints
« Reply #15 on: August 05, 2010, 12:43:50 PM »

Offline Apeboyz

  • Newbie
  • *
  • Join Date: Aug 2010
  • Posts: 25
  • Reputation 0
  • I <3 PureKaoz.com
    • View Profile
Re: Rush Bot: Help with Giving all Waypoints
« Reply #16 on: August 05, 2010, 02:46:46 PM »
he waits near radament till u join the tp, but the merc kills radament so easy.

and i need the merc for insight on my pally.

here is the script:

i just wanted to wait him for example at the waypoint until everyone is in act 2

Code: [Select]
//##############################################################################################################################
//Do Not distribute these scripts without the credits ##########################################################################
//##############################################################################################################################
//Regards - Shadde from PureKaoz.com; Which is now tha home site of this bot ###################################################
//##############################################################################################################################
function NTMain()
{
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");

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

NTA_Initialize();

me.maxgametime = 0;

if(NTConfig_DoQuests)
{
NTTM_CheckAct();

NTTMGR_TownManager();

NTTM_TownMove("waypoint");

NTM_TakeWaypoint(48);

NTP_DoPrecast(true);

NTM_MoveToStair(me.areaid, 49);

NTM_TakeStair(49);

NTP_DoPrecast();

NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_OBJECT, 355, +25, -20);

NTA_ClearPosition(10);

while(!NTC_IsGroupInAct(2))
NTC_Delay(500);

NTM_MakeTP();
if(NTConfig_Messaging)
{
Say(leaderMsg[3]);
}
NTA_ClearPosition(3);

while(!NTC_IsQuesterIn())
NTC_Delay(500);

NTA_ClearPosition(25);

NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_OBJECT, 355);

NTA_KillMonster(GetLocaleString(2879));

NTA_ClearPosition(10);
if(NTConfig_Messaging)
{
Say(leaderMsg[4]);
}
while(!NTC_IsQuesterOut())
NTC_Delay(500);

NTM_UsePortal("BluePortal");

}

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

}

function NTC_IsQuesterIn(area, name)
{
var _player;
var _myPartyId;
var _area;

_player = GetPlayerUnit();
_myPartyId = _player.partyid;

if(arguments.length < 1)
_area = me.areaid
if(arguments.length > 0)
_area = area;

do
{
if(_player.areaid == _area && _myPartyId == _player.partyid)
{
if(!name)
return true;
else if(_player.name == name)
return true;
}

NTC_Delay(100);

} while(_player.GetNext());

return false;
}

function NTC_IsGroupInAct(act)
{
var _player;
var _myPartyId;
var questeract;

_player = GetPlayerUnit();
_myPartyId = _player.partyid;

do
{

if(_player.areaid <= 39)
questeract = 1;
else if(_player.areaid >= 40 && _player.areaid <= 74)
questeract = 2;
else if(_player.areaid >= 75 && _player.areaid <= 102)
questeract = 3;
else if(_player.areaid >=103 && _player.areaid <= 108)
questeract = 4;
else
questeract = 5;

if(questeract == act && _myPartyId == _player.partyid && _player.name != me.charname)
return true;

NTC_Delay(100);

} while(_player.GetNext());

return false;
}

function NTM_MoveToObject(areaid, unittype, low, high, offsetx, offsety, clearpath)
{
var _unit;

if(arguments.length < 4)
high = low;

if(arguments.length < 5)
{
offsetx = 0;
offsety = 0;
}

if(arguments.length < 7)
clearpath = false;

_unit = GetPresetUnits(areaid, unittype);

if(!_unit)
return false;

for(var i = 0 ; i < _unit.length ; i++)
{
if(_unit[i].id >= low && _unit[i].id <= high)
return NTM_MoveTo(areaid, _unit[i].roomx*5+_unit[i].x+offsetx, _unit[i].roomy*5+_unit[i].y+offsety, 2, clearpath);
}

return false;
}

function NTC_GetUnit(unittype, classid)
{
var _unit;

for(var i = 0 ; i < 2 ; i++)
{
if(arguments.length < 2)
_unit = GetUnit(unittype);
else
_unit = GetUnit(unittype, classid);

if(_unit)
return _unit;

if(i < 1)
NTC_PingDelay(200);
}

return false;
}

function NTC_IsQuesterOut(area)
{
var _player;
var _myPartyId;

_player = GetPlayerUnit();
_myPartyId = _player.partyid;

if(arguments.length < 1)
_area = me.areaid;
else
_area = area;

do
{
if(_player.areaid == _area && _myPartyId == _player.partyid)
return false;

NTC_Delay(100);

} while(_player.GetNext());

return true;
}

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: Rush Bot: Help with Giving all Waypoints
« Reply #16 on: August 05, 2010, 02:46:46 PM »

cooptheking

  • Guest
Re: Rush Bot: Help with Giving all Waypoints
« Reply #17 on: August 05, 2010, 02:59:23 PM »
as far as waiting till everyone is in act2 (im not 100% sure on how that function truly works,  so i can't really help with that BUT in the mean time ;

try making this section at the top
Code: [Select]
if(NTConfig_DoQuests)
   {
   NTTM_CheckAct();

   NTTMGR_TownManager();

      NTTM_TownMove("waypoint");

      NTM_TakeWaypoint(48);

look like this ??

Code: [Select]
if(NTConfig_DoQuests)
   {
   NTTM_CheckAct();

   NTTMGR_TownManager();

Delay(500);
Say("Hurry To Act 2 for Radament Quest");
Delay(4500);

      NTTM_TownMove("waypoint");

      NTM_TakeWaypoint(48);


Offline TheFreak

  • Just like an admin ;)
  • AFK Admins
  • PK Pro
  • *****
  • Join Date: May 2010
  • Posts: 372
  • Reputation 1
  • I rap and write javascript mutha fucka!
    • View Profile
Re: Rush Bot: Help with Giving all Waypoints
« Reply #18 on: August 05, 2010, 06:12:03 PM »
function NTMain()
{
   Include("libs/common/NTCommon.ntl");
   NTC_IncludeLibs();
   NTC_IncludeConfig("NTBot/char_configs");

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

   NTA_Initialize();

   me.maxgametime = 0;

if(NTConfig_DoQuests)
   {
   NTTM_CheckAct();

   NTTMGR_TownManager();

      NTTM_TownMove("waypoint");

      NTM_TakeWaypoint(48);

    while(!NTC_IsGroupInAct(2))
{
Delay(350);
Say("Get To Act 2");
Delay(600);
Say("I'm Waiting!");
Delay(500);
}


My New function:

function AlbertEinstein()
{
If (A = success in life)
A = x + y + z;
x = Work;
y = Play;
z = Keeping your mouth shut;
}

"Right after the Sam-Frodo suckfest, right before the credits roll, Sam fuckin' flat-out brick's in Frodo's mouth"

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: Rush Bot: Help with Giving all Waypoints
« Reply #18 on: August 05, 2010, 06:12:03 PM »