Kadiliman Plugin v 1.3 - ChatBot by Kali
Moderator: Moderators
Re: Kadiliman Plugin v 1.3 - ChatBot by Kali
This plugin works like this:
1)- He records sentences sent by players near the bot and put them in lines.txt
2)- When somebody speak with the bot, he will check if the player is in the noPlayers list and if what the player said is in the noWords list. Then it will try to get the best sentence. But, sometimes it doesn't have a "good" sentence, that's why it speaks random things...
1)- He records sentences sent by players near the bot and put them in lines.txt
2)- When somebody speak with the bot, he will check if the player is in the noPlayers list and if what the player said is in the noWords list. Then it will try to get the best sentence. But, sometimes it doesn't have a "good" sentence, that's why it speaks random things...
Quit.
Re: Kadiliman Plugin v 1.3 - ChatBot by Kali
Right.. heres what I have done so far:
1) I have installed all of the files to the relevant directories.
2) I have configured the file as follows:
3) I run the bot and sit in town to beef up my file.
4) "[Kadiliman] Don't answering player" comes up to show that it is not going to reply (which is what I want)
When I go to close the application, I cant find the script file: lines.txt
Where would I find that file?
1) I have installed all of the files to the relevant directories.
2) I have configured the file as follows:
Code: Select all
chatBot Kadiliman {
inLockOnly 0 # (0|1) Just answer to public chat at lockmap, pm will be answered normally
scriptfile lines.txt # Name of the file where all sentences are storage, it will be create at openkore root directory
replyRate 0 # (0..100) Rate to answer, 80 means: answer 80% of chats and don't answer 20%
onPublicChat 1 # (0|1) Enable to answer any plublic chat
onPrivateMessage 1 # (0|1) Enable to answer any private message
onSystemChat 1 # (0|1) Enable to answer any system message
onGuildChat 1 # (0|1) Enable to answer any guild chat
onPartyChat 1 # (0|1) Enable to answer any party chat
wpm 65 # Don't need to change - words per minute, simulate typing speed
smileys {-_-),=),^^,:) # Smileys that may end your sentences on chat (separeted by commas)
smileyRate 20 # Rate to add smiley to the sentences, means: add smileys to 20% of messages
learn 1 # This plugin can "learn" every sentence read by the bot, this sentences are storage at the scriptfile
noPlayers , , # Name of the players (supported by regexp) you don't want to answer any thing, like party members (separeted by commas)
noWords , , , # Words (supported by regexp) at the chats you don't want to answer, like "bot", "heal", "buffs" or something like this (separeted by commas)
timesToBlockPM 10 # Number of times of pms received by each player to ignore him, work just to pm
timeToResetCount 300 # Number of seconds to reset the count to ignore any player, with zero it won't reset
}
4) "[Kadiliman] Don't answering player" comes up to show that it is not going to reply (which is what I want)
When I go to close the application, I cant find the script file: lines.txt
Where would I find that file?
Re: Kadiliman Plugin v 1.3 - ChatBot by Kali
@Mylo86: Delete the "," in config.txt at noPlayers
Re: Kadiliman Plugin v 1.3 - ChatBot by Kali
Is this working at 2.0.6?
kindly reattached the files, I cant download it... thank you
kindly reattached the files, I cant download it... thank you
Re: Kadiliman Plugin v 1.3 - ChatBot by Kali
attachments in 1st post does not exist any more...
does anyone have required files or links for them?
and does plugin works with lastest revision of OK?
sry 4 asking foolish questions, i've found plugin in svn
thanks 4 such useful plugin
does anyone have required files or links for them?
and does plugin works with lastest revision of OK?
sry 4 asking foolish questions, i've found plugin in svn
thanks 4 such useful plugin
Re: Kadiliman Plugin v 1.3 - ChatBot by Kali
does not work "noWords" when you receive a message in the PM
I modified the Plugin!!!
So, the new version: 1.4 - 03/09/2009
Please test it!!!!!!!!
kadiliman_1.4.rar
I modified the Plugin!!!
So, the new version: 1.4 - 03/09/2009
Please test it!!!!!!!!
kadiliman_1.4.rar
Re: Kadiliman Plugin v 1.3 - ChatBot by Kali
I've got it to work.
-
- Noob
- Posts: 1
- Joined: 12 Sep 2009, 05:37
- Noob?: No
Re: Kadiliman Plugin v 1.3 - ChatBot by Kali
thxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Re: Kadiliman Plugin v 1.3 - ChatBot by Kali | SVN
Hi, I tried using the plug-in and it records and save at the line.txt but when i try to pm the bot, it will answer once and then when i pm'ed it again it won't answer anymore. . what can be the prob?
Im using it on svn
Code: Select all
chatBot Kadiliman {
inLockOnly 0
scriptfile lines.txt
replyRate 80
onPublicChat 1
onPrivateMessage 1
onSystemChat 0
onGuildChat 0
onPartyChat 0
wpm 65
smileys xD , -.- . -.-'
smileyRate 50
learn 1
noPlayers
noWords
timesToBlockPM 20
timeToResetCount 300
}
Im using it on svn
Re: Kadiliman Plugin v 1.3 - ChatBot by Kali
I was having a problem were the lines.txt file would get deleted every time the bot restarted, then I did this fix and its now working perfectly, thanks Mucilon.Mucilon wrote: Open your kadiliman.pl file and search for this part of program:And just change it to this:Code: Select all
sub Reload { for (my $i = 0; (exists $config{$prefix.$i}); $i++) { message "Plugin Kadiliman: checking for duplicate lines in ". $config{$prefix.$i."_scriptfile"} ."...", "plugins"; checkForDupes($config{$prefix.$i."_scriptfile"}); message "[Kadiliman] done.\n", "plugins"; $bot{$i} = new Chatbot::Kadiliman { name => $config{$prefix.$i}, scriptfile => $config{$prefix.$i."_scriptfile"}, learn => $config{$prefix.$i."_learn"}, reply => 1, }; } }
Code: Select all
sub Reload { for (my $i = 0; (exists $config{$prefix.$i}); $i++) { message "Plugin Kadiliman: checking for duplicate lines in ". $config{$prefix.$i."_scriptfile"} ."...", "plugins"; # checkForDupes($config{$prefix.$i."_scriptfile"}); message "[Kadiliman] done.\n", "plugins"; $bot{$i} = new Chatbot::Kadiliman { name => $config{$prefix.$i}, scriptfile => $config{$prefix.$i."_scriptfile"}, learn => $config{$prefix.$i."_learn"}, reply => 1, }; } }