Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rsswBot|2012 (wbot2012)

Category:script
Author(s):Wafamde
Downloads:1059
Rate:You need to be logged in to vote
Rating:3.5 (17 Votes)
Description:
wBot|2012 is a bot for MTA:SA servers.
!!!I recommend that you look at the examples in the list below!!!
----------------------------------------------------------

The bot does not accept the standard commands of MTA, like "/me" or "/login"
- Instead it looks for certain words in player messages.

If enough words are found for the bot to put together an answer, the answer will be shown in the chatbox.
The bot wont always answer a question, if it can see the question is directed at a certain player. It only returns an answer when it's 100% positive the question is 'Bot related'
( More like 99% positive :P )

----------------------------------------------------------

Here is a list examples of questions directed at the bot.
You don't have to write the questions exactly as I do. The bot can read it no matter how you write it, as long as it can recognize the right words and they are spelled right, it will return an answer. Try it for yourself. Leave a comment if there is something you don't understand.

-- Money --
Wafamde: How much money does Wafamde have?
[wBot]: Wafamde has $0.

-- Area/Location --
Wafamde: Where is Wafamde?
[wBot]: Wafamde is at Ganton.

-- Speed/Velocity --
Wafamde: Where is Wafamdes velocity?
[wBot]: Wafamde's current velocity is 150 km/h

-- AFK/Idle --
Wafamde: Is Wafamde AFK?
[wBot]: Wafamde has been AFK for 384 seconds.
or
[wBot]: Wafamde is not AFK.

-- Position(X,Y,Z) --
Wafamde: What is Wafamdes position?
[wBot]: Wafamde's current position is 0, 0, 0.

-- Alive/Dead --
Wafamde: Is Wafamde dead?
[wBot]: Wafamde is alive.
or
[wBot]: Wafamde is dead.

-- Weapon/Ammo --
Wafamde: What weapon is Wafamde using?
[wBot]: Wafamde's current weapon is AK-47 with 384 rounds of ammo.

-- Time/Date --
Wafamde: What time is it?
or
Wafamde: What date is it?
[wBot]: 12:12:12 | 01/01/2012

-- Ping --
Wafamde: What is Wafamdes ping?
[wBot]: Wafamde's ping is 1.

-- Vehicle --
Wafamde: What vehicle is Wafamde using?
[wBot]: Wafamde is driving a Bandito.

-- Team --
Wafamde: What team is Wafamde on?
[wBot]: Wafamde is not on a team.
or
[wBot]: Wafamde is on team 'Alpha Super Awesome Cool Dynamite Wolf Squadron'.

-- Speed/Velocity --
Wafamde: What is Wafamdes current speed?
[wBot]: Wafamde current velocity is 234 km/h.

-- Distance --
Wafamde: How far am I from Wafamde?
[wBot]: Wafamde is right in front of you. Because it's you!
or
Wafamde: How far am I from X?
[wBot]: X is 2837 Meters away from you.

-- Skin --
Wafamde: What is Wafamdes current skin?
[wBot]: Wafamde current skin is 157

-- GameType --
Wafamde: What gametype is currently running?
[wBot]: No GameType has been set.
or
[wBot]: GameType is XXXXXXX.

-- Currently Doing -- [You may need to disable this.]
Wafamde: What are you doing Wafamde?
[wBot]: Wafamde is currently driving.
or
[wBot]: Wafamde is currently on foot.

-- Altitude --
Wafamde: What is Wafamdes altitude?
[wBot]: Wafamde is 2834 meters above sealevel.

-- BACK/BRB/AFK --

Wafamde: brb
or
Wafamde: afk
[wBot]: Hope you'll be back again soon Wafamde!

Wafamde: Back
[wBot]: Welcome back Wafamde.

-- Talk to wBot --

Wafamde: Who is wBot?
or
Wafamde Who are you wBot?
[wBot]: I used to be an adventurer like you, but then I took an arrow to the knee.

Also supports lots of "Greetings" that the bot can respond to.

Wafamde: Ohai wBot!
[wBot]: Hi Wafamde.

--------------------------------------------------------

There are some options in the resource for server admins.
It is possible to change the name of the bot and disable questions/answers in the file: "wBot_settings.lua"

To disable a question, simply replace the '1' with a '0'

----------------------------------------------------------

For a little more info, bug repports, feedback and ideas have a look here at the forum thread: http://forum.mtasa.com/viewtopic.php?f=108&t=38510

There is also a few videos of the bot working:
http://www.youtube.com/watch?v=4ibJKwFblNo
http://www.youtube.com/watch?v=JmvJ31iGJW0
( The bot does not reply as fast any more. I added 250ms delay to the messages )

The next release will contain a more optimized code and added functions from community ideas.
( If there are any! )

Also have to thank Aibo for brainstorming me towards the right solution a few months ago, long before this version was made ;-)
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
1.0.0 2012-01-10 18:44:35 First public release Download