Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // * This one and only script is brought to you by TheFreak a.k.a Young_Love a.k.a Shadde a.k.a Nub. * \\
- // ** Do not distribute this to anyone by any mean's. ** \\
- // *** This is exclusively for Clan Mod use only. *** \\
- // **** MoDCaptureHostile **** \\
- // **************************************************************************************************** \\
- var channelName = "Clan CMod"; // Channel hostel will be banned from
- function NTMain()
- {
- Include("libs/common/NTCommon.ntl"); // Normal needed
- NTC_IncludeLibs(); // Normal needed
- NTC_IncludeConfig("NTBot/char_configs"); // Normal needed
- NT_LoadConfig(); // Normal needed
- NTA_Initialize(); // Normal needed
- if(LogHostiles) // If true
- {
- RegisterEvent(EVENT_GAMEMSG, MoD_HostileCapture); // Ability to read player entered and hostility message
- //NTC_IncludeHostile(); // For when alex makes updated D2NT
- Print("ÿc4TheFreak's Hostile Capture ÿc8v2.5"); // Prints : TheFreak's Capture Hostile v2.0. When Alex updates, this wont be here
- }
- var tempLog = FileOpen("NTBot/Hostile/tempLog.txt", 1); // Open tempLog and erase all from last game
- tempLog.Close(); // Close tempLog
- while(1) // While 1 is true (always is unless declared other wise)
- {
- Delay(200); // Will run infinate delay while in game
- var ticker = 1; // Timer
- while(ticker < 30) // While timer is less than 30, keep waiting
- {
- Delay(200); // Just delay
- if(ticker = 30) // If timer = 30
- if(LogHostiles) // If true
- if(randomThings()) // Say cool and funny stuff
- return Delay(200);
- }
- }
- }
- function MoD_HostileCapture(msg, type) // Read messages while delaying in game
- {
- var _logAll = "stronger"; // Part of message when player joins game
- if(type == 4 && msg.indexOf(_logAll) > -1) // If it is shown
- {
- var characterAndAccount = msg.split(" j"); // Takes everything from before the "j" from "joined" and splits
- var getAccount = characterAndAccount[0]; // Holds from beginning to where it split
- var tempLog = FileOpen("NTBot/Hostile/tempLog.txt", 2); // Open tempLog without deleting
- Print("ÿc1Getting Potential Hostiler Info"); // Only bot can see
- Delay(Random(50,100)); // Random Delay, To increase probability of perfection
- tempLog.WriteLine(getAccount); // Writes the split message in tempLog (character and account name)
- tempLog.Close(); // Closes tempLog
- }
- var _hostileLog = "expressed hostility"; // Part of message when player hostiles
- if(msg.indexOf(_hostileLog) != -1) // If it is shown
- {
- var accountName; // Captures account name of hostiler
- var _player = msg.split(" ") [0]; // Player name of hostiler. Splits hostility message from beggining to first space. Which will be character name
- var player = GetPlayerUnit(); // Part of a project, unfinished
- var playerIsHostile = GetPlayerFlag(me.gid, _player.gid, 9); // Part of a project, unfinished
- if(_player) // If bot has character name from hostile message
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- var tempLog = FileOpen("NTBot/Hostile/tempLog.txt", 2); // Opens the tempLog that contains potential hostile info
- if(!tempLog) // If bot cant find tempLog
- tempLog = FileOpen("NTBot/Hostile/tempLog.txt", 2); // Make sure it's opened
- while(!tempLog.eof) // While tempLog is open
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- var neededLine = (tempLog.ReadLine()) // Reads tempLog
- if(neededLine.indexOf(_player) != -1) // If players name is found in tempLog
- {
- accountName = neededLine.split("(")[1].substring(0, neededLine.split("(")[1].length -1); // Copy Character and Account
- }
- }
- tempLog.Close(); // Close tempLog
- if(accountName) // If it has account name
- {
- var permLog = FileOpen("NTBot/Hostile/permLog.txt", 2); // Open permLog
- var myDate = new Date(); // Date for Info
- var time = timeStamp(); // Time for info
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(!permLog) // If permLog isnt open
- permLog = FileOpen("NTBot/Hostile/permLog.txt", 2); // Open permLog
- permLog.WriteLine("--------Hostile Information--------") // Write in permLog
- permLog.WriteLine("Time Of Hostile = " + time); // Write in permLog
- permLog.WriteLine("Date Of Hostile = " + myDate.toDateString()); // Write in permLog
- permLog.WriteLine("Game Of Hostility = " + me.gamename); // Write in permLog
- permLog.WriteLine("Person Of Hostility = " + _player + "(" + accountName + ")");// Write in permLog
- permLog.WriteLine("-----------------------------------"); // Write in permLog
- permLog.WriteLine(" "); // Write in permLog
- permLog.Close(); // Close permLog // Close permLog
- Delay(Random(10,100)); // Random Delay, To increase probability of perfection
- }
- }
- Print("ÿc9" + _player + "ÿc9 caught!"); // Only bot can see
- Say("ÿc1" +_player + " has been captured, and will be banned from channel : " + channelName + "."); // Says to all in game
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- Say("/w *mod-moves@azeroth !ban " + accountName + "@useast"); // Whispers to Dan and bans the person
- if(MoDHostile_GetThenQuit) // If true
- {
- var _area = GetArea(); // Gets location
- NTC_SendLogToOOG(NTC_LOG_COMMON, "ÿE00000Game is terminated by hostile : ÿc3" + _player + "(" + accountName + ")ÿE00000 while in (" + _area.name + ")"); // Types in common log
- ExitGame(); // Leaves game
- }
- else
- {
- var _area = GetArea(); // Get location
- NTC_SendLogToOOG(NTC_LOG_COMMON, "ÿc3" + _player + "(" + accountName + ")ÿE00000 Hostiled while in (" + _area.name + ")"); // Types in common log
- }
- }
- }
- function timeStamp() // Gets correct time for permLog
- {
- var now = new Date();
- var hour = now.getHours();
- var minute = now.getMinutes();
- var second = now.getSeconds();
- var DoN = "AM";
- if(twelveHourClock)
- {
- if (hour > 11)
- {
- DoN = "PM";
- }
- if (hour > 12)
- {
- hour = hour - 12;
- }
- if (hour == 0)
- {
- hour = 12;
- }
- if (hour < 10)
- {
- hour = "0" + hour;
- }
- }
- if (minute < 10)
- {
- minute = "0" + minute;
- }
- if (second < 10)
- {
- second = "0" + second;
- }
- var timeString = hour + ':' + minute + ':' + second + " " + DoN;
- return timeString;
- }
- function randomThings()
- {
- var now = new Date();
- var month = now.getMonth();
- var day = now.getDate();
- if(month == 0) // January
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day == 1)
- Say("Omg, It's New Years!!");
- else
- if(day != 1)
- Say("This month of botting is brought to you by the Super Bowl!");
- }
- if(month == 1) // February
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day == 1)
- Say("February is here. One step closer to summer!");
- if(day > 1 && day < 14)
- Say("Valentine's day is coming fast, dont forget");
- if(day == 14)
- Say("Awww, the day of love, do you have a significant other? Well get off the damn game and be with them");
- if(day > 14)
- Say("Run's brought to you by Clan Cmod");
- }
- if(month == 2) // March
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day < 31)
- Say("Run's brought to you by Clan Cmod");
- if(day == 31)
- Say("Finally, april is tomorrow");
- }
- if(month == 3) // April
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day == 1)
- Say("Easter is coming. Get ready for sugar high kids!");
- if(day > 1 && day < 24)
- Say("Run's brought to you by Clan Cmod");
- if(day == 24)
- Say("It's easter OMG, CANDY!");
- if(day > 24 && day < 30)
- Say("Check us out at Clan-Mod.com");
- if(day == 30)
- Say("Nothing special going on next month. Run's brought to you by Clan Cmod");
- }
- if(month == 4) // May
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day == 5)
- Say("Cinco De Mayo for all you mexican's. Go celebrate and do whatever. :\)");
- if(day < 30 && day != 5)
- Say("Join channel : Clan Cmod to follow the best runs on ladder");
- if(day == 30)
- Say("Wooohhoooo Memorial Day. Honor the dead that died for us");
- if(day == 31)
- Say("Yay, it's almost June");
- }
- if(month == 5) // June
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day < 19)
- Say("Remind your woman the 19th is YOUR day");
- if(day == 19)
- Say("Happy father's day to all you lucky dad's out there.");
- if(day > 19)
- Say("Run's powered by truely good father's!");
- }
- if(month == 6) // July
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day < 4)
- Say("Bust out the Will Smith movie's.");
- if(day == 4)
- Say("Go get drunk people!");
- if(day > 4)
- Say("Well i had fun the 4th, how about you?");
- }
- if(month == 7) // August
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day == 1)
- Say("Nothing special this month.");
- if(day > 1)
- Say("Run's brought to you by Clan Mod.");
- }
- if(month == 8) // September
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day < 5)
- Say("Dont wear white on the fifth.");
- if(day == 5)
- Say("All you lazy bumb's off work.");
- if(day == 11)
- Say("Bow your heads to the one's lost in the accident in New York.");
- if(day > 11)
- Say("Hmm, get thinking about those holloween costumes people.");
- }
- if(month == 9) // October
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day < 31)
- Say("Halloween is coming, Halloween is coming.");
- if(day == 31)
- Say("Dont forget to dress up, or hand out candy, it's fun!");
- }
- if(month == 10) // November
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day < 24)
- Say("Get those bird's people!");
- if(day == 24)
- Say("Don't eat to much turkey and drive, it's dangerous.");
- if(day > 24)
- Say("Eat those left over's!");
- }
- if(month == 11) // December
- {
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- if(day < 25)
- Say("Oh christmas tree, oh christmas tree. All i want for christmas is my two front teeth.");
- if(day == 25)
- Say("I didn't get my two front teeth :(");
- if(day > 25)
- Say("Run's brought to you by Santa Clause.");
- }
- Delay(Random(200,500)); // Random Delay, To increase probability of perfection
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement