Tell me if you like the idea of this script.
You can make other script for leeches to take those waypoints automatically.
Its pretty much possible ;-)
* WAYPOINT COMMANDS!
*
* Give Wps 1, Give Wps 2, Give Wps 3, Give Wps 4, Give Wps 5, will give other people the waypoints in an individual act
* Give Wps All = gives every waypoint in the game except halls of pain
* Give Wps Stop - stops script
*/
Config for your character script:
Script Code:
You can make other script for leeches to take those waypoints automatically.
Its pretty much possible ;-)
* WAYPOINT COMMANDS!
*
* Give Wps 1, Give Wps 2, Give Wps 3, Give Wps 4, Give Wps 5, will give other people the waypoints in an individual act
* Give Wps All = gives every waypoint in the game except halls of pain
* Give Wps Stop - stops script
*/
Config for your character script:
Code:
NTConfig_Script.push("NTGivewps.ntj");
NTConfig_ChickenWaypointGiver = true; // Clear mobs around waypoint
NTConfig_TimeBetweenWayPoints = 10000; // Time Between Portals To WayPoints
NTConfig_AskPlayerForNextWp = true; // Asks player for next wp instead of time comming from NTConfig_TimeBetweenWayPoints
Script Code:
Code:
/*Readme
* WAYPOINT COMMANDS!
*
* Give Wps 1, Give Wps 2, Give Wps 3, Give Wps 4, Give Wps 5, will give other people the waypoints in an individual act
* Give Wps All = gives every waypoint in the game except halls of pain
* Give Wps Stop - stops script
*/
var Act1WpID = [3, 4, 5, 6, 27, 29, 32, 35];
var Act2WpID = [48, 57, 42, 43, 44, 52, 74, 46];
var Act3WpID = [76, 77, 78, 79, 80, 81, 83, 101];
var Act4WpID = [106, 107];
var Act5WpID = [111, 112, 113, 115, 117, 118, 129];
Stop_Give_Wps = false;
function NTMain()
{
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");
NTA_Initialize();
RegisterEvent(EVENT_GAMEMSG, NT_GameMsgEvents);
if(!NTTM_CheckAct())
{
NTC_SendMsgToScript("default.ntj", "NTTM_CheckAct()");
return;
}
NTTMGR_TownManager();
if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("default.ntj", "NTTM_TownMove()");
return;
}
while (1)
{
Delay(500);
}
}
function GiveWayPoints(WpID)
{
NTTMGR_TownManager();
if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("default.ntj", "NTTM_TownMove()");
return;
}
for(var j=0; j < WpID.length ;j++)
{
if (Stop_Give_Wps)
{
NTM_MakeTP();
NTM_UsePortal("BluePortal", 1, me.charname);
return;
}
if(!NTM_TakeWaypoint(WpID[j]))
{
NTC_SendMsgToScript("default.ntj", "NTM_TakeWaypoint()");
continue;
}
if(!NTTMGR_CheckSafe(2))
{
NTC_SendMsgToScript("default.ntj",
"NTTMGR_CheckSafe()");
return;
}
NTM_MoveTo(me.areaid, me.x-4, me.y);
NTM_MakeTP();
if (!NTConfig_ChickenWaypointGiver)
{
NTP_DoPrecast();
NTA_ClearPosition(20, true, 2)
}
Say("Tp to Wps nr " +(j+1) + " in this Act is up");
NTM_UsePortal("BluePortal", 1, me.charname);
if ((WpID.length-1) != j)
{
NTTMGR_TownManager();
NTTM_TownMove("portalspot");
if (!NTConfig_AskPlayerForNextWp)
{
Say("Waiting " + (parseInt(NTConfig_TimeBetweenWayPoints/1000)) + " seconds");
Delay(NTConfig_TimeBetweenWayPoints);
}
else
{
Say("Next Wps? Say >> y << in chat to continue");
NextWps = false;
while (NextWps == false) {Delay(500);}
}
NTM_UsePortal("BluePortal", WpID[j], me.charname);
}
}
//NTM_MakeTP();
Say("Wps in this ACT done, Good Luck!");
}
//Give Wps 1, Give Wps 2, Give Wps 3, Give Wps 4, Give Wps 5,, = Select these for rushing individual acts
function NT_GameMsgEvents(msg, type){
if ((type == 0 && msg[msg.indexOf(":")+2] == 'y') && (type == 0 && msg.indexOf("continue") == -1)) {
NextWps = true;
}
if(type == 0 && msg.indexOf("Give Wps Stop") != -1){
Stop_Give_Wps = true;
NextWps = true;
Say("Stopping Script");
}
if(type == 0 && msg.indexOf("Give Wps All") != -1){
Say("Giving Wps in Act 1 Started!");
GiveWayPoints(Act1WpID);
Say("Giving Wps in Act 2 Started!");
GiveWayPoints(Act2WpID);
Say("Giving Wps in Act 3 Started!");
GiveWayPoints(Act3WpID);
Say("Giving Wps in Act 4 Started!");
GiveWayPoints(Act4WpID);
Say("Giving Wps in Act 5 Started!");
GiveWayPoints(Act5WpID);
if (Stop_Give_Wps == true)
{
Say("Script Stopped");
Stop_Give_Wps = false;
}
}
if(type == 0 && msg.indexOf("Give Wps 1") != -1){
Say("Giving Wps in Act 1 Started!");
GiveWayPoints(Act1WpID);
if (Stop_Give_Wps == true)
{
Say("Script Stopped");
Stop_Give_Wps = false;
}
}
if(type == 0 && msg.indexOf("Give Wps 2") != -1){
Say("Giving Wps in Act 2 Started!");
GiveWayPoints(Act2WpID);
if (Stop_Give_Wps == true)
{
Say("Script Stopped");
Stop_Give_Wps = false;
}
}
if(type == 0 && msg.indexOf("Give Wps 3") != -1){
Say("Giving Wps in Act 3 Started!");
GiveWayPoints(Act3WpID);
if (Stop_Give_Wps == true)
{
Say("Script Stopped");
Stop_Give_Wps = false;
}
}
if(type == 0 && msg.indexOf("Give Wps 4") != -1){
Say("Giving Wps in Act 4 Started!");
GiveWayPoints(Act4WpID);
if (Stop_Give_Wps == true)
{
Say("Script Stopped");
Stop_Give_Wps = false;
}
}
if(type == 0 && msg.indexOf("Give Wps 5") != -1){
Say("Giving Wps in Act 5 Started!");
GiveWayPoints(Act5WpID);
if (Stop_Give_Wps == true)
{
Say("Script Stopped");
Stop_Give_Wps = false;
}
}
}