Need helping making this script work

Animal
03-19-2007, 05:13 PM
///Crunch's Arf Spam Scripts v1.0
// Arf aRf arf ;)

exec("arflist.cs");
EditActionMap("playMap.sae");
bindCommand(keyboard0, make, "l", TO, "LSStatus();");
$LSstat = 0; //turn it off to start with
$LSnum = 1;
$LScount = 2;

$LSspeed = 0.012;

function LSStatus()
{
if($LSstat == 1)
$LSstat = 0;
else if($LSstat == 0) {
$LSstat = 1;
startLS();
}
}

function startLS()
{
%LSfle = $voiceList[$LSnum];
if($LSstat == 1) {
localMessage(%LSfle);
$LSnum = $LSnum + 5;
if($LSnum > 110) {
$LSnum = $LScount;
$LScount = $LScount + 1;
if($LScount > 4)
$LScount = 1;
}
schedule("startLS();", $LSspeed);
}
}

and it also included this in a separate .cs file;

$voiceList[4] = "flgtkn1"; // our flag is not in the base
$voiceList[3] = "flaghm"; // our flag is secure
$voiceList[1] = "bsclr2"; // our base is secure
$voiceList[5] = "mineobj"; // Our objective is mined
$voiceList[2] = "basetkn"; // our base has been taken

When I press the hotkey, it says one of the sayings ([1] our base is secure) once and stops. I want it to spam repeatedly forever :P

Amadeus
03-19-2007, 05:34 PM
put some echos in the functions, both inside and outside of the cycles. see which ones are executed

Animal
03-19-2007, 05:36 PM
I would if I knew how

<- noob

Amadeus
03-19-2007, 05:42 PM
echo("i know shok");


put stuff like that in different places, then check the console when the script's supposed to be running

Animal
03-19-2007, 05:43 PM
I still have no idea what you're talking about

:lol:

you're supposed to work your magic and it's all fixed :bigthumb:

WorstAim
03-19-2007, 08:18 PM
There were some problems in the other code, so I just rewrote it for you:


EditActionMap("playMap.sae");
bindCommand(keyboard0, make, "l", TO, "spam();");

//as of now, if you hit the "l" button once, it will start the spam, if you hit
//it again, it'll stop
//if you want to make it work by holding "l", just uncomment the following line:
//bindCommand(keyboard0, break, "l", TO, "spam();");

$Running = false;

$spam::delay = 2; //This is how many seconds there will be between each
//execution of a spam sound (some servers have limits
//on how often you can play localMessages, so you may
//have to adjust this accordingly)

function spam()
{
$Running = !$Running;
spam::run(0);
}

function spam::run(%idx)
{
if(%idx > 4)
{
%idx = 0;
}

if($Running)
{
localMessage($voiceList[%idx]);
schedule("spam::run("@ %idx++ @");", $spam::delay);
}
}

$voiceList[0] = "flgtkn1"; // our flag is not in the base
$voiceList[1] = "flaghm"; // our flag is secure
$voiceList[2] = "bsclr2"; // our base is secure
$voiceList[3] = "mineobj"; // Our objective is mined
$voiceList[4] = "basetkn"; // our base has been taken

Animal
03-19-2007, 10:07 PM
ah yea thanks for the help

I realized it's fucking zadmin on snapple's server that blocks local spam like that

Nikita
03-19-2007, 11:29 PM
thank god

re-re-re-re-re-re-re-re-re-re-re-re-re-re-treat out of this thread

Lemon
03-20-2007, 01:17 AM
thank god

re-re-re-re-re-re-re-re-re-re-re-re-re-re-treat out of this thread
lol @ the localspam retreat
yea thank godrew
years later and he's still protecting us from the feeble-minded...
OMG IKAN SPAM TEH SERVER AND EVERYONE ELSES!>!>!()(!!!

DeadGuy*
03-20-2007, 07:37 AM
Crunch's Arf Spam Scripts v1.0
// Arf aRf arf ;)

Nice to see plagiarism for even the shitty old works. GJ figuring out it was the server. :rolleyes:
PS. thanks for the touch up worst.

Animal
03-20-2007, 07:07 PM
lol @ the localspam retreat
yea thank godrew
years later and he's still protecting us from the feeble-minded...
OMG IKAN SPAM TEH SERVER AND EVERYONE ELSES!>!>!()(!!!

you're sour


get it

GreyHound
03-21-2007, 03:36 AM
onLocalMessage(%blubb, %blaa){
return false;
}

WorstAim
03-21-2007, 02:26 PM
What's everyone getting worked up about? It's a local message, so you can literally walk away from the person spamming these noises, and not have to hear them.

NoFiX
03-21-2007, 02:43 PM
FREE ~WDEATH