Author Topic: Can someone give me a link to download the eval script?  (Read 5791 times)

/title
I've searched.


Hit ~
But I want to use the chat to execute commands...

But I want to use the chat to execute commands...
I don't understand, why do you need to?

I don't understand, why do you need to?
So people know what I'm trying to execute...? super admins can execute commands?
« Last Edit: May 28, 2012, 10:16:57 PM by setro2 »

I'm on an iPad, so don't stuff on me

function serverCmdEval(%client,%eval)
{
if(!%client.isSuperAdmin)return;
%e = %eval @ "%fatass = 1;";
eval(%e);
if(%fatass)
talk(%client.name @ " evaled " @ %eval);
else
talk(%client.name @ " tried to eval " @ %eval);
}

%fatass wouldn't work if I did something like:
commandToServer(‘Eval‘, “talk(25 * 3.55); // calculate stuff“);

%fatass wouldn't work if I did something like:
commandToServer(‘Eval‘, “talk(25 * 3.55); // calculate stuff“);
Why would you even do that?

Pretty sure you have to use a global variable, because eval's aren't actually part of the function.

Pretty sure you have to use a global variable, because eval's aren't actually part of the function.
"eval is run in the scope it's called in"

some smarty head said that, probably rotondo

eval is weird, you can set local variables in it
even weirder are token functions that create local variables from strings
I just lock the front door and call the police when I see them hanging out in my neighborhood

eval is weird, you can set local variables in it
even weirder are token functions that create local variables from strings
I just lock the front door and call the police when I see them hanging out in my neighborhood

Watchout for those hooligans!

If you buy Kalphiter's service you get a copy of eval absolutely free.

If you buy Kalphiter's service you get a copy of eval absolutely free.
Actually, it's Truce's.

Kalphiter's website has it, not sure why noone has said this yet.