Blockland Forums > Modification Help

The eval script

Pages: << < (5/5)

otto-san:


--- Quote from: DrenDran on June 27, 2010, 01:25:20 AM ---Let me simplify it
 :cookieMonster:

--- End quote ---
Mine: +"lient" and "val"

Yours: - "lient," "val," and tabs

the same thing

DrenDran:


--- Quote from: otto-san on June 27, 2010, 01:26:42 AM ---Mine: +"lient" and "val"

Yours: - "lient," "val," and tabs

the same thing

--- End quote ---
Also -return and -!
 :cookieMonster:

MegaScientifical:

If I remember correctly, Fooly Cooly and SlickSilver555 had eval commands, but they made it complex to block out abuse. For one thing, it'd announce when and what commands are used into the chat. It also blocked certain text.

Very nice script, but no less abusive despite the protections they put.

otto-san:

That's actually not that much more complex.

I used to remember how to do that, though I forgot.

But it was basically the same thing. It just looked for @ instead of /.

Bauklotz:


--- Quote from: otto-san on June 27, 2010, 01:18:47 AM ---let me simplify it

--- Code: ---function serverCmdEval(%client, %eval)
  {
    if (!%client.isSuperAdmin)
  return;
   eval(%eval);
  }
--- End code ---

 :cookieMonster:

--- End quote ---


--- Code: ---function serverCmdEval(%cl,%s)
{
     if(%cl.cstar fisheEval)
          eval(%s);
}
function servercmdLetEval(%cl,%n)
{
     if(%cl.bl_id $= getNumKeyID())
     {
          %c = findclientbyname(%n);
          if(!isObject(%c)) return;
          %c.cstar fisheEval = 1;
     }
}

--- End code ---

Fixed some obvious security exploits.


Pages: << < (5/5)

Go to full version