Author Topic: Help with TRPG script  (Read 2256 times)

0 Members and 1 Guest are viewing this topic.

Newbie

  • Spam Specialist
  • Centurian Lord
  • Posts: 2,531
  • Reputation: +1/-0
    • http://imchaos.com/newl.asp?x=M0ckious&y=900627
Help with TRPG script
« on: May 9, 2004 01:36 am CDT »
Quote
//===Autohide
function DeusRPG::Start::Hide() { $DeusRPG::Hide = true;
   Client::centerPrint("<jc><f0>Hide Training <f1>started", 1);
   Schedule::Add("Client::centerPrint("", 1);", 4);
   DeusRPG::HideLoop();
}
function DeusRPG::HideLoop() {
   if($DeusRPG::Hide == true) {
      say(0, "#hide");
      Schedule::Add("DeusRPGPack::HideLoop();", 30); }
}
function DeusRPGPack::Hide(%client, %msg) {
   if(%client)
      $lastClientMessage = %client;
   else
      if(String::findSubStr(%msg, "You are no longer Hiding In Shadows.") != -1) {
         if($DeusRPG::Hide == true)
            say(0, "#hide"); }
   return true;
}
function DeusRPG::Stop::Hide() { $DeusRPG::Hide = false;
   Client::centerPrint("<jc><f0>Hide Training <f1>stopped", 1);
   Schedule::Add("Client::centerPrint("", 1);", 4);
}


What's wrong with this script? Once I turn it on, it hides me once and then never hides me again..

Please help.


What's wrong with this script? Once I turn it on, it hides me once and then never hides me again..

Please help.
« Last Edit: December 31, 1969 06:00 pm CST by Newbie »

-eViL-

  • Minotaur Rager
  • ******
  • Posts: 880
  • Reputation: +0/-0
(No subject)
« Reply #1 on: May 9, 2004 08:43 am CDT »
well... for one thing... did you event::Attach the DeusRPG::Hide function?

another thing:


function
DeusRPG::HideLoop()
{
   if($DeusRPG::Hide == true)
   {
      say(0, "#hide");
      Schedule::Add("DeusRPGPack::HideLoop();", 30);
   }
}
« Last Edit: December 31, 1969 06:00 pm CST by -eViL- »
There's nothing ever wrong but nothing's ever right
Such a cruel contradiction

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #2 on: May 9, 2004 12:27 pm CDT »
Can you people please stop posting this malarkey in gen discussion.. I refuse to help anyone who doesn't.
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

Lidge Farkley

  • Uber Menace
  • *******
  • Posts: 1,357
  • Reputation: +2/-3
    • http://www.angelfire.com/ca2/psychosworld2/
(No subject)
« Reply #3 on: May 10, 2004 12:26 am CDT »
Yeah really... post it in assistance.  I normally don't bother to say anything, but it is getting crazy to see this type of thread here all the time, in a non-archived area sacntioned to just this type of questioning.
« Last Edit: December 31, 1969 06:00 pm CST by Lidge Farkley »
Lend your heart unto the divine mineral TOPAZ;
from which our reverent hearts and minds sprang.
Also Known As:  Alcoholic 007
My Page of tribes Tools and Helpful "FAQ" Stuff

Newbie

  • Spam Specialist
  • Centurian Lord
  • Posts: 2,531
  • Reputation: +1/-0
    • http://imchaos.com/newl.asp?x=M0ckious&y=900627
(No subject)
« Reply #4 on: May 10, 2004 01:04 pm CDT »
Well malarkey.. everyone else was posting it in General discussion so I figured I might as well go and do it to since less people look in Assistance.. damn.
« Last Edit: December 31, 1969 06:00 pm CST by Newbie »

Lidge Farkley

  • Uber Menace
  • *******
  • Posts: 1,357
  • Reputation: +2/-3
    • http://www.angelfire.com/ca2/psychosworld2/
(No subject)
« Reply #5 on: May 11, 2004 01:46 am CDT »
Anyone who can and will assist you does look in assistance.  I am positive of this fact.
« Last Edit: December 31, 1969 06:00 pm CST by Lidge Farkley »
Lend your heart unto the divine mineral TOPAZ;
from which our reverent hearts and minds sprang.
Also Known As:  Alcoholic 007
My Page of tribes Tools and Helpful "FAQ" Stuff

WolfTones

  • Centurian Lord
  • ********
  • Posts: 2,501
  • Reputation: +0/-0
    • http://www.imafaggot!.com
(No subject)
« Reply #6 on: May 11, 2004 09:50 am CDT »
Quote from: "Lidge Farkley"
Anyone who can and will assist you does look in assistance.  I am positive of this fact.


Well Said
« Last Edit: December 31, 1969 06:00 pm CST by WolfTones »
Lookieme!  I am a no-talent ass clown!