Author Topic: would this script work  (Read 688 times)

packagenewpackage
{
      commandtoclient( %client, '/jet', %sender, %voiceTag, %voicePitch, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10 );
   {
   jet(1);
};
« Last Edit: October 19, 2009, 09:14:51 PM by $hane »

Throwing a bunch of random bits of code together much more often than not doesn't work. I can't even tell what you're trying to do here.

I thought scripting was easy to you.

packagenewpackage
{
      commandtoclient( %client, '/jet', %sender, %voiceTag, %voicePitch, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10 );
   {
   jet(1);
};

No, it wouldn't work. In addition, you have not the slightest clue as to what you're doing.

I think hes trying to do
package JetCommand
{
 function clientCmdJet()
 {
  if($JetToggle == 1)
  {
   jet(1);
   $JetToggle = 1;
  }
  else
  {
   jet(0);
   $jetToggle = 0;
  }
 }
};
ActivatePackage("JetToggle");

I think hes trying to do
package JetCommand
{
 function clientCmdJet()
 {
  if($JetToggle == 1)
  {
   jet(1);
   $JetToggle = 1;
  }
  else
  {
   jet(0);
   $jetToggle = 0;
  }
 }
};
ActivatePackage("JetToggle");
How could you possibly derive that from that shipwreck of a script he posted?
Also, it's kinda unclear as to what your script is supposed to do as well. From what it looks like, it defines the package JetCommand, which contains a new function that allows a server to force you to jet, then activates the undefined package JetToggle. Nope... I can't see what either of you could accomplish using any script that has been posted in this thread.