Author Topic: Updated Baal Leech.  (Read 993 times)

Offline TheFreak

  • Just like an admin ;)
  • PK Pro
  • ****
  • Posts: 373
  • Reputation 1
  • I rap and write javascript mutha fucka!
    • View Profile
Updated Baal Leech.
« on: August 31, 2010, 06:04:29 PM »
Here's tha script:
Code: [Select]
function NTMain()
{
   
   Include("libs/common/NTCommon.ntl");
   NTC_IncludeLibs();
   NTC_IncludeConfig("NTBot/char_configs");

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

   NTA_Initialize(); // 10

   var _leader = "SmacksAHoe"; // Name of leader's character in game (exactly)
   
RegisterEvent(EVENT_GAMEMSG, NT_GameMsgEvents);

   NTTM_CheckAct();

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

   if(!NTM_TakeWaypoint(109))
   {
      NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
      return;
   }
   }
       
   NTTMGR_TownManager();
   
   NTTM_TownMove("portalspot");

   for(i = 0; i <= 200; i++)
   {
      if(NTC_InMyParty(_leader))
         break;

      Delay(200);
   }   
   
while(NTC_InMyParty("SmacksAHoe"))
{
Delay(1000);
}

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

}

function NT_GameMsgEvents(msg, type)
{   
if(type == 0 && msg.indexOf("TP is safe!") != -1)
{
Say("Taking Portal");
NTTM_TownMove("portalspot");
Delay(200);
NTM_UsePortal("BluePortal", 131, "SmacksAHoe"); 
Delay(200);
NTP_DoPrecast(true);
Delay(30000);
}
if(type == 0 && msg.indexOf("Next game go to channel: OP RIP-Mori") != -1)
{
ExitGame();

if(type == 4 && msg.indexOf("SmacksAHoe dropped due to timeout.") != -1)
{
ExitGame();
}
if(type == 4 && msg.indexOf("SmacksAHoe(shadde) left our world. Diablo\'s minions weaken.") != -1)
{
ExitGame();
}
}

Replace it wit yur current NTBaalLeech.ntj

Now here is tha code again, But showing what to replace.

Red = Leader Name.
Blue = Leader Account
Green = NG Message That Leader says when game is done.
Purple = Tp Safe Message.

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

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

   NTA_Initialize(); // 10

   var _leader = "SmacksAHoe"; // Name of leader's character in game (exactly)
   
   RegisterEvent(EVENT_GAMEMSG, NT_GameMsgEvents);
   
   NTTM_CheckAct();

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

   if(!NTM_TakeWaypoint(109))
   {
      NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
      return;
   }
   }
       
   NTTMGR_TownManager();
   
   NTTM_TownMove("portalspot");

   for(i = 0; i <= 200; i++)
   {
      if(NTC_InMyParty(_leader))
         break;

      Delay(200);
   }   
   
   while(NTC_InMyParty("SmacksAHoe"))
   {
   Delay(1000);
   }

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

}

function NT_GameMsgEvents(msg, type)
{   
   if(type == 0 && msg.indexOf("TP is safe!") != -1)
   {
      Say("Taking Portal");
      NTTM_TownMove("portalspot");
      Delay(200);
      NTM_UsePortal("BluePortal", 131, "SmacksAHoe"); 
      Delay(200);
      NTP_DoPrecast(true);
      Delay(30000);
   }
   if(type == 0 && msg.indexOf("Next game go to channel: OP RIP-Mori") != -1)
   {
      ExitGame();
   } 
   if(type == 4 && msg.indexOf("SmacksAHoe dropped due to timeout.") != -1)
   {
      ExitGame();
   }
   if(type == 4 && msg.indexOf("SmacksAHoe(shadde) left our world. Diablo\'s minions weaken.") != -1)
   {
      ExitGame();
   }
}

« Last Edit: August 31, 2010, 06:10:18 PM by TheFreak »


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"

cooptheking

  • Guest
Re: Updated Baal Leech.
« Reply #1 on: August 31, 2010, 06:37:36 PM »
I approve this message :)
nice job shaddes
where u been man?

Offline TheFreak

  • Just like an admin ;)
  • PK Pro
  • ****
  • Posts: 373
  • Reputation 1
  • I rap and write javascript mutha fucka!
    • View Profile
Re: Updated Baal Leech.
« Reply #2 on: August 31, 2010, 06:47:13 PM »
Just out and about. I'm goin back to school tha 6th of september i think, so im going to be even more inactive :(


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"

Offline fireshocker

  • Newbie
  • *
  • Posts: 11
  • Reputation 0
    • View Profile
