Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - King_Hual

Pages: [1] 2 3 4
1
mIRC Code Snippets / Re: Auto level on join.
« on: February 27, 2011, 12:21:44 pm »
Well I thought that when he said
(like Whale)
He meant a service bot, because Whale is a service bot in the network we're on :p

2
mIRC Code Snippets / Re: Auto level on join.
« on: February 26, 2011, 07:37:23 pm »
Sure I will. Im planning to make my own channel bot(like Whale)^^.

Channel bots are PHP :>

3
Off topic / Re: Ranting
« on: February 24, 2011, 07:21:50 pm »

4
mIRC Code Snippets / Re: Alias ASCII's
« on: February 24, 2011, 04:01:04 pm »
Nice script, but next time post a code of the thing that will be shown after you used the script, so people will know what they will use. :p

And next time, you should notice that the forum CAN'T READ ASCII SO HE CAN'T SHOW THE EFFECT OF THE SCRIPT

5
Off topic / Re: Say something about the user above you.
« on: February 20, 2011, 03:40:56 pm »
The person above me is above me

6
Member's Introduction / Re: Harro
« on: February 17, 2011, 05:47:55 pm »
So.. You're a 12 year old kid with no life? Well I doubt I can be your 1337th friend. Only your 1st or 2nd friend.

7
Off topic / Re: Say something about the user above you.
« on: February 16, 2011, 09:08:05 pm »
The person above me is a liar

8
Off topic / Re: Count to 5000
« on: February 16, 2011, 08:05:10 pm »
25 mad hackers

9
Off topic / Re: Say something about the user above you.
« on: February 16, 2011, 08:04:32 pm »
The person above me has a girlfriend

10
Moderator Applications / Re: Moderator Application!
« on: February 16, 2011, 08:02:13 pm »
I doubt your girlfriend says "LOL". ;) Anyways +1 from me, u seem like a cool guy.

11
mIRC Full Scripts / Re: Epimetheus Script
« on: February 16, 2011, 06:39:45 pm »
Plus with a name such as mine you don't expect happy light colors.

Emo style ?

I don't consider it Emo Style.
I consider it easier on my eyes, not bright at all ;/

Does this mean u take drugs?  :D

12
Off topic / Re: Count to 5000
« on: February 16, 2011, 06:23:30 pm »
23 cows in teh farm

13
Off topic / Re: Say something about the user above you.
« on: February 16, 2011, 06:22:55 pm »
I don't know anything about the person above me yet.

14
PHP Code Snippets / PHP IRC bot
« on: February 16, 2011, 06:17:07 pm »
Code: [Select]
<?php//So the bot doesnt stop.set_time_limit(0);ini_set('display_errors', 'on');//Sample connection data.$config = array('server' => 'irc.focogaming.com','port'   => 6667,'channel' => '#king_hual','name'   => 'Hual`PHP','nick'   => 'Hual`PHP','pass'   => '',);/*//Set your connection data.$config = array('server' => 'example.com','port'   => 6667,'channel' => '#channel','name'   => 'real name','nick'   => 'user','pass'   => 'pass',);*/class IRCBot {//This is going to hold our TCP/IP connectionvar $socket;//This is going to hold all of the messages both server and clientvar $ex = array();/*Construct item, opens the server connection, logs the bot in@param array*/function __construct($config){$this->socket = fsockopen($config['server'], $config['port']);$this->login($config);$this->main($config);}/*Logs the bot in on the server@param array*/function login($config){$this->send_data('USER', $config['nick'].' Hual`PHP '.$config['nick'].' :'.$config['name']);$this->send_data('NICK', $config['nick']);$this->join_channel($config['channel']);}/*This is the workhorse function, grabs the data from the server and displays on the browser*/function main($config){$data = fgets($this->socket, 256);echo nl2br($data);flush();$this->ex = explode(' ', $data);if($this->ex[0] == 'PING'){$this->send_data('PONG', $this->ex[1]); //Plays ping-pong with the server to stay connected.}$command = str_replace(array(chr(10), chr(13)), '', $this->ex[3]);switch($command) //List of commands the bot responds to from a user.{case ':!join':$this->join_channel($this->ex[4]);break;case ':!part':$this->send_data('PART '.$this->ex[4].' :', 'I like pie');break;case ':!say':$message = "";for($i=5; $i <= (count($this->ex)); $i++){$message .= $this->ex[$i]." ";}$this->send_data('PRIVMSG '.$this->ex[4].' :', $message);break;case ':!restart':echo "<meta http-equiv=\"refresh\" content=\"5\">";exit;case ':!shutdown':$this->send_data('QUIT', 'I like pie');exit;}$this->main($config);}function send_data($cmd, $msg = null) //displays stuff to the broswer and sends data to the server.{if($msg == null){fputs($this->socket, $cmd."\r\n");echo '<strong>'.$cmd.'</strong><br />';} else {fputs($this->socket, $cmd.' '.$msg."\r\n");echo '<strong>'.$cmd.' '.$msg.'</strong><br />';}}function join_channel($channel) //Joins a channel, used in the join function.{if(is_array($channel)){foreach($channel as $chan){$this->send_data('JOIN', $chan);}} else {$this->send_data('JOIN', $channel);}}}//Start the bot$bot = new IRCBot($config);?>

The reason why I reposted a PHP irc bot script is because this is another IRC bot script. There are problems with the commands in the other bot script - you can only add 3 commands. But this one works fine, even though it's more complicated.

15
mIRC Full Scripts / Re: Epimetheus Script
« on: February 16, 2011, 06:13:09 pm »
Plus with a name such as mine you don't expect happy light colors.

Emo style ?

Pages: [1] 2 3 4