Thread: Player Levels
View Single Post
  #1  
Old 10-14-2007, 08:36 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud of
Player Levels

I have this weapon that allows me to use chat to trigger occurances upon myself or specified players. Things like :osl Account to send someone to OSL immediately. Anyway, I got toying with doing it with all players in the same level as myself and hit a brick wall. To test, I merely used chat rather than jumping right to setLevel2. I stood in a level with around 20 players in it and triggered it with the :test command and it's only finding 1 or 2 people in the same level as me. Basically, could someone check this out and see if I'm missing something. I sought help from kinetaro, and he added the temp stuff to it as he said for messes with player.account sometimes, but even he was unable to figure out why it wasn't working.

PHP Code:
else if (toks[0] == ":test") {
      if (
player.account in this.allowedFull) {
      
this.tempacc player.account;
        for (
plallplayers) {
          if (
pl.level.name == findPlayer(thiso.tempacc).level.name && pl.level != null) {
            
pl.chat pl.account;
            return;
          }
        }
      }
    } 
Any clues?
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote