Jump to content
×
×
  • Create New...

[ Dead Download Link ] [RLS]Add it CleverBot(PM Bot) [ We Need You ]


Recommended Posts

492e6fce36.jpg

1974bc36b2.jpg

Working only Python 2.5 and 2.5+(New in version 2.5)

Necessary Libs;

urllib, urllib2, _socket, hashlib

Usage:

/cleverbot: Show bot status. active or passive

/cleverbot_open: Activate cleverbot

/cleverbot_close: Disable cleverbot

or your can change in game options

The fallowing 2 files throw into in root

Hidden Content

    Give reaction to this post to see the hidden content.

constinfo.py open

CleverBot = 0
add it

game.py open

under imports

 

import CleverBot
add it

Find this function

def OnRecvWhisper(self, mode, name, line):
add this code(

Hidden Content

    Give reaction to this post to see the hidden content.
)

 

new_nl = line.split(" : ")
if constInfo.CleverBot == 1:
    whisper_module = CleverBot.Run(self, mode, new_nl[0], new_nl[1])
uichat.py open

Find this function

def __SendChatPacket(self, text, type):
add this code(

Hidden Content

    Give reaction to this post to see the hidden content.
)

http://paste2.org/F1wz0fhc

uigameoption.py open

Find this function

def __Initialize(self):
add this code(

Hidden Content

    Give reaction to this post to see the hidden content.
)

self.cleverTextButtonList = []
Find this function

def __Load_BindObject(self):
add this code(

Hidden Content

    Give reaction to this post to see the hidden content.
)

self.cleverTextButtonList.append(GetObject("clevertext_on_button"))
self.cleverTextButtonList.append(GetObject("clevertext_off_button"))
Find this function

def __Load(self):
add this code(

Hidden Content

    Give reaction to this post to see the hidden content.
)

self.cleverTextButtonList[0].SAFE_SetEvent(self.__OnClickCleverTextOnButton)
 self.cleverTextButtonList[1].SAFE_SetEvent(self.__OnClickCleverTextOffButton)
Find this function

def __CheckPvPProtectedLevelPlayer(self):
add this code(

Hidden Content

    Give reaction to this post to see the hidden content.
)

http://paste2.org/YvymtO0e

uiscript/gameoptiondialog.py open

Find this

"height" : 25*11+8,
Will have 2x result, Your change both them with this code, if the numbers are different enough to add +2

"height" : 27*11+8,
First part;

Hidden Content

    Give reaction to this post to see the hidden content.

Other part;

Hidden Content

    Give reaction to this post to see the hidden content.

Go down to the bottom and find this code

"name" : "salestext_off_button",
"type" : "radio_button",


"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
"y" : 240,


"text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_OFF,


"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
Add fallowing code add it under

http://paste2.org/Bg41WHja

Readily example

http://paste2.org/1Y38w0Kb

When you activated bot, bot will show you as "[bOT]: message"

Hidden Content

    Give reaction to this post to see the hidden content.

  • Love 12
  • Good 1
Link to comment
  • Premium

Thanks ! Do you think this is a problem of my lib ? I'm pretty sure I have python 2.7 tho...

 

Edit : New Syserr, I only have _socket.pyd

0421 18:26:15171 ::   File "networkModule.py", line 235, in SetGamePhase

0421 18:26:15171 ::   File "system.py", line 130, in __pack_import

0421 18:26:15172 ::   File "system.py", line 110, in _process_result

0421 18:26:15172 ::   File "game.py", line 30, in <module>

0421 18:26:15172 ::   File "system.py", line 130, in __pack_import

0421 18:26:15172 ::   File "system.py", line 110, in _process_result

0421 18:26:15173 ::   File "CleverBot.py", line 7, in <module>

0421 18:26:15173 ::   File "system.py", line 130, in __pack_import

0421 18:26:15173 ::   File "system.py", line 110, in _process_result

0421 18:26:15173 ::   File "CleverBotApi.py", line 3, in <module>

0421 18:26:15174 ::   File "system.py", line 137, in __pack_import

