Author Topic: Dust teleport :(  (Read 3508 times)

0 Members and 1 Guest are viewing this topic.

Sinister

  • Uber Menace
  • *******
  • Posts: 1,125
  • Reputation: +0/-0
    • http://www.stormpages.com/snowmann69
Dust teleport :(
« on: August 9, 2004 07:35 pm CDT »
Do you have a standalone copy of the script you use to keep you from teleporting while carrying Dust Taurik?  If not, will you consider making one so that I can post it on my site.  I'll give you full props for it.
« Last Edit: December 31, 1969 06:00 pm CST by Sinister »

Corona

  • Elvin Legion
  • *****
  • Posts: 486
  • Reputation: +6/-1
    • http://www.Linneberg.com
(No subject)
« Reply #1 on: August 10, 2004 12:02 am CDT »
Try this, Sinister.

But this script will replace your say() function, so it is incompatible with any other script that replaces say(), like my script pack.

function say (%channel, %message) {

   %omgno = Match::String(%message, "#cast teleport*");
   %omgsux = Match::String(%message, "#cast transport*");
   %omglol = Match::String(%message, "#cast advtransport*");
   %omghax = Match::String(%message, "#cast masstransport*");

      if (%omgno || %omgsux || %omglol || %omghax) {
      $teledustquantity = getItemCount("Magic Dust");
      $teleprchquantity = getItemCount("Parchment");
         if ($teledustquantity > 0 || $teleprchquantity > 0) {
         say(0, "#global Hey everyone, I just tried to teleport while carrying " @ $teledustquantity @ " dusts and " @ $teleprchquantity @ " parchments, which I would have lost!");
         return;
         } // end if
      } // end if

   remoteEval(2048, say, %channel, %message);

} // end say
« Last Edit: December 31, 1969 06:00 pm CST by Corona »

-eViL-

  • Minotaur Rager
  • ******
  • Posts: 880
  • Reputation: +0/-0
(No subject)
« Reply #2 on: August 10, 2004 01:41 am CDT »
and it isn't stand alone, that requires presto pack (Match::String).


Code: [Select]
function say(%channel, %message)
{
%BadString[0] = "teleport";
%BadString[1] = "transport";
%BadString[2] = "advtransport";
%BadString[3] = "masstransport";

if( ( (getItemCount("Magic Dust") != 0) || (getItemCount("Parchment") != 0) ) && getWord(%message, 0) == "#cast")
{
%MatchWord = getWord(%message, 1);

for(%i=0; %i <= 3; %i++)
{
if(String::ICompare(%BadString[%i], %MatchWord) == 0)
{
echo("Action Stopped.");
return;
}
}
}

remoteEval(2048, say, %channel, %message);
}
« 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

Corona

  • Elvin Legion
  • *****
  • Posts: 486
  • Reputation: +6/-1
    • http://www.Linneberg.com
(No subject)
« Reply #3 on: August 10, 2004 05:43 am CDT »
True :) But of the 20 or so people who I know have downloaded my script pack, only one has complained about it not working because of no presto *L*
« Last Edit: December 31, 1969 06:00 pm CST by Corona »