Thread: Tag Adder Thing
View Single Post
  #1  
Old 03-09-2008, 07:03 PM
mYg0tHaMpStEr mYg0tHaMpStEr is offline
Never trust anyone.
mYg0tHaMpStEr's Avatar
Join Date: Jul 2006
Location: Mars
Posts: 98
mYg0tHaMpStEr is on a distinguished road
Send a message via AIM to mYg0tHaMpStEr Send a message via MSN to mYg0tHaMpStEr
Tag Adder Thing

Hey,

This is my FIRST ever script (other than an AFK System), and what it does is adds account tags, like (Manager) ect. It can be account locked or whatever, so do as you please. :] (I currently use it as the ET Adder on Utopia. )

HTML Code:
//Made by Ork
//Released to the public on 3/9/08
function onActionServerSide( cmd, var, var2 ){
switch( cmd ) {
case "tag":
if (clientr.iset = false ){
player.chat = "I'm not an ET!";
return;
}else{
player.nick = clientr.ettag;
player.chat = "Tag on!";
break;
case "hire":
if (player.account = "emeraldwhelpling")
{
temp.pl = findplayer( var );
if ( temp.pl.level.length() > 0 )
{
temp.pl.clientr.iset = true;
temp.pl.clientr.ettag = var2;
temp.pl.chat = "I was added to the Events Team by "@player.account@"";
player.chat = "I've added "@temp.pl.account@" to the Events Team!";
break;
case "fire":
if (player.account = "emeraldwhelpling")
{
temp.pl = findplayer( var );
if ( temp.pl.level.length() > 0 )
{
temp.pl.guild = "";
temp.pl.clientr.iset = false;
temp.pl.clientr.ettag = "";
temp.pl.chat = "I was fired from ET by "@player.account@"!"; 
player.chat = "I've removed "@temp.pl.account@" from the Events Team!";

}
}
}
}
}
}
}
//#CLIENTSIDE
function onKeyPressed( code, key )
{
if ( key == 5 )
  {
    triggerserver("gui",name,"tag");
  }
}
function onPlayerChats() {
player.chat.tokenize();
if ( tokens[0] == "/hire" )
  {
    triggerserver( "weapon", name, "hire", tokens[1], tokens[2] );
  }
 if ( tokens[0] == "/fire" )
 {
    triggerserver( "weapon", name, "fire", tokens[1] ) ;
    }
    }
I can bet you any amount of money Chris will flame me for this.
__________________
Quote:
Originally Posted by Utopia RC Chat
lesmA: it's a good thing i can count to 10 now using gscript, you know, in case i forget how irl
Quote:
Originally Posted by Utopia RC Chat
lesmA: woo now i can make it count to 10 over 10 seconds!
lesmA: WATCH OUT SKYLD, HERE COME'S LESMA THE NEW SUPER-SCRIPTER!!!
Ork: ROFL
Ork: ANOTHER BRILLIANT FORUM SIG QUOTE
lesmA: oh god i should just stop talking before i make a fool of myself
Reply With Quote