unknooooown Posted January 5, 2012 Share Posted January 5, 2012 (edited) ----------------------------------------------------------------------------------------------------------------------------------------------- v1.0.0 has been released. Get it here. Description for v1.0.0: 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 ) ---------------------------------------------------------- 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. -- 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]: xx:xx:xx | xx/xx/20xx -- 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: viewtopic.php?f=108&t=38510 There is also a few videos of the bot working: ( 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! ) ----------------------------------------------------------------------------------------------------------------------------------------------- Ohai!.. Didn't see you there. Just wanted to start a WIP thread for my wBot project. I am trying to make a bot that detects certain trigger and keywords in chatbox sentences. The way the bot works is that it detects certain already known words in player messages. If the bot finds a triggerWord, then it will move on to looking for a keyWord. Examples of triggerWords: 'where', 'when', 'is', 'has' Examples of keyWords: 'money', 'vehicle', 'team', 'ping' If the bot finds one or more of each type word, it will then see if the question is related to a player or not. A player does not have to be connected to the question. Questions like: ' What is the time? ' or ' what time is it? ' will still pass. Now that the bot knows if the question is player related or not it will loop through a function of possible- -answers to the question and return the answer to the player/server if one is found. It works pretty well already, but there is still a lot to fix before I'm going to share it. I am also thinking about making a database for the bot, so it can gather info about players and the server. Perhaps.. It will even be a real live boy some day.. I guess only time can tell. <- ( ) Aaaaanyways.. Here is a small preview of the bot at work Don't really know why I wrote the questions like I did in the video. Sentences like: 'how much money do you have wafamde', 'where are you wafamde?' or 'WhaTcaR iS wAFamdE usInG' - Almost anything will pass as long as the right keywords are there and the bot can connect them. Update: The bot supports the following types of questions: Area, -- Returns the Area the player is in.Position, -- Returns the x,y,z coordinates of the player. Money, -- Returns the amount of money the player currently has. Idle, -- Returns the idle time of the player, if he is idle/AFK. Health, -- Returns the amount of health of the player. If he is in a vehicle, that will also be returned. Armor, -- Returns the amount of armor, if the player has any. Weapon, -- Returns the current weapon the player is using and the total amount of ammo for that weapon. Time/Date, -- Returns the time and date. Ping, -- Returns the players current ping. Vehicle, -- Returns the name of the vehicle that the player is currently using. Team, -- Returns the team name if the player is on a team. Speed/Velocity, -- Returns the current x,y,z velocity of the player ( speed ) Distance, -- Returns the distance from the player to 'you' ( the player that triggered the bot ) Skin, -- Returns the current skin that the player is using. 'Back','AFK','BRB' -- Sends a message to the player that fits either 'Back', 'AFK' or 'BRB' 'Greet the bot', -- Greet the bot and get a response. Admin, -- Returns whether or not the player is an admin. GameType, -- Returns the name of the current gametype. Doing, -- Returns whether or not the player is driving or on foot. 'Who is BOTNAME' -- Returns the message: ' I used to be an adventurer like you, but then I took an arrow to the knee. ' See some of the new functions at work here: Sorry about the Family Guy in the background Forgot to mute it. I have also added a BlackWord list to the resource. The point of the BlackWord list is to filter out unwanted returns from the bot. An example of this: ' Wafamde, how can I get some armor? ' -- Before this update this would have returned an answer from the bot, but doesn't return anything anymore, because it has detected some words that wouldnt be used in a "command". Update 2: Added function ' answerSimpleMessage ' - This function takes care of words like "afk", "back" and "brb" Edited January 11, 2012 by Guest Link to comment
12p Posted January 5, 2012 Share Posted January 5, 2012 (first comment! ) Keep it up, you're doing a very good job, man. Link to comment
Castillo Posted January 5, 2012 Share Posted January 5, 2012 Nice one, good luck with it . Link to comment
unknooooown Posted January 5, 2012 Author Share Posted January 5, 2012 Thanks for the replies I'll keep working on this so I can share it with the community Just posted a small update below the YouTube link. Have a look at it. ( 200 posts ) Link to comment
12p Posted January 5, 2012 Share Posted January 5, 2012 Will you make it customizable so admins can add their own questions and answers to the bot? Like a XML system. Link to comment
unknooooown Posted January 5, 2012 Author Share Posted January 5, 2012 (edited) Will you make it customizable so admins can add their own questions and answers to the bot? Like a XML system. That is the plan. Not sure if I will use the XML or SQLite system yet. Probably gonna be XML as that is the easiest to edit for most people. I am gonna make it very userfriendly so everyone can edit it to their needs. I will also add a function so people/admins can 'teach' the bot new questions/answers by command ingame, so they don't have to access the XML file. And thank you Solidsnake14, Kenix and FatalTerror Edited January 5, 2012 by Guest Link to comment
unknooooown Posted January 6, 2012 Author Share Posted January 6, 2012 Good luck with it. Thanks JR10 If anyone has any ideas for things I should add to the bot, please let me know! It is VERY easy to add new questions and answers to it, so we might as well add as much as possible Look at the list in the start of the thread to see which questions are already supported. I update the list everytime I add something new. Link to comment
Oz. Posted January 6, 2012 Share Posted January 6, 2012 That's a pretty cool idea Wafamde, good luck with it. How about being able to ask how long a player has been idle for, or how long it has been since a particular player has been on the server? Statistics like what is the highest player count the server has received, how many does it average, who are the Administrators/Moderators etc... Link to comment
unknooooown Posted January 6, 2012 Author Share Posted January 6, 2012 That's a pretty cool idea Wafamde, good luck with it.How about being able to ask how long a player has been idle for, or how long it has been since a particular player has been on the server? Statistics like what is the highest player count the server has received, how many does it average, who are the Administrators/Moderators etc... Good ideas Oz! - I am gonna add a database for the bot tonight so it can save info about players. About the Idletime, that is already added But I really like the ideas of the highest player count. etc. Link to comment
CapY Posted January 6, 2012 Share Posted January 6, 2012 That's pretty good job Wafamde, keep it up. I might come with a few ideas later. Link to comment
12p Posted January 6, 2012 Share Posted January 6, 2012 (edited) What about retrieving variables from other resources? If you wanna know why, I'll tell ya Edited January 7, 2012 by Guest Link to comment
DarkLink Posted January 7, 2012 Share Posted January 7, 2012 I like your idea, very nice mate ! Now try to give the bot more intelligence More questions and stuff Very good, congratz Link to comment
unknooooown Posted January 10, 2012 Author Share Posted January 10, 2012 I have released the first version of the bot to the community: https://community.multitheftauto.com/index.php?p=resources&s=details&id=3525 Enjoy Please report any bugs here so I can fix them asap! Link to comment
unknooooown Posted January 11, 2012 Author Share Posted January 11, 2012 Thanks nice one Thank you. Hope you like it Link to comment
CapY Posted January 11, 2012 Share Posted January 11, 2012 An suggestion. Where does Player live at ? (Country) Link to comment
unknooooown Posted January 11, 2012 Author Share Posted January 11, 2012 An suggestion.Where does Player live at ? (Country) I'm gonna add that for the version Thanks for the suggestion. Also gonna add some questions that only admins will be able to use.. Like serial and ip. Link to comment
12p Posted January 12, 2012 Share Posted January 12, 2012 where does player LIVE? That would only apply to Roleplay, maybe you meant "where is player located at?" Link to comment
CapY Posted January 12, 2012 Share Posted January 12, 2012 where does player LIVE?That would only apply to Roleplay, maybe you meant "where is player located at?" No. Link to comment
12p Posted January 12, 2012 Share Posted January 12, 2012 Then you meant this retrieving variables from other resources Otherwise, explain HOW THE HELL is wBot going to get the data about player's "home" position. Link to comment
AGENT_STEELMEAT Posted January 13, 2012 Share Posted January 13, 2012 HOW THE HELL is wBot going to get the data about player's "home" position Hax and fairy unicorn farts. Link to comment
12p Posted January 13, 2012 Share Posted January 13, 2012 HOW THE HELL is wBot going to get the data about player's "home" position Hax and fairy unicorn farts. Okay, what must I do now, master? Got them already Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now