AutoSad script.

Zarbon
01-02-2003, 01:27 PM
Someone hook me up or link me, thanks

Azreal
01-02-2003, 02:47 PM
[13:41] <_Az_> just do it manually you lazy fuck :O j/k
[13:41] <Zarbon> heh
[13:41] <Zarbon> yea
[13:42] <_Az_> lol

[sCs]Slinger07
01-02-2003, 06:31 PM
GET IT HERE (ftp://ftp.slingscripts.com/Dangers_Scripts/) This is for T2

mongors
01-02-2003, 06:44 PM
// AutoSad by Void
// This Automatically Enters the Sad to the server When You join it
// Replace Pass1 Pass2 etc with the sad passwords

$Sad1="Pass1";
$Sad2="Pass2";
$Sad3="Pass3";
$Sad4="Pass4";
$Sad5="Pass5";
$Sad6="Pass6";
$Sad7="Pass7";
$Sad8="Pass8";
$Sad9="Pass9";
$Sad10="Pass10";


// Do Not Edit Below This Message
function sad::load()
{
sad($Sad1);
sad($Sad2);
sad($Sad3);
sad($Sad4);
sad($Sad5);
sad($Sad6);
sad($Sad7);
sad($Sad8);
sad($Sad9);
sad($Sad10);
}
//===================
//Event Queing and Triggering
//===================
//This version of Events is of my own design. It does not have all the features
//that presto or writer's version has. Simply allows me to emulate the Attach functions.
function Event::Attach(%event, %returnFunction) {
if(%event != "" && %returnfunction != "") {
for(%i = 1; %i <= $Event::[%event@"Num"]; %i++) {
if($Event::[%event@%i] == %returnFunction) {
echo("Script Already Registered: "@%returnFunction);
return;
}
}
$Event::[%event@"Num"]++;
$Event::[%event@%i] = %returnfunction;
//echo(%returnFunction@" added to "@%event);
}
}

function Event::Trigger(%event, %p1, %p2, %p3, %p4, %p5, %p6, %p7, %p8, %p9, %p10) {
for(%i = 1; %i <= $Event::[%event@"Num"]; %i++) {
%tmp = eval($Event::[%event@%i]@"(%p1,%p2,%p3,%p4,%p5,%p6, %p7,%p8,%p9,%p10);" );
//echo($Event::[%event@%i]@" returned with "@%tmp);
if(%return != "FALSE") {
%return = %tmp;
}
}
return %return;
}
Event::Attach(eventConnec ted,"schedule(\"sad::load();\",1);");

function onConnection(%message)
{
echo("Connection ", %message);
$dataFinished = false;
if(%message == "Accepted")
{
resetSimTime();
//execute the custom script
if ($PCFG::Script != "")
{
exec($PCFG::Script);
}

resetPlayDelegate();
remoteEval(2048, "SetCLInfo", $PCFG::SkinBase, $PCFG::RealName, $PCFG::EMail, $PCFG::Tribe, $PCFG::URL, $PCFG::Info, $pref::autoWaypoint, $pref::noEnterInvStation, $pref::messageMask);

if ($Pref::PlayGameMode == "JOIN")
{
cursorOn(MainWindow);
GuiLoadContentCtrl(MainWi ndow, "gui\\Loading.gui");
renderCanvas(MainWindow);
}
Event::Trigger(eventConne ctionAccepted);
}
else if(%message == "Rejected")
{
Quickstart();
$errorString = "Connection to server rejected:\n" @ $errorString;
GuiPushDialog(MainWindow, "gui\\MessageDialog.gui");
schedule("Control::setValue(Message DialogTextFormat, $errorString);", 0);
Event::Trigger(eventConne ctionRejected, $errorString);
}
else
{
//startMainMenuScreen();
Quickstart();

if(%message == "Dropped")
{
if($errorString == "")
$errorString = "Connection to server lost:\nServer went down.";
else
$errorString = "Connection to server lost:\n" @ $errorString;

Event::Trigger(eventConne ctionLost, $errorString);

GuiPushDialog(MainWindow, "gui\\MessageDialog.gui");
schedule("Control::setValue(Message DialogTextFormat, $errorString);", 0);
}
else if(%message == "TimedOut")
{
$errorString = "Connection to server timed out.";
GuiPushDialog(MainWindow, "gui\\MessageDialog.gui");
schedule("Control::setValue(Message DialogTextFormat, $errorString);", 0);
Event::Trigger(eventConne ctionTimeout);
}
}
}

function dataFinished()
{
// called on client when all the dynamic data has
// finished transfer.

if ($cdMusic && !$pref::userCDOverride)
{
rbSetPlayMode (CD, 0);
rbStop (CD);
}
Control::setValue(Progres sText, "<jc><f0>Get ready to rock n' roll!");
Control::setValue(Progres sSlider, 0.9);

$dataFinished = true;
remoteEval(2048, dataFinished);

Event::Trigger(eventConne cted);

echo("Flushing Texture Cache");
flushTextureCache();
}

[meph]DooM!
01-02-2003, 06:48 PM
http://www.team5150.com/~andrew/scripts/doom.autosad.acs.zip

All the options are at the bottom, I have backspace bound to force the script to log in with SAD, even if you aren't using a nick in your nicklist