Register for your free account! | Forgot your password?

You last visited: Today at 04:26

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

Advertisement



Scripts wählen

Discussion on Scripts wählen within the Diablo 2 Programming forum part of the Diablo 2 category.

Reply
 
Old   #1
 
NerDxx™'s Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 559
Received Thanks: 71
Scripts wählen

Hi Leute wie kann ich einstellen das der Bot im Chat erkennt welches Script grade läuft.

zb

Leader sagt tunnel der Bot startet das Script NTAncientTunnel.ntj
oder
Leader sagt cow der Bot starter das Script NTCow.ntj


Code:
 RegisterEvent(EVENT_GAMEMSG, talk); 
 
function talk(msg, type) 
{ 
   if(type == 0 && msg.indexOf(_leader) != -1 && msg.indexOf("tunnel") != -1) 
   { 
    Load("NTBot/bots/NTAncientTunnel.ntj"); 
                  Delay(1000);

             } 
   } 

((((( oder  ))))))

  RegisterEvent(EVENT_GAMEMSG, talk); 
 
function talk(msg, type) 
{ 
   if(type == 0 && msg.indexOf(_leader) != -1 && msg.indexOf("cow") != -1) 
   { 
    Load("NTBot/bots/NTCow.ntj"); 
                  Delay(1000);

             } 
   }
Der Leader erkennt nur das unterste Script was muss ich einfügen damit er beide erkennt oder 3,4,5,6 Scripts ?

Mfg, NerDxx™
NerDxx™ is offline  
Old 06/05/2014, 13:01   #2
 
elite*gold: 0
Join Date: Oct 2008
Posts: 216
Received Thanks: 47
du solltest das event nur einmal adden und dadrin alle abfragen machen und rausspringen wenn was passt oder eben nicht passt.

Code:
RegisterEvent(EVENT_GAMEMSG, talk); 

function talk(msg, type) 
{ 

   if( type != 0 || msg.indexOf(_leader) != -1 ) {
      return; // beenden wenn nachricht nicht vom leader
   }

   if( msg.indexOf("tunnel") > 0 )  { 
       Load("NTBot/bots/NTAncientTunnel.ntj"); 
       Delay(1000);
       return;
   } 

   if( msg.indexOf("cows") > 0 )  { 
       Load("NTBot/bots/NTCow.ntj"); 
       Delay(1000);
       return;
   } 

}
btw, diese nutzung von indeOf ist stümperhaft, aber es wird ja in jedem bot so gemacht von daher juckts mich hier jetzt auch net. Sollte ein Gast sagen "will der LEADERNAME net mal cows machen" ... dann würde auch das passen !!!
Grommel is offline  
Thanks
1 User
Old 06/05/2014, 14:23   #3
 
NerDxx™'s Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 559
Received Thanks: 71
Danke für die Hilfe


So gehts


Leider bleibt er im ersten Script und startet das zweite Script wollte eigentlich das er sofort ins zweite springt.
NerDxx™ is offline  
Reply


Similar Threads Similar Threads
[Selling] Full package BoL Cracked Scripts + Updates + Future scripts + BoL lifetime
04/23/2014 - League of Legends Trading - 0 Replies
Hey guys, I know im just new here but im selling a package of BoL Cracked Scripts (most of all lastest versions) + Updates + Future cracked scripts for just 15€. The included scripts are: Casswhooping, Evadee, Sac:Reborn, MMA, Pro series, Prodiction donators, Fizz fun house, Akali fun house, Im beasty, Ryze to the challenger. For the first 5 buyers of this forum I will give my method to be BoL Vip lifetime for free (Im selling this for 10€). Im not a scammer and I can proof it with my...
Selling BEST BoL Scripts 1/3 Price, First 10 Hyperdeal, Got Vouchers, Scripts Cracked
04/12/2014 - League of Legends Trading - 3 Replies
Hey guys, so as the title said, i recently lets say *acquired* cracked bot of legends(BoL) scripts that cost alot of money. I am willing to give them away for a much smaller Donation. Here is a list of all the cracked scripts i have and their ORIGINAL cost: Evadee (50€)(My Price 10€) Evadeee Tease 2 - YouTube Ryze to the Challenger (8$)(My Price 3€) Ryze to the Challenger - YouTube Cass Whooping (15$)(My Price 7€) Cass Whooping! - YouTube SidasAutoCarry Reborn (15$)(My Price 7€) The...
agBot Loop Scripts [ Let's Make alist with Mobs Scripts ]
07/09/2008 - SRO Hacks, Bots, Cheats & Exploits - 228 Replies
Hello Everyone, i saw that everyone is getting stuck to make agBot Loop Script. so i though we should make a topic a mobs scripts. and i will start. :) Now for me i prefer to use notepad to make my scripts. How to install : Just Copy the code and paste in <bot folder>\config\config1\script\default.lst If we got more scripts, i will just make a webpage, where you can select Town, HP and MP Bots you wanna buy then the monster you want to kill. then it auto generate the script for you....



All times are GMT +1. The time now is 04:27.


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.