Re: Updated Baal Leech.
« Reply #3 on: September 01, 2010, 11:42:45 PM »
anyway to just use _leader inplace of your leader name? that way only one place to edit.

Offline TheFreak

  • Just like an admin ;)
  • PK Pro
  • ****
  • Posts: 373
  • Reputation 1
  • I rap and write javascript mutha fucka!
    • View Profile
Re: Updated Baal Leech.
« Reply #4 on: September 02, 2010, 11:03:10 AM »
Nope, registerevents doesnt really support that method to well.


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"

Offline chris78

  • Newbie
  • *
  • Posts: 9
  • Reputation 0
    • View Profile
Re: Updated Baal Leech.
« Reply #5 on: September 02, 2010, 05:19:21 PM »
Here's tha script:
Code: [Select]
function NTMain()
{
   
   Include("libs/common/NTCommon.ntl");
   NTC_IncludeLibs();
   NTC_IncludeConfig("NTBot/char_configs");

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

   NTA_Initialize(); // 10

   var _leader = "SmacksAHoe"; // Name of leader's character in game (exactly)
   
RegisterEvent(EVENT_GAMEMSG, NT_GameMsgEvents);

   NTTM_CheckAct();

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

   if(!NTM_TakeWaypoint(109))
   {
      NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
      return;
   }
   }
       
   NTTMGR_TownManager();
   
   NTTM_TownMove("portalspot");

   for(i = 0; i <= 200; i++)
   {
      if(NTC_InMyParty(_leader))
         break;

      Delay(200);
   }   
   
while(NTC_InMyParty("SmacksAHoe"))
{
Delay(1000);
}

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

}

function NT_GameMsgEvents(msg, type)
{   
if(type == 0 && msg.indexOf("TP is safe!") != -1)
{
Say("Taking Portal");
NTTM_TownMove("portalspot");
Delay(200);
NTM_UsePortal("BluePortal", 131, "SmacksAHoe"); 
Delay(200);
NTP_DoPrecast(true);
Delay(30000);
}
if(type == 0 && msg.indexOf("Next game go to channel: OP RIP-Mori") != -1)
{
ExitGame();

if(type == 4 && msg.indexOf("SmacksAHoe dropped due to timeout.") != -1)
{
ExitGame();
}
if(type == 4 && msg.indexOf("SmacksAHoe(shadde) left our world. Diablo\'s minions weaken.") != -1)
{
ExitGame();
}
}

Replace it wit yur current NTBaalLeech.ntj

Now here is tha code again, But showing what to replace.

Red = Leader Name.
Blue = Leader Account
Green = NG Message That Leader says when game is done.
Purple = Tp Safe Message.

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

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

   NTA_Initialize(); // 10

   var _leader = "SmacksAHoe"; // Name of leader's character in game (exactly)
   
   RegisterEvent(EVENT_GAMEMSG, NT_GameMsgEvents);
   
   NTTM_CheckAct();

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

   if(!NTM_TakeWaypoint(109))
   {
      NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
      return;
   }
   }
       
   NTTMGR_TownManager();
   
   NTTM_TownMove("portalspot");

   for(i = 0; i <= 200; i++)
   {
      if(NTC_InMyParty(_leader))
         break;

      Delay(200);
   }   
   
   while(NTC_InMyParty("SmacksAHoe"))
   {
   Delay(1000);
   }

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

}

function NT_GameMsgEvents(msg, type)
{   
   if(type == 0 && msg.indexOf("TP is safe!") != -1)
   {
      Say("Taking Portal");
      NTTM_TownMove("portalspot");
      Delay(200);
      NTM_UsePortal("BluePortal", 131, "SmacksAHoe"); 
      Delay(200);
      NTP_DoPrecast(true);
      Delay(30000);
   }
   if(type == 0 && msg.indexOf("Next game go to channel: OP RIP-Mori") != -1)
   {
      ExitGame();
   } 
   if(type == 4 && msg.indexOf("SmacksAHoe dropped due to timeout.") != -1)
   {
      ExitGame();
   }
   if(type == 4 && msg.indexOf("SmacksAHoe(shadde) left our world. Diablo\'s minions weaken.") != -1)
   {
      ExitGame();
   }
}
Enjoy the script

Offline TheFreak

  • Just like an admin ;)
  • PK Pro
  • ****
  • Posts: 373
  • Reputation 1
  • I rap and write javascript mutha fucka!
    • View Profile
Re: Updated Baal Leech.
« Reply #6 on: September 02, 2010, 05:37:08 PM »
?


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"