Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Diablo 2 > Diablo 2 Programming
You last visited: Today at 12:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Magic 8 Ball - D2NT Add-On

Discussion on [Release] Magic 8 Ball - D2NT Add-On within the Diablo 2 Programming forum part of the Diablo 2 category.

Reply
 
Old   #1
 
eXoo~'s Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 73
Received Thanks: 12
Wink [Release] Magic 8 Ball - D2NT Add-On

Kennen eventuell schon einige vom Stealth Bot
Habe den Magic8Ball mal mit Hilfe von Muddy_Waters auf D2NT geportet.
Über den Sinn lässt sich streiten, besonders für User die nur privat botten.
Als "Spaß"-Feature für Public Baalruns kann man es jedoch verwenden

Hier mal die grobe Funktionsweise in graphischer Form



Nun zu den Codes:

In eurer Charconfig:
Code:
//------------------------------------------------------------------------------
	// Magic 8 Ball Config
	//------------------------------------------------------------------------------	
	Magic8Ball = true;									// This toggles the Magic8Ball feature on / off.
In NTBotGame.ntj:
Code:
if(Magic8Ball)
			Load("NTBot/tools/NTm8b.ntj");
Inhalt der NTm8b.ntj aus dem Tools-Ordner:
Code:
var Ball_Trigger = ".ask8ball";
var Ball_Answers = new Array();
Ball_Answers.push("As I see It, Yes");
Ball_Answers.push("It is decidedly so");
Ball_Answers.push("It is certain");
Ball_Answers.push("Most likely");
Ball_Answers.push("Outlook good");
Ball_Answers.push("Signs point to Yes");
Ball_Answers.push("Without a doubt");
Ball_Answers.push("YES");
Ball_Answers.push("Yes, definitely");
Ball_Answers.push("You may rely on it");
Ball_Answers.push("Better not tell you now");
Ball_Answers.push("Cannot predict now");
Ball_Answers.push("Concentrate and ask again");
Ball_Answers.push("Don't count on it");
Ball_Answers.push("My reply is No");
Ball_Answers.push("My sources say No");
Ball_Answers.push("Outlook not so good");
Ball_Answers.push("Reply Hazy, Try again");
Ball_Answers.push("Stop trolling");
Ball_Answers.push("You missed that day in school, huh?");
Ball_Answers.push("Ask Claz.(/w *118) TY TY");
Ball_Answers.push("Chav -,-");
Ball_Answers.push("How you dare to ask that?");
Ball_Answers.push("GTFO Randpiss");
Ball_Answers.push("Tosser... ,luv.");
Ball_Answers.push("What about some RL instead?");
Ball_Answers.push("That was serious?");
Ball_Answers.push("Absolutely YES.. and Joe is a jew.");
Ball_Answers.push("NO NO NO NO... joe is no jew. i was kidding, he is a jew.");
Ball_Answers.push("Very doubtful");
Ball_Answers.push("Not only no, but HELL No!");
Ball_Answers.push("Not only yes, but HELL Yes!");
Ball_Answers.push("You will regret it!");
Ball_Answers.push("Signs point to No");
Ball_Answers.push("Outlook is disturbing");
Ball_Answers.push("Please shut up, go take your dumb questions somewhere else.");
Ball_Answers.push("Not only yes, but HELL YES");
Ball_Answers.push("Not only no, but HELL NO");
Ball_Answers.push("I'll kill you.");
Ball_Answers.push("Okay.");
Ball_Answers.push("Sure.");
Ball_Answers.push("Probably.");
Ball_Answers.push("You're a girl, you ask too many fucking questions.");
Ball_Answers.push("Uh-huh.");
Ball_Answers.push("Yup.");
Ball_Answers.push("Could you repeat the question?");
Ball_Answers.push("Nazi -,-");
Ball_Answers.push("Ask again later");

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

	Print("ÿc1Magic 8 Ball");
	RegisterEvent(EVENT_GAMEMSG, NT_GameMsgEvents);

	while(true)
		NTC_Delay(500);
}

function NT_GameMsgEvents(msg, type)
{
	if(type == 0 && msg.toLowerCase().indexOf(Ball_Trigger.toLowerCase()) != -1)
	Say("looks into his Magic 8 Ball: " + MW_GetEightBallAnswer());
}

function MW_GetEightBallAnswer()
{
	NTC_Delay(1);
	return Ball_Answers[Random(0, Ball_Answers.length -1)];
}
Natürlich lassen sich der Triggercommand sowie alle Antworten des Bots nach eigenem Belieben ändern
Bei Fragen stehe ich euch gerne zur Seite.
Lg
eXoo~
eXoo~ is offline  
Thanks
6 Users
Old 12/01/2011, 10:53   #2
 
sataan1337's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 628
Received Thanks: 108
kannte ich noch nicht sieht aber auf jeden fall wie ne lustige Erweiterung aus
sataan1337 is offline  
Old 12/01/2011, 11:18   #3
 
