Jump to content

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


Koray

Recommended Posts

  • Active Member

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

This is the hidden content, please

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(like this)

 

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(like this)

http://paste2.org/F1wz0fhc

uigameoption.py open

Find this function

def __Initialize(self):
add this code(like this)

self.cleverTextButtonList = []
Find this function

def __Load_BindObject(self):
add this code(like this)

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

def __Load(self):
add this code(like this)

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

def __CheckPvPProtectedLevelPlayer(self):
add this code(like this)

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; https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

Other part; https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

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" like this

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 4
  • Dislove 1
  • Good 1
  • Love 12
Link to comment
Share on other sites

  • 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
Share on other sites

  • Active Member

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

This is the hidden content, please

  • Metin2 Dev 1
  • Good 1
  • Love 1
Link to comment
Share on other sites

  • 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
Share on other sites

  • 1 year later...
  • 2 years later...
  • 1 year later...
  • Management

 Dead Download Link 

 Moved Topic 

 

If someone has the archive of this topic, can you send it to us? Thank you!

 

Puss In Boots Please GIF by swerk

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 113

      Ulthar SF V2 (TMP4 Base)

    2. 2

      Feeding game source to LLM

    3. 0

      Target Information System

    4. 2

      Feeding game source to LLM

    5. 2

      anti exp explanation pls

    6. 2

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

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.