The Exiled

Shunned by Man, Accepted by Gods
* FAQ    * Search   * Members
* Login   * Register
It is currently Thu Mar 28, 2024 12:51 pm 

 View unanswered posts | View active topics


 Board index » General Area » Modding
Post new topic Reply to topic Users browsing this forum: No registered users and 5 guests
Author
Message
TE-Shugo


User avatar
Joined: Mon Sep 05, 2005 12:21 am
Posts: 70
Location: YaY ArEa, CaLiForNia
Post Posted: Mon Aug 14, 2006 12:07 am    Post subject: o_O afk script?
Reply with quote
 
updated it :P
now u just say AFK and it will put u in obs and afk mode

Heres the first file name it
"ShugoAFKConfig.cs"

Code:
$YourName = "Shugo"; //Put your name here dont add any tags, Unless you dont have a space inbetween the tag and name.
$Shugo::AFK=false;

exec("ShugoAFKScript");


heres part 2, name it
"ShugoAFKScript.cs"

Code:
//Shugo AFK Script Part 2
//==============================
//Do not touch below unless you know what you are doing
//Please dont rip my code and say you made it
//I useally dont post my scripts on forums

function onClientMessage(%clientId,%msg)
{
   if($YourName == "")
   {
      remoteCP(2048,"<jc><f1>Shugo: ERROR, Check Console", 5);
      echo(" ");
      echo("Please type your name inside the file.cs");
      echo("But for right now just type");
      echo("$YourName = \""@Client::getName(%clientId)@"\";");
      echo("in your console");
      echo(" ");
      return true;
   }
   if(Client::getName(%clientId)==$YourName)
   {
   Shugo::Activate(%clientId,%msg);
   return true;
   }
   else
   {
      Shugo::AFK(%clientId, %msg);
      return true;
   }
}

function Shugo::Activate(%clientId, %msg)
{
   if(%msg=="AFK" || %msg=="afk" && $Shugo::AFK=="false")
   {
   remoteEval(2048, "scoresOn");
   clientmenuselect("changeteams");
   clientmenuselect("-2");
   remoteCP(2048, "<jc><f3>Shugo: <f1>Activating AFK Mode", 5);
   schedule("$Shugo::AFK=true;",1);
   return true;
   }
   if(%msg=="Bak" || %msg=="Back" || %msg=="back" || %msg=="bak" && $Shugo::AFK=="true")
   {
   remoteEval(2048, "scoresOn");
   clientmenuselect("changeteams");
   clientmenuselect("1");
   remoteCP(2048, "<jc><f3>Shugo: <f1>Disableing AFK Mode", 5);
   $Shugo::AFK=false;
   return true;
   }
}
   
function Shugo::AFK(%clientId, %msg)
{
   $PersonName = Client::getName(%clientId);
   if(Client::getName(%clientId)==$YourName)
   {
      return;
   }
   else if(String::findSubStr(%msg, $YourName) != -1 && $Shugo::AFK)
   {
      say(0,"Sorry "@$PersonName@" but i am AFK right now~wsorry");
   }
}

function onClientJoin(%clientId)
{
   exec("ShugoAFKScript.cs");
}

function onClientDrop(%clientId)
{
   if(Client::getName(%clientId)==$YourName)
   {
   $Shugo::AFK=false;
      return true;
   }
}


have fun ^^, and hello TE again



Image

Image

Image
 Top Offline
Profile WWWYIM
Author
Message
TE-Braveskin

Joined: Thu Aug 11, 2005 3:28 am
Posts: 1176
Post Posted: Mon Aug 14, 2006 8:22 pm    Post subject:
Reply with quote
 
Are you challenging me for the title of Clan Coder?

 Top Offline
Profile
Author
Message
TE-Hammy


User avatar
Joined: Thu Jul 14, 2005 5:43 pm
Posts: 3204
Post Posted: Mon Aug 14, 2006 9:23 pm    Post subject:
Reply with quote
 
pfft, you dont even have that. thats nox's job :|


This is not the sandwich you are looking for. Move along.
Image
Ze Sechs-fire wrote:
[22:00] [df]Braveskin: Can AfroMuffin spend the night at my house?
[22:00] [df]Braveskin: I have movize
[22:00] Hammy: No. You'll touch him.
[22:00] Hammy: With gusto.
[22:00] Hammy: He's not even a day old, pedophile.
[22:00] Hammy: >:l
[22:00] [df]Braveskin: plez!!
 Top Offline
Profile
Author
Message
TE-Shugo


User avatar
Joined: Mon Sep 05, 2005 12:21 am
Posts: 70
Location: YaY ArEa, CaLiForNia
Post Posted: Mon Aug 14, 2006 9:29 pm    Post subject:
Reply with quote
 
TE-Braveskin wrote:
Are you challenging me for the title of Clan Coder?


:twisted: :twisted: :P



Image

Image

Image
 Top Offline
Profile WWWYIM
Author
Message
TE-Braveskin

Joined: Thu Aug 11, 2005 3:28 am
Posts: 1176
Post Posted: Mon Aug 14, 2006 10:09 pm    Post subject:
Reply with quote
 
O please, Im the coder of TE. I call a code duel!

 Top Offline
Profile
Author
Message
TE-Hammy


User avatar
Joined: Thu Jul 14, 2005 5:43 pm
Posts: 3204
Post Posted: Tue Aug 15, 2006 7:56 am    Post subject:
Reply with quote
 
i call... noone, I have no fone D:


This is not the sandwich you are looking for. Move along.
Image
Ze Sechs-fire wrote:
[22:00] [df]Braveskin: Can AfroMuffin spend the night at my house?
[22:00] [df]Braveskin: I have movize
[22:00] Hammy: No. You'll touch him.
[22:00] Hammy: With gusto.
[22:00] Hammy: He's not even a day old, pedophile.
[22:00] Hammy: >:l
[22:00] [df]Braveskin: plez!!
 Top Offline
Profile
Author
Message
TwiZtid


User avatar
Joined: Sat Sep 24, 2005 12:10 pm
Posts: 388
Location: Outside Your Window.
Post Posted: Fri Aug 18, 2006 5:21 pm    Post subject:
Reply with quote
 
lol Hammy. I don't really think we have a person in charge of making scripts. Shugo and Braveskin, if either of you think you are the person in charge of making scripts for TE, you might wanna read the description under "Modding" in "The Exiled Forum Index" and read that everytime you check the forums.


Image
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature.
 Top Offline
Profile
Author
Message
TE-4ev3r


User avatar
Joined: Sat Jul 16, 2005 3:18 pm
Posts: 1251
Location: That sunshiny state.
Post Posted: Mon Aug 21, 2006 7:49 pm    Post subject:
Reply with quote
 
That'd be like me being the master skinner. I wouldn't get mad at Hybrd cuz he tried skinning, even though my skins are obviously better and more likeable :P (just messin' hybrd)


Image
Image
 Top Offline
Profile
Author
Message
TE-Shugo


User avatar
Joined: Mon Sep 05, 2005 12:21 am
Posts: 70
Location: YaY ArEa, CaLiForNia
Post Posted: Thu Sep 07, 2006 7:44 pm    Post subject:
Reply with quote
 
Yeah...


Image

Image

Image
 Top Offline
Profile WWWYIM
Display posts from previous:  Sort by  
Post new topic Reply to topic Board index » General Area » Modding
Previous topic :: Next topic  
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group