View Single Post
  #4  
Old 08-15-2013, 07:37 AM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by Angel_Light View Post
eh, current method I'm using is to just call a scheduleEvent and loop it every second or so to check if the player is in the same level or not.
Would this be the kind of thing you're looking for? I haven't tested it; just wrote it up in Notepad.

PHP Code:
//NPC1 test1.nw

function onPlayerEnters() {
  
temp.levelObject findLevel("test2.nw");
  
temp.levelObject.tiles[3232] = int(random(50100));
  
temp.levelObject.("changes_" player.account) = true;
}
  
//NPC2 test2.nw

function onPlayerEnters() {
  if (
level.("changes_" player.account) == true) {
    
updateBoard(323211);
    
level.("changes_" player.account) = null;
  }

__________________
Reply With Quote