Blockland Forums > Modification Help

Broken Script?

Pages: (1/2) > >>

Wheatley:

Today, I attempted to make a Rapid-clicking script to fire my mouse for me instead of simply holding it down like mousefire(1); does.
I figured the easiest way to do this would be editing the Rapidfire script.
However, when I tried it, it showed up as a different file, but seemed to work exactly the same.
I'm new to scripting, but here's the oringinal:

--- Quote ---$remapDivision[$remapCount]   = "Rapid Fire";
$remapName[$remapCount]      = "Hold to use";
$remapCmd[$remapCount]      = "toggleSpam";
$remapCount++;
function toggleSpam(%value)
{
   if(%value)
   {
      lol();
   }
   else
   {
      cancel($Lol::Schedule);
   }
}

function lol()
{
  scrollTools(1);
  scrollTools(-1);
  $Lol::Schedule = schedule(33,0,lol);
}

--- End quote ---
And here's the new one:

--- Quote ---$remapDivision[$remapCount]   = "Rapid Clicker";
$remapName[$remapCount]      = "Hold to use";
$remapCmd[$remapCount]      = "toggleSpam";
$remapCount++;
function toggleSpam(%value)
{
   if(%value)
   {
      lol();
   }
   else
   {
      cancel($Lol::Schedule);
   }
}

function lol()
{
  mousefire(1);
  mousefire(0);
  $Lol::Schedule = schedule(33,0,lol);
}

--- End quote ---
I remapped it differently and everything. I was just wondering how I messed up.
Thanks in advance.

phflack:

you didn't change what i said before, if you're not going to listen to help, then why make a topic about it?

lordician:

the lol() function is still called the same.
lol();

phflack:

that too, try not to use the same function names i guess

lordician:


--- Quote from: phflack on December 12, 2010, 05:14:19 PM ---that too, try not to use the same function names i guess

--- End quote ---
You bet your ass you shouldn't.

Pages: (1/2) > >>

Go to full version