Quote:
Originally Posted by DrakilorP2P
It'd help if you told us how it isn't working.
Not sure if this will fix it, but try formatting the setlevel2 lines like this:
PHP Code:
setlevel2("vega_spar.nw",32.25,21.5);
It would have been valid GS1, but you had a ) without a matching (.
|
Yeah, this is what the RC fixer also told me.
For the rest the script doesn't seem quite finished yet.
What happeneds if you die, from what i understand your server will be a modern one, and i'd asume you'd be warped to a hospital or a base of somesort.
But the script doesn't give any solution for this.
I'd suggest running a timeout that checks if the player is still within the spar room.
so something like
PHP Code:
function onTimeOut()
{
if(player.level != "vega_spar.nw")
{
clientr.inspar = false;
serverr.sparp -= 1;
}
else if(player.x <= this.edgex)
{
clientr.inspar = false;
serverr.sparp -= 1;
}
else if(player.y <= this.edgey)
{
clientr.inspar = false;
serverr.sparp -= 1;
}
else
{
setTimer(.05);
}
}
i know this probably isn't the most efficient script, or if it's even working, i typed it in here. But it should show what i mean.