0421 18:26:15174 ::   File "Liburllib.py", line 26, in <module>

0421 18:26:15174 ::   File "system.py", line 137, in __pack_import

0421 18:26:15174 ::   File "Libsocket.py", line 47, in <module>

0421 18:26:15175 ::   File "system.py", line 137, in __pack_import

0421 18:26:15175 :: ImportError
0421 18:26:15175 :: :
0421 18:26:15175 :: No module named _socket
0421 18:26:15175 ::


And if I put another _socket.pyd >

0421 18:30:35055 :: ImportError
0421 18:30:35055 :: :
0421 18:30:35055 :: DLL load failed: The specified procedure could not be found.
0421 18:30:35055 ::
  • Love 1
Link to comment

Thanks ! Do you think this is a problem of my lib ? I'm pretty sure I have python 2.7 tho...

 

Edit : New Syserr, I only have _socket.pyd

0421 18:26:15171 ::   File "networkModule.py", line 235, in SetGamePhase

0421 18:26:15171 ::   File "system.py", line 130, in __pack_import

0421 18:26:15172 ::   File "system.py", line 110, in _process_result

0421 18:26:15172 ::   File "game.py", line 30, in <module>

0421 18:26:15172 ::   File "system.py", line 130, in __pack_import

0421 18:26:15172 ::   File "system.py", line 110, in _process_result

0421 18:26:15173 ::   File "CleverBot.py", line 7, in <module>

0421 18:26:15173 ::   File "system.py", line 130, in __pack_import

0421 18:26:15173 ::   File "system.py", line 110, in _process_result

0421 18:26:15173 ::   File "CleverBotApi.py", line 3, in <module>

0421 18:26:15174 ::   File "system.py", line 137, in __pack_import

0421 18:26:15174 ::   File "Liburllib.py", line 26, in <module>

0421 18:26:15174 ::   File "system.py", line 137, in __pack_import

0421 18:26:15174 ::   File "Libsocket.py", line 47, in <module>

0421 18:26:15175 ::   File "system.py", line 137, in __pack_import

0421 18:26:15175 :: ImportError
0421 18:26:15175 :: :
0421 18:26:15175 :: No module named _socket
0421 18:26:15175 ::


And if I put another _socket.pyd >

0421 18:30:35055 :: ImportError
0421 18:30:35055 :: :
0421 18:30:35055 :: DLL load failed: The specified procedure could not be found.
0421 18:30:35055 ::

 

try with this

Hidden Content

    Give reaction to this post to see the hidden content.

  • Love 1
  • Good 1
Link to comment
  • Premium

Thanks, but still some bugs :

0421 19:47:15704 :: TypeError
0421 19:47:15704 :: : 
0421 19:47:15704 :: __pack_import() takes at most 4 arguments (5 given)
0421 19:47:15704 :: 

0421 19:47:19182 :: Traceback (most recent call last):

0421 19:47:19182 ::   File "networkModule.py", line 237, in SetGamePhase

0421 19:47:19182 :: AttributeError
0421 19:47:19182 :: : 
0421 19:47:19182 :: 'module' object has no attribute 'GameWindow'
0421 19:47:19182 :: 

Link to comment
  • 1 year later...

Hello guys. I have some error... help me :( .. Sorry for my bad english

0314 21:07:12282 :: 0314 21:07:12282 :: ============================================================================================================
0314 21:07:12282 :: Abort!!!!
Link to comment
  • 2 years later...
  • 1 year later...
  • 7 months later...
On 4/20/2015 at 11:16 PM, Koray said:
import CleverBot

0707 13:36:15274 ::   File "networkModule.py", line 237, in SetGamePhase

0707 13:36:15274 ::   File "system.py", line 130, in __pack_import

0707 13:36:15274 ::   File "system.py", line 110, in _process_result

0707 13:36:15274 ::   File "game.py", line 29, in <module>

0707 13:36:15274 ::   File "system.py", line 137, in __pack_import

0707 13:36:15275 :: ImportError
0707 13:36:15275 :: : 
0707 13:36:15275 :: No module named CleverBot
0707 13:36:15275 :: 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.