View Single Post
  #87  
Old 04-02-2010, 04:53 PM
Liberated Liberated is offline
not doing alot
Liberated's Avatar
Join Date: Feb 2008
Posts: 1,366
Liberated has a spectacular aura about
Quote:
Originally Posted by DrakilorP2P View Post
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.<= this.edgex)
  {
    
clientr.inspar false;
    
serverr.sparp -= 1;
  }
  else if(
player.<= 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.
__________________
Quote:
Originally Posted by Tigairius View Post
I promise when I get rich I'll send you an iPhone. I'll send everyone an iPhone.
Reply With Quote