Author Topic: Create a client-side add-on...  (Read 1290 times)

I want to make a client-side addon, but I don't know what to make first. I also don't know Torque scripting. Anywhere I could learn it?

Look at other Add Ons Scripts to learn scripting and the basics, Also look around these forums :) Good luck to you.

I think I want to start with a rapid-fire wrench/printer. People say it's a simple script.


Stop spamming servers
If you want to tell me that, PM or IRC me. Don't post in the thread that I'm asking for help in.

It's not a script it's a command.


What? It's a script.
function lol(){scrollTools(1); scrollTools(-1); schedule(33,0,lol);} I don't call that a script because it's one line :c

function lol(){scrollTools(1); scrollTools(-1); schedule(33,0,lol);} I don't call that a script because it's one line :c
Code: [Select]
function lol()
{
    scrollTools(1);
    scrollTools(-1);
    schedule(33,0,lol);
}

Well now it is.

function lol(){scrollTools(1); scrollTools(-1); schedule(33,0,lol);}

I think I pretty much see what that does. Any way I could bind that to a key in Actions?

Code: [Select]
$remapDivision[$remapCount] = "Spam";
$remapName[$remapCount] = "Spam";
$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);
}

Code: [Select]
$remapDivision[$remapCount] = "Spam";
$remapName[$remapCount] = "Spam";
$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);
}

The remap thing was a success, but the script given earlier wasn't...
NEvermind, it works! Thanks! :D
« Last Edit: November 03, 2009, 06:24:38 PM by Scars75 »

Hey, I learned a little. I can now make functions. :D

function buildwall()
{
      buildwall(1);
      schedule(33,0,buildwall);
}
or...
function buildwall() { buildwall(1); schedule(33,0,buildwall); }
« Last Edit: November 07, 2009, 02:49:53 PM by Scars75 »