Im making a / script for me and my friend, like When i activate it it will do something and when i de-activate it it will stop.
OK i got the Bindings to work, Now i need help with this part
//+-------------------------+
//|Made by ChocoboPah, |
//|Help from other people, |
//|Released by ChocoboPah, |
//|BL_ID: 12247 |
//+-------------------------+
if (!$FastClickBindings)
{
$remapDivision[$remapCount] = "Fastclick";
$remapName[$remapCount] = "Toggle";
$remapCmd[$remapCount] = "FastClickToggle";
$remapCount++;
$FastClickBindings=true;
}
function FastClickToggle()
{
if($FastClicking==0)
{
$FastClicking=1;
FastClickingMenu();
}
else if($FastClicking==1)
{
$fastClicking=0;
cancel($ABClick);
clientcmdupdateprefs();
}
}
function FastClickingMenu()
{
scrolltools("1");
scrolltools("-1");
$ABClick=schedule(%Amt,0,FastClickingMenu);
}
function Timing(%a)
{
%Amt=%a;
}
Edit: Found an error!
Edit again: Updated, it wont loop!