View Single Post
  #2  
Old 07-02-2013, 12:45 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by Pandar View Post
PHP Code:
function onTimeOut() {
  for (
i:allplayers) {
    if (
i.level == this.level) {
      
i.client.lnpcn this.name;
    }
  }
  
setTimer(1);

why not just use

PHP Code:
for (i:players) {
  
i.client.lnpcn this.name;

or better

PHP Code:
function onPlayerEnters() {
  
player.client.lnpcn this.name;
  
//on clientside then this.n = player.client.lnpcn;

?

also, wouldnt this stop working if you use several npcs? i'd just suggest to stick with the setshape/triggeraction version like you mentioned it
__________________
MEEP!
Reply With Quote