elite*gold: 0
Join Date: Mar 2010
Posts: 539
Received Thanks: 418
Das Script kenn ich doch noch von irgendwo aus der Section!

Eine kleine Verbesserung würde ich vorschlagen, und zwar dass das ganze nicht mehr case-sensitive ist:
Code:
function NT_GameMsgEvents(msg, type)
{
	if(type == 0 && msg.toLowerCase().indexOf(Ball_Trigger.toLowerCase()) != -1)
	Say("looks into his Magic 8 Ball: " + MW_GetEightBallAnswer());
}
Dann ist es egal, ob man .ask8ball, .ASK8BALL oder .AsK8BaLl schreibt, zuvor ging nur .ask8ball!
TheCrazy11 is offline  
Thanks
1 User
Old 12/01/2011, 11:26   #4
 
eXoo~'s Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 73
Received Thanks: 12
Quote:
Originally Posted by TheCrazy11 View Post
Das Script kenn ich doch noch von irgendwo aus der Section!

Eine kleine Verbesserung würde ich vorschlagen, und zwar dass das ganze nicht mehr case-sensitive ist:
Code:
function NT_GameMsgEvents(msg, type)
{
	if(type == 0 && msg.toLowerCase().indexOf(Ball_Trigger.toLowerCase()) != -1)
	Say("looks into his Magic 8 Ball: " + MW_GetEightBallAnswer());
}
Dann ist es egal, ob man .ask8ball, .ASK8BALL oder .AsK8BaLl schreibt, zuvor ging nur .ask8ball!
So Kritik hat man doch gerne
Hab deinen Verbesserungsvorschlag mal oben eingefügt
Hatte das ganze schonma gepostet, allerdings in komplett anderer Form soweit ich mich erinnern kann...
eXoo~ is offline  
Old 12/01/2011, 11:36   #5
 
elite*gold: 0
Join Date: Mar 2010
Posts: 539
Received Thanks: 418
Das war der alte Thread, ist schon ein paar Monate her!
-->

Das Script, das du jetzt gepostet hast, hat damals Muddy überarbeitet!
TheCrazy11 is offline  
Old 12/01/2011, 14:24   #6
 
elite*gold: 0
Join Date: Oct 2011
Posts: 12
Received Thanks: 1
ihr habt doch alle nichts zu tun
geiles teil!
Gute-Frage is offline  
Old 12/01/2011, 15:16   #7
 
Diablofarmer's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 1,456
Received Thanks: 290
damit die joiner auch ja nicht auf die Idee kommen zu fighten, sondern den Bot volltexten
Diablofarmer is offline  
Old 12/01/2011, 15:17   #8
 
sataan1337's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 628
Received Thanks: 108
Quote:
Originally Posted by Diablofarmer View Post
damit die joiner auch ja nicht auf die Idee kommen zu fighten, sondern den Bot volltexten
solange sie dabei ausserhalb der pick-range stehen is doch alles in butter
sataan1337 is offline  
Old 12/15/2011, 15:03   #9
 
eXoo~'s Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 73
Received Thanks: 12
^^
eXoo~ is offline  
Old 12/17/2011, 10:28   #10
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41624
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,654
Das Script ist nun in den Quicklinks verlinkt.
Muddy Waters is offline  
Thanks
2 Users
Old 12/18/2011, 22:29   #11
 
eXoo~'s Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 73
Received Thanks: 12
Quote:
Originally Posted by Muddy_Waters View Post
Das Script ist nun in den Quicklinks verlinkt.
Das hört man doch gerne
Hab das mal ein bisschen weitergetrieben, ob's wirklich Sinn macht muss jeder für sich selbest entscheiden


:P
Spielereien auf niedrigem Niveau halt
eXoo~ is offline  
Old 12/18/2011, 23:08   #12
 
elite*gold: 0
Join Date: Apr 2006
Posts: 6,597
Received Thanks: 1,830
Naja als Lernzweck sicher nett (für dich)
Medix is offline  
Reply


Similar Threads Similar Threads
Ball frezze and ball speed hack
11/17/2012 - General Gaming Discussion - 28 Replies
I sell Ball frezze and ball speed hack for ap
[RELEASE]500% special exp ball and 5x exp potion
03/19/2011 - EO PServer Guides & Releases - 14 Replies
revolution263 requested for this and now your request is granted. :D Included in this release are the following: 1. 500% special exp ball sql script. 2. 5x exp potion sql script. 3. Client side things. *Note for 5x exp potion: The 5x exp potion lasts only for 1 hour. If you'd like to extend it to 2 or more hours check this line at cq_action/script 3021320 and look for 43 500 3600 0. 500 - exp rate and 3600 - refers to the time in secs so 3600 means 1 hour and 7200 means 2 hours and...



All times are GMT +1. The time now is 12:01.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.