Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.70 KB | None | 0 0
  1. // * This one and only script is brought to you by TheFreak a.k.a Young_Love a.k.a Shadde a.k.a Nub. * \\
  2. // ** Do not distribute this to anyone by any mean's. ** \\
  3. // *** This is exclusively for Clan Mod use only. *** \\
  4. // **** MoDCaptureHostile **** \\
  5. // **************************************************************************************************** \\
  6.  
  7. var channelName = "Clan CMod"; // Channel hostel will be banned from
  8.  
  9. function NTMain()
  10. {
  11. Include("libs/common/NTCommon.ntl"); // Normal needed
  12. NTC_IncludeLibs(); // Normal needed
  13. NTC_IncludeConfig("NTBot/char_configs"); // Normal needed
  14. NT_LoadConfig(); // Normal needed
  15. NTA_Initialize(); // Normal needed
  16.  
  17. if(LogHostiles) // If true
  18. {
  19. RegisterEvent(EVENT_GAMEMSG, MoD_HostileCapture); // Ability to read player entered and hostility message
  20. //NTC_IncludeHostile(); // For when alex makes updated D2NT
  21. Print("ÿc4TheFreak's Hostile Capture ÿc8v2.5"); // Prints : TheFreak's Capture Hostile v2.0. When Alex updates, this wont be here
  22. }
  23.  
  24. var tempLog = FileOpen("NTBot/Hostile/tempLog.txt", 1); // Open tempLog and erase all from last game
  25. tempLog.Close(); // Close tempLog
  26.  
  27. while(1) // While 1 is true (always is unless declared other wise)
  28. {
  29. Delay(200); // Will run infinate delay while in game
  30. var ticker = 1; // Timer
  31. while(ticker < 30) // While timer is less than 30, keep waiting
  32. {
  33. Delay(200); // Just delay
  34. if(ticker = 30) // If timer = 30
  35. if(LogHostiles) // If true
  36. if(randomThings()) // Say cool and funny stuff
  37. return Delay(200);
  38. }
  39. }
  40. }
  41.  
  42.  
  43. function MoD_HostileCapture(msg, type) // Read messages while delaying in game
  44. {
  45. var _logAll = "stronger"; // Part of message when player joins game
  46. if(type == 4 && msg.indexOf(_logAll) > -1) // If it is shown
  47. {
  48. var characterAndAccount = msg.split(" j"); // Takes everything from before the "j" from "joined" and splits
  49. var getAccount = characterAndAccount[0]; // Holds from beginning to where it split
  50. var tempLog = FileOpen("NTBot/Hostile/tempLog.txt", 2); // Open tempLog without deleting
  51.  
  52. Print("ÿc1Getting Potential Hostiler Info"); // Only bot can see
  53.  
  54. Delay(Random(50,100)); // Random Delay, To increase probability of perfection
  55.  
  56. tempLog.WriteLine(getAccount); // Writes the split message in tempLog (character and account name)
  57. tempLog.Close(); // Closes tempLog
  58. }
  59.  
  60. var _hostileLog = "expressed hostility"; // Part of message when player hostiles
  61.  
  62. if(msg.indexOf(_hostileLog) != -1) // If it is shown
  63. {
  64. var accountName; // Captures account name of hostiler
  65. var _player = msg.split(" ") [0]; // Player name of hostiler. Splits hostility message from beggining to first space. Which will be character name
  66. var player = GetPlayerUnit(); // Part of a project, unfinished
  67. var playerIsHostile = GetPlayerFlag(me.gid, _player.gid, 9); // Part of a project, unfinished
  68.  
  69. if(_player) // If bot has character name from hostile message
  70. {
  71. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  72.  
  73. var tempLog = FileOpen("NTBot/Hostile/tempLog.txt", 2); // Opens the tempLog that contains potential hostile info
  74.  
  75. if(!tempLog) // If bot cant find tempLog
  76. tempLog = FileOpen("NTBot/Hostile/tempLog.txt", 2); // Make sure it's opened
  77.  
  78. while(!tempLog.eof) // While tempLog is open
  79. {
  80. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  81. var neededLine = (tempLog.ReadLine()) // Reads tempLog
  82.  
  83. if(neededLine.indexOf(_player) != -1) // If players name is found in tempLog
  84. {
  85. accountName = neededLine.split("(")[1].substring(0, neededLine.split("(")[1].length -1); // Copy Character and Account
  86. }
  87. }
  88. tempLog.Close(); // Close tempLog
  89.  
  90. if(accountName) // If it has account name
  91. {
  92. var permLog = FileOpen("NTBot/Hostile/permLog.txt", 2); // Open permLog
  93. var myDate = new Date(); // Date for Info
  94. var time = timeStamp(); // Time for info
  95.  
  96. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  97. if(!permLog) // If permLog isnt open
  98. permLog = FileOpen("NTBot/Hostile/permLog.txt", 2); // Open permLog
  99.  
  100. permLog.WriteLine("--------Hostile Information--------") // Write in permLog
  101. permLog.WriteLine("Time Of Hostile = " + time); // Write in permLog
  102. permLog.WriteLine("Date Of Hostile = " + myDate.toDateString()); // Write in permLog
  103. permLog.WriteLine("Game Of Hostility = " + me.gamename); // Write in permLog
  104. permLog.WriteLine("Person Of Hostility = " + _player + "(" + accountName + ")");// Write in permLog
  105. permLog.WriteLine("-----------------------------------"); // Write in permLog
  106. permLog.WriteLine(" "); // Write in permLog
  107. permLog.Close(); // Close permLog // Close permLog
  108. Delay(Random(10,100)); // Random Delay, To increase probability of perfection
  109.  
  110. }
  111. }
  112.  
  113. Print("ÿc9" + _player + "ÿc9 caught!"); // Only bot can see
  114.  
  115. Say("ÿc1" +_player + " has been captured, and will be banned from channel : " + channelName + "."); // Says to all in game
  116.  
  117. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  118.  
  119. Say("/w *mod-moves@azeroth !ban " + accountName + "@useast"); // Whispers to Dan and bans the person
  120. if(MoDHostile_GetThenQuit) // If true
  121. {
  122. var _area = GetArea(); // Gets location
  123. NTC_SendLogToOOG(NTC_LOG_COMMON, "ÿE00000Game is terminated by hostile : ÿc3" + _player + "(" + accountName + ")ÿE00000 while in (" + _area.name + ")"); // Types in common log
  124. ExitGame(); // Leaves game
  125. }
  126. else
  127. {
  128. var _area = GetArea(); // Get location
  129. NTC_SendLogToOOG(NTC_LOG_COMMON, "ÿc3" + _player + "(" + accountName + ")ÿE00000 Hostiled while in (" + _area.name + ")"); // Types in common log
  130. }
  131. }
  132. }
  133.  
  134. function timeStamp() // Gets correct time for permLog
  135. {
  136. var now = new Date();
  137. var hour = now.getHours();
  138. var minute = now.getMinutes();
  139. var second = now.getSeconds();
  140. var DoN = "AM";
  141. if(twelveHourClock)
  142. {
  143. if (hour > 11)
  144. {
  145. DoN = "PM";
  146. }
  147. if (hour > 12)
  148. {
  149. hour = hour - 12;
  150. }
  151. if (hour == 0)
  152. {
  153. hour = 12;
  154. }
  155. if (hour < 10)
  156. {
  157. hour = "0" + hour;
  158. }
  159. }
  160. if (minute < 10)
  161. {
  162. minute = "0" + minute;
  163. }
  164. if (second < 10)
  165. {
  166. second = "0" + second;
  167. }
  168.  
  169. var timeString = hour + ':' + minute + ':' + second + " " + DoN;
  170.  
  171. return timeString;
  172. }
  173.  
  174. function randomThings()
  175. {
  176. var now = new Date();
  177. var month = now.getMonth();
  178. var day = now.getDate();
  179. if(month == 0) // January
  180. {
  181. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  182. if(day == 1)
  183. Say("Omg, It's New Years!!");
  184. else
  185. if(day != 1)
  186. Say("This month of botting is brought to you by the Super Bowl!");
  187. }
  188. if(month == 1) // February
  189. {
  190. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  191. if(day == 1)
  192. Say("February is here. One step closer to summer!");
  193. if(day > 1 && day < 14)
  194. Say("Valentine's day is coming fast, dont forget");
  195. if(day == 14)
  196. Say("Awww, the day of love, do you have a significant other? Well get off the damn game and be with them");
  197. if(day > 14)
  198. Say("Run's brought to you by Clan Cmod");
  199. }
  200. if(month == 2) // March
  201. {
  202. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  203. if(day < 31)
  204. Say("Run's brought to you by Clan Cmod");
  205. if(day == 31)
  206. Say("Finally, april is tomorrow");
  207. }
  208. if(month == 3) // April
  209. {
  210. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  211. if(day == 1)
  212. Say("Easter is coming. Get ready for sugar high kids!");
  213. if(day > 1 && day < 24)
  214. Say("Run's brought to you by Clan Cmod");
  215. if(day == 24)
  216. Say("It's easter OMG, CANDY!");
  217. if(day > 24 && day < 30)
  218. Say("Check us out at Clan-Mod.com");
  219. if(day == 30)
  220. Say("Nothing special going on next month. Run's brought to you by Clan Cmod");
  221. }
  222. if(month == 4) // May
  223. {
  224. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  225. if(day == 5)
  226. Say("Cinco De Mayo for all you mexican's. Go celebrate and do whatever. :\)");
  227. if(day < 30 && day != 5)
  228. Say("Join channel : Clan Cmod to follow the best runs on ladder");
  229. if(day == 30)
  230. Say("Wooohhoooo Memorial Day. Honor the dead that died for us");
  231. if(day == 31)
  232. Say("Yay, it's almost June");
  233. }
  234. if(month == 5) // June
  235. {
  236. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  237. if(day < 19)
  238. Say("Remind your woman the 19th is YOUR day");
  239. if(day == 19)
  240. Say("Happy father's day to all you lucky dad's out there.");
  241. if(day > 19)
  242. Say("Run's powered by truely good father's!");
  243. }
  244. if(month == 6) // July
  245. {
  246. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  247. if(day < 4)
  248. Say("Bust out the Will Smith movie's.");
  249. if(day == 4)
  250. Say("Go get drunk people!");
  251. if(day > 4)
  252. Say("Well i had fun the 4th, how about you?");
  253. }
  254. if(month == 7) // August
  255. {
  256. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  257. if(day == 1)
  258. Say("Nothing special this month.");
  259. if(day > 1)
  260. Say("Run's brought to you by Clan Mod.");
  261. }
  262. if(month == 8) // September
  263. {
  264. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  265. if(day < 5)
  266. Say("Dont wear white on the fifth.");
  267. if(day == 5)
  268. Say("All you lazy bumb's off work.");
  269. if(day == 11)
  270. Say("Bow your heads to the one's lost in the accident in New York.");
  271. if(day > 11)
  272. Say("Hmm, get thinking about those holloween costumes people.");
  273. }
  274. if(month == 9) // October
  275. {
  276. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  277. if(day < 31)
  278. Say("Halloween is coming, Halloween is coming.");
  279. if(day == 31)
  280. Say("Dont forget to dress up, or hand out candy, it's fun!");
  281. }
  282. if(month == 10) // November
  283. {
  284. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  285. if(day < 24)
  286. Say("Get those bird's people!");
  287. if(day == 24)
  288. Say("Don't eat to much turkey and drive, it's dangerous.");
  289. if(day > 24)
  290. Say("Eat those left over's!");
  291. }
  292. if(month == 11) // December
  293. {
  294. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  295. if(day < 25)
  296. Say("Oh christmas tree, oh christmas tree. All i want for christmas is my two front teeth.");
  297. if(day == 25)
  298. Say("I didn't get my two front teeth :(");
  299. if(day > 25)
  300. Say("Run's brought to you by Santa Clause.");
  301. }
  302. Delay(Random(200,500)); // Random Delay, To increase probability of perfection
  303.  
  304. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement