SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 01/02/2012, 09:34 PM   #1
Fj0rtizFredde
High-roller
 
Fj0rtizFredde's Avatar
 
Join Date: Jun 2008
Location: Sweden
Posts: 1,067
Reputation: 119
Default Cleverbot - Never Be Alone Again!

Cleverbot - Never be alone again!

Ok. So I saw a guy a few days ago that wanted to be able to talk with Cleverbot ingame so I made this simple include that uses some PHP code that I found and modified.
(This is not the best code I've made but it works so be happy! )

Features:
* You will never be alone on the server!
* Only has one function!
* This supports Cleverbot, Jabberwacky and Pandorabots.
* Easy to edit!
* You don't need to host the PHP files if you don't want to but I recommend that you do it!

So how do we setup this crap?
First download the .inc file from the link below. Paste the .inc file in your pawno/includes folder. Then open your gamemode and add
pawn Code:
#include <CleverBot>
below
pawn Code:
#include <a_samp>
and that's it!
(Notice: Since I just use a free host for testing I recommend that you host the PHP files on your own!)

Download:
The Include File
PHP Files In A .Rar File

If you host the files on your own follow this steps:
1. Create a folder on your webhost. (You can name it whatever you want)
2. Place the chatterbotapi.php and the test.php in that folder.
3. Open the .inc file and edit line 11 to something like this:
pawn Code:
#define CleverHost "YourAwesomeSite.com/TheFolder/test.php" //Location to the test.php file! (Without [url]HTTP://)[/url]
And now you're done!

Test Command:
pawn Code:
//Just a simple code but you can use it however you want!
//ZCMD Test code: /message [Text]
CMD:message(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /message [Text]");
    new test[128];
    format(test, sizeof(test), "Me: %s", params);
    SendClientMessage(playerid, 0xFFFFFFFF, test);
    SendPlayerMessageToCleverbot(playerid, params);
    return 1;
}

Screenshot:


Credits:
Fj0rtizFredde - Creating this crap!
The guy who made the base for the API.
Yes I know that I made some grammar misstakes (I know about the one in the title, it's going to be changed!)
__________________
Latest crap I've made:
[Include]CleverBot - Never Be Alone Again!

Last edited by Fj0rtizFredde; 10/04/2012 at 05:06 PM.
Fj0rtizFredde is offline   Reply With Quote
Old 01/02/2012, 09:56 PM   #2
FireCat
Banned
 
Join Date: Jul 2010
Posts: 2,471
Reputation: 596
Default Re: Cleverbot - Never be alone agian!

Awesome and Epic!
FireCat is offline   Reply With Quote
Old 02/02/2012, 12:42 AM   #3
Steven82
High-roller
 
Join Date: Nov 2009
Posts: 2,625
Reputation: 169
Default Re: Cleverbot - Never be alone agian!

Actually, this is pretty cool not. Good job!
Steven82 is offline   Reply With Quote
Old 02/02/2012, 06:37 AM   #4
deliocomrp
Big Clucker
 
Join Date: Feb 2011
Location: Switzerland / Suisse.
Posts: 93
Reputation: 5
Default Re : Cleverbot - Never be alone agian!

Wow ... thanks!
__________________

altrino.com - Les seuls hébergements qui VOUS appellent.


Tel : France : (numéro Cristal) : 0977 199 915 - Europe / Switzerland : +41 445 862 393
- North America : +1 877.813.6173
deliocomrp is offline   Reply With Quote
Old 02/02/2012, 06:42 AM   #5
Snowman12
Huge Clucker
 
Join Date: Jan 2011
Location: Nottingham, UK.
Posts: 460
Reputation: 23
Default Re: Cleverbot - Never be alone agian!

OMG I HAVE A FRIEND!!!! I joke nice idea but I rage to easy.
__________________
I must apologize, I'm very sorry for being random.

Show your support by stopping this immature user "Brian_G" from stealing images from me/and others by leaving this on your signature.
Snowman12 is offline   Reply With Quote
Old 02/02/2012, 06:44 AM   #6
davve95
High-roller
 
davve95's Avatar
 
Join Date: Nov 2009
Location: Sweden
Posts: 3,451
Reputation: 184
Default Re: Cleverbot - Never be alone agian!

Nice and cool!. Good job
davve95 is offline   Reply With Quote
Old 02/02/2012, 07:55 AM   #7
aco_SRBIJA
Big Clucker
 
Join Date: Apr 2010
Posts: 183
Reputation: 4
Default Re: Cleverbot - Never be alone agian!

Ragging would be gained only

Those bots are not feeling feelings
__________________
Scripting,mapping&setting servers up for $$$

Feel free to PM.

We HATE the audio stream message!
Together we are strong.
Together we can change Kalcor's mind.
Copy & paste if you agree!
aco_SRBIJA is offline   Reply With Quote
Old 02/02/2012, 08:41 AM   #8
Hiddos
High-roller
 
Hiddos's Avatar
 
Join Date: Sep 2008
Posts: 3,924
Reputation: 1846
Default Re: Cleverbot - Never be alone agian!

This is full of win!
__________________
hiddos ♥ duck 07/08/2013
Quote:
Originally Posted by DeWolf View Post
For fuck's sake people, this whole thread is fucked up now.
Hiddos is offline   Reply With Quote
Old 02/02/2012, 08:45 AM   #9
[Nikk]
High-roller
 
[Nikk]'s Avatar
 
Join Date: Jun 2011
Location: Argentina.
Posts: 1,522
Reputation: 52
Default Respuesta: Cleverbot - Never be alone agian!

Fuc**ng awesome !
__________________
[Nikk] is offline   Reply With Quote
Old 02/02/2012, 08:49 AM   #10
ғαιιοцт
High-roller
 
ғαιιοцт's Avatar
 
Join Date: Feb 2008
Posts: 1,704
Reputation: 178
Default Re: Cleverbot - Never be alone agian!

Cleverbot can be so funny ^^ really nice to have this in sa-mp!
ғαιιοцт is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 11:48 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.