View Single Post
  #2  
Old 11-13-2011, 07:57 PM
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
There is no player.subscription, it's player.upgradestatus. Here's some sample usage...

Control-NPC:

PHP Code:
function onActionPlayerOnline() {
  
clientr.upgradestatus getUpgradeStatus(player);
}

function 
getUpgradeStatus(pl) { 
  
temp.status pl.upgradestatus
  switch (
pl.upgradestatus) { 
    case 
"gold"
      
temp.status "Gold"
      break; 
    case 
"classic"
      
temp.status "Classic"
      break; 
    case 
"trial"
      if (
pl.communityname && !pl.communityname.starts("Graal") && !pl.account.starts("pc:")) { 
        
temp.status "Community"
      } else { 
        
temp.status "Trial"
      } 
      break; 
  } 
  return 
temp.status

__________________
Quote:
Reply With Quote