Quote:
Originally Posted by Tyhm
No more dangerous that putnpc2.
NPC Code:
putnpc2(#c,playerx,playery);
=end of teh w0rld
|
Genius.
PHP Code:
function eval( string )
{
while ( string.pos("this.") > -1 )
{
string = string.substring( 0, string.pos( "this.") ) @
"obj." @
string.substring( string.pos( "this." ) + 5, -1 );
}
temp.npc = putnpc2( this.x, this.y, "public function getVal() return "@ string @";");
obj = this;
temp.val = temp.npc.getVal();
temp.npc.destroy();
return temp.val;
}