Author Topic: Broken Script?  (Read 303 times)

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);
}
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);
}
I remapped it differently and everything. I was just wondering how I messed up.
Thanks in advance.

try coding help
and, i think the problem is, is that you're telling the mouse to turn off instantly (just about) after you tell it to turn on

Alright, wrong section. Locking and posting in coding help.