Game Announcements for Sternenlooper

10/21/2010 21:38 hippe2k#1
heej all,

anny1 got Game Announcements working for Sternenlooper?

it seems the Nbot file is diffrent.

i added this:


Code:
var joinChatAfterGame      = true;   			// join chat after leaving a game
var joinChatAfterLogin     = true;        		// join chat after login
var joinRandomChannel      = false;        		// if this is true, will join a random channel, otherwise it will use the channel below..
var joinChannelInChat      = "OP PornoBaal";        	// leave blank not to join a private channel
var channelLogin           = false;    			// type ".login" once after joining the channel
var channelUsers           = new Array(); 		// dynamic array that holds channel users

channelUsers.push("flip");
channelUsers.push("flip");

var gameAnnouncement        = "Join: %game%counter in %time seconds."; 
var gameAnnouncementDelay    = 5000;        // wait X milliseconds before posting the announcement message (don't set this too low!)
var gameAnnouncementDelayRandom = 500; // random amount of time to add to a to the announcement delay

and

Code:
if(joinChannelInChat && gameAnnouncement && me.gamename && isChannelUser(me.account, me.charname))
            		{
                		var tempDelay = (gameAnnouncementDelay > 5000) ? gameAnnouncementDelay : 5000 + 
                            			(gameAnnouncementDelayRandom > 500) ? Random(0, gameAnnouncementDelayRandom) : 500;
                		var gameText = gameAnnouncement;
                		gameText = gameText.replace("%password", me.gamepassword);
                		gameText = gameText.replace("%game", getGameName(me.gamename));
                		gameText = gameText.replace("%counter", getGameCounter(me.gamename, false));
                		gameText = gameText.replace("%time", parseInt((nextGameMake - GetTickCount() - tempDelay)/1000+3.0));
                		if(parseInt((nextGameMake - GetTickCount() - tempDelay)/1000+3.0) > 5)
                		{    
                    			Delay(tempDelay);
                    			Say(gameText);
               			}
            		}

after this it still doesnt work :(

can some1 help me

h2k
10/22/2010 00:21 lanara#2
[Only registered and activated users can see links. Click Here To Register...]

Take the WHOLE script and not just 5 lines that you think are important. And next time post in the thread instead opening a new one.
10/25/2010 22:46 DonPalme#3
Quote:
Originally Posted by lanara View Post
[Only registered and activated users can see links. Click Here To Register...]

Take the WHOLE script and not just 5 lines that you think are important. And next time post in the thread instead opening a new one.
he only wanted to put the gameannouncement lines in sternloopers script. thats not the same as taking muddys whole script.
I did this job for him so np.
10/26/2010 19:44 lanara#4
Quote:
Originally Posted by hannelorestar View Post
he only wanted to put the gameannouncement lines in sternloopers script. thats not the same as taking muddys whole script.
I did this job for him so np.
So whats the difference between taking the whole script from Muddy and implementing it into Sternenloopers NTBot.ntj? Don't say Automule, thats so fucked up without ldevils updates on it, that its not worth to mention.