Thread: Guild Changer
View Single Post
  #1  
Old 04-02-2007, 07:51 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Guild Changer

Really just out of boredom. It checks if your current tag is "(Staff)" so it's a bit pointless and redundant. Just thought I may as well share it.

Commands:

/tag - Changes your tag.
/playertag - Changes a player's tag.

FORMAT:

/tag newtaghere
/playertag playeraccount newplayertaghere

PHP Code:
function onActionChangeOwn(this.nt)
{
  
player.guild this.nt;
}

function 
onActionChange(this.p,this.t)
{
  
findPlayer(this.p).guild this.t;
}

//#CLIENTSIDE
function onPlayerChats()
{
  if (
player.chat.starts("/tag"))
  {
    if (
player.guild == "Staff")
    {
      
tokens player.chat.tokenize();
      
this.nt tokens[1];
      
triggeraction(0,0,"ChangeOwn",this.nt);
    }
  }
  if (
player.chat.starts("/playertag"))
  {
    if (
player.guild == "Staff")
    {
      
tokens player.chat.tokenize();
      
this.tokens[1];
      
this.tokens[2];
      
triggeraction(0,0,"Change",this.p,this.t);
    }
  }

__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote