|
|
It is currently Fri Apr 26, 2024 1:30 pm
|
View unanswered posts | View active topics
|
|
|
|
|
Users browsing this forum: No registered users and 10 guests |
|
|
|
|
|
|
|
|
|
Author |
Message |
TE-Shugo
Joined: Mon Sep 05, 2005 12:21 am Posts: 70 Location: YaY ArEa, CaLiForNia
|
Posted: Sat Jan 14, 2006 1:44 am Post subject: AFK Script
|
|
|
for all you guys who are always AFK heres a script i made just for you XD *looks at angelus*
for 1. make sure you make the file name ShugoAFKScript.cs or it wont work right
Code: | //put ur name in here doesnt have to be full name //like mine i just put shugo, when my full is -|TE|- Shugo $YourName = "";
//right here make the # u want right no its set to //1 on the keypad bindCommand(keyboard0, make, "numpad1", TO, "Shugo::Activate::AFK();"); //============================== //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 //But i do this from the kindness of my heart >:) >:) function Shugo::Activate::AFK(%clientId) { 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($Shugo::AFK == "false") { $Shugo::AFK = "true"; say(0,"I am now AFK."); return true; } else if($Shugo::AFK == "true") { $Shugo::AFK = false; say(0,"I am now back from being AFK."); return true; } }
function onClientMessage(%clientId,%msg) { Shugo::AFK(%clientId, %msg); return true; } function Shugo::AFK(%clientId, %msg) { $PersonName = Client::getName(%clientId); 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"); } |
Last edited by TE-Shugo on Sat Jan 14, 2006 1:19 pm, edited 3 times in total.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
| |