Author Topic: Auto-Clicker Add-On (Now with Support_Updater!)  (Read 10982 times)



gg you made an addon that doesnt work


gg you made an addon that doesnt work
will fix right away
EDIT: Fixed

Just stop, this is a trolling/griefing tool. Honest to god, you made a useless add-on here.

Let me just put this out there:
I honestly don't care if this is fail-binned.
I released it to the public for fun.
I wanted to test my Add-On making.
Therefore, I don't care.
You are going to get banned for this.




You clearly don't understand the context.
I have removed the text for good measure.
Yes, I understand that was posted in the "Drama" section of the forums, but
if it applies here, I'd hate to be banned and have to purchase another Blockland
account, just to continue to make Add-Ons.

It's going to get failbinned anyways lol

What exactly is bad about an autoclicker?

Replace
Code: (client.cs) [Select]
GlobalActionMap.unbind(keyboard, "f11");
GlobalActionMap.bind(keyboard, "f11", "ToggleAutoClick");
with
Code: [Select]
$remapDivision[$remapCount] = "Auto Clicker";
$remapName[$remapCount] = "Toggle";
$remapCmd[$remapCount] = "ToggleAutoClick";
$remapCount++;
This way, it will allow people to use a keybind other than F11.
Of course, this will only let you use it in a server.
Besides, it's completely worthless outside of a server anyway.


And plus:
Code: (client.cs) [Select]
function rexec()
{
exec("./client.cs");
}
Remove this. This is not needed for finished add-ons and is only intended for unfinished ones.

Replace
Code: (client.cs) [Select]
GlobalActionMap.unbind(keyboard, "f11");
GlobalActionMap.bind(keyboard, "f11", "ToggleAutoClick");
with
Code: [Select]
$remapDivision[$remapCount] = "Auto Clicker";
$remapName[$remapCount] = "Toggle";
$remapCmd[$remapCount] = "ToggleAutoClick";
$remapCount++;
This way, it will allow people to use a keybind other than F11.
Of course, this will only let you use it in a server.
Besides, it's completely worthless outside of a server anyway.


And plus:
Code: (client.cs) [Select]
function rexec()
{
exec("./client.cs");
}
Remove this. This is not needed for finished add-ons and is only intended for unfinished ones.
Thanks for the map code, but I want to leave the rexec(); because someone may want to
change the speed.
EDIT: If someone wants to change the speed, they can type the whole code.
« Last Edit: June 21, 2014, 08:04:08 PM by AWESOME :D »

Question for dargereldren:
How would I make it default to the bind of F11, so it says in the controls, "F11?"
I still want it to be re-bindable though.

Thanks for the map code, but I want to leave the rexec(); because someone may want to
change the speed.
Code: [Select]
if(!$Pref::AutoClicker::Speed || $Pref::AutoClicker::Speed <= 32)
{
$Pref::AutoClicker::Speed = 32;
}

function rapid(){commandtoserver('Activatestuff'); $Click = schedule($Pref::AutoClicker::Speed,0,rapid);}
This way, people can now type $Pref::AutoClicker::Speed = "new speed"; in the console and have it default to 32ms.
And because it's a pref, it will stay there even if you close and re-open Blockland.

How would I make it default to the bind of F11, so it says in the controls, "F11?"
I still want it to be re-bindable though.
No idea, but most add-ons just leave it blank by default anyway.
Coding Help can give you more help about this than me.
« Last Edit: June 22, 2014, 12:46:16 PM by dargereldren »