View Single Post
  #23  
Old 08-28-2009, 02:29 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
On a side note, there's probably a better way to accomplish what you're trying to do, which appears to be some sort of warp the player somewhere if they are in water, the script could easily be replaced by using level warps.

Also your script is incredibly insecure. You don't need to send any extra parameters at all.

PHP Code:
function onActionWarpPlayerw() {
  
// Don't really need this array either
  
temp.dest = {"testtourny.nw"22};
  
player.setlevel2(dest[0], dest[1], dest[2]);

Then for your triggeraction all you would need is:

triggeraction(this.x + 0.5, this.y + 0.5, "WarpPlayerw", "");
__________________
Quote:
Reply With Quote