[HELP] candybot otclient

eyez

Member
Joined
Oct 11, 2016
Messages
92
Best answers
0
Reaction score
16
I've download CandyBot for otclient from this link:
https://codeload.github.com/BenDol/otclient-candybot/zip/master

Extract, rename the folder to otclient-candybot...
And put it on:
/home/eyez/otclient/mods/otclient-candybot

Now when i open my otclient, the bot is there, but nothing is working
I try to mana train, active, my fps down a lot, but not train, nothing happen...


Its not work on ubuntu? What is wrong?
 
OP
eyez

eyez

Member
Joined
Oct 11, 2016
Messages
92
Best answers
0
Reaction score
16
bump!
 

margoh

{{ user.title }}
Joined
Apr 1, 2013
Messages
690
Best answers
9
Reaction score
229
If you have compiled it with bot_protection, then it won't work.
 

threat

New Member
Joined
Jun 28, 2011
Messages
15
Best answers
0
Reaction score
17
Hi, hope is not too late :D
/home/"username"/otclient/src/client/CMakeLists.txt

Change Line #8
option(BOT_PROTECTION "Enable bot protection" ON)
to
option(BOT_PROTECTION "Enable bot protection" OFF)

Extra info:
Before you open a new thread about it:
Every function is working except for add path it is under construction but project has been deprecated.
Auto-Loot: grabs every item on corpses.
Anti-IDLE: only works if you do not attack a target.
 
OP
eyez

eyez

Member
Joined
Oct 11, 2016
Messages
92
Best answers
0
Reaction score
16
Hi, hope is not too late :D
/home/"username"/otclient/src/client/CMakeLists.txt

Change Line #8
option(BOT_PROTECTION "Enable bot protection" ON)
to
option(BOT_PROTECTION "Enable bot protection" OFF)

Extra info:
Before you open a new thread about it:
Every function is working except for add path it is under construction but project has been deprecated.
Auto-Loot: grabs every item on corpses.
Anti-IDLE: only works if you do not attack a target.
Ty you again, but still not working nothing :(
Show me this errors on terminal
Code:
Loaded module 'otclient_candybot'
Startup done :]
ERROR: Unable to send extended opcode 1, extended opcodes are not enabled
ERROR: Unhandled onTextMessage message mode 46: Stamina trainer offline 15h and 8min.
ERROR: Unhandled onTextMessage message mode 46: Você tem 30% de EXP em vantagem, Ainda lhe restam 24 dias de VIP!
ERROR: caught a lua call to a bot protected game function, the call was cancelled
stack traceback:
    [C]: ?
    [C]: in function 'cancelAttackAndFollow'
    ...lient-candybot/modules/05-paths/events/smartpath.lua:211: in function '?'
    /otclient-candybot/classes/candylistener.lua:89: in function 'disconnect'
    /otclient-candybot/listeners.lua:99: in function 'disconnectListener'
    /otclient-candybot/listeners.lua:145: in function 'response'
    /otclient-candybot/classes/candymodule.lua:123: in function 'notify'
    /otclient-candybot/modules.lua:152: in function 'notifyChange'
    /otclient-candybot/candybot.lua:229: in function 'changeOption'
    /otclient-candybot/candybot.lua:173: in function </otclient-candybot/candybot.lua:173>
ERROR: caught a lua call to a bot protected game function, the call was cancelled
stack traceback:
    [C]: ?
    [C]: in function 'cancelAttackAndFollow'
    ...lient-candybot/modules/05-paths/events/smartpath.lua:211: in function '?'
    /otclient-candybot/classes/candylistener.lua:89: in function 'disconnect'
    /otclient-candybot/listeners.lua:99: in function 'disconnectListener'
    /otclient-candybot/listeners.lua:145: in function 'response'
    /otclient-candybot/classes/candymodule.lua:123: in function 'notify'
    /otclient-candybot/listeners.lua:124: in function 'signal'
    ...tclient-candybot/modules/00-bot/events/enablebot.lua:17: in function 'callback'
    /otclient-candybot/events.lua:88: in function 'process'
    /otclient-candybot/events.lua:43: in function </otclient-candybot/events.lua:42>
Full terminal:
Code:
GPU Mesa DRI Intel(R) Ivybridge Mobile
OpenGL 3.0 Mesa 11.2.0
Found work dir at '/home/everton/otclient/build/../'
ERROR: Unable to save log to '/home/everton/otclient/build/../otclient.log'
== application started at Oct 23 2016 18:08:21
OTClient 0.6.6 rev 0 (devel) built on Oct  8 2016 for arch x64
Loaded module 'corelib'
Loaded module 'game_things'
Loaded module 'gamelib'
Loaded module 'client'
Loaded module 'client_styles'
Locale 'pl' is missing 1 translations.
Locale 'pt' is missing 19 translations.
Using configured locale: en
Loaded module 'client_locales'
Loaded module 'client_topmenu'
Loaded module 'client_background'
Loaded module 'client_options'
Loaded module 'client_entergame'
Loaded module 'client_terminal'
Loaded module 'client_modulemanager'
Loaded module 'client_serverlist'
Loaded module 'client_stats'
Loaded module 'game_interface'
Loaded module 'game_hotkeys'
Loaded module 'game_questlog'
Loaded module 'game_textmessage'
Loaded module 'game_console'
Loaded module 'game_outfit'
Loaded module 'game_healthinfo'
Loaded module 'game_skills'
Loaded module 'game_inventory'
Loaded module 'game_combatcontrols'
Loaded module 'game_containers'
Loaded module 'game_viplist'
Loaded module 'game_battle'
Loaded module 'game_minimap'
Loaded module 'game_npctrade'
Loaded module 'game_textwindow'
Loaded module 'game_playertrade'
Loaded module 'game_bugreport'
Loaded module 'game_playerdeath'
Loaded module 'game_playermount'
Loaded module 'game_ruleviolation'
Loaded module 'game_market'
Loaded module 'game_spelllist'
Loaded module 'game_cooldown'
Loaded module 'game_modaldialog'
Loaded module 'game_unjustifiedpoints'
ERROR: failed to create widget from style 'NodeImage': 'NodeImage' is not a defined style
Loaded module 'otclient_candybot'
Startup done :]
ERROR: Unable to send extended opcode 1, extended opcodes are not enabled
ERROR: Unhandled onTextMessage message mode 46: Stamina trainer offline 15h and 8min.
ERROR: Unhandled onTextMessage message mode 46: Você tem 30% de EXP em vantagem, Ainda lhe restam 24 dias de VIP!
ERROR: caught a lua call to a bot protected game function, the call was cancelled
stack traceback:
    [C]: ?
    [C]: in function 'cancelAttackAndFollow'
    ...lient-candybot/modules/05-paths/events/smartpath.lua:211: in function '?'
    /otclient-candybot/classes/candylistener.lua:89: in function 'disconnect'
    /otclient-candybot/listeners.lua:99: in function 'disconnectListener'
    /otclient-candybot/listeners.lua:145: in function 'response'
    /otclient-candybot/classes/candymodule.lua:123: in function 'notify'
    /otclient-candybot/modules.lua:152: in function 'notifyChange'
    /otclient-candybot/candybot.lua:229: in function 'changeOption'
    /otclient-candybot/candybot.lua:173: in function </otclient-candybot/candybot.lua:173>
ERROR: caught a lua call to a bot protected game function, the call was cancelled
stack traceback:
    [C]: ?
    [C]: in function 'cancelAttackAndFollow'
    ...lient-candybot/modules/05-paths/events/smartpath.lua:211: in function '?'
    /otclient-candybot/classes/candylistener.lua:89: in function 'disconnect'
    /otclient-candybot/listeners.lua:99: in function 'disconnectListener'
    /otclient-candybot/listeners.lua:145: in function 'response'
    /otclient-candybot/classes/candymodule.lua:123: in function 'notify'
    /otclient-candybot/listeners.lua:124: in function 'signal'
    ...tclient-candybot/modules/00-bot/events/enablebot.lua:17: in function 'callback'
    /otclient-candybot/events.lua:88: in function 'process'
    /otclient-candybot/events.lua:43: in function </otclient-candybot/events.lua:42>
ERROR: unhandled onTalk message mode 44: exura
otclient/src/client/CMakeLists.txt
Code:
# CMAKE_CURRENT_LIST_DIR cmake 2.6 compatibility
if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 6)
    get_filename_component(CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
endif(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 6)

# client options
add_definitions(-DCLIENT)
option(BOT_PROTECTION "Enable bot protection" OFF)
if(BOT_PROTECTION)
    add_definitions(-DBOT_PROTECTION)
    message(STATUS "Bot protection: ON")
else(BOT_PROTECTION)
    message(STATUS "Bot protection: OFF")
endif(BOT_PROTECTION)

set(client_SOURCES ${client_SOURCES}
    # client
    ${CMAKE_CURRENT_LIST_DIR}/const.h
    ${CMAKE_CURRENT_LIST_DIR}/global.h
    ${CMAKE_CURRENT_LIST_DIR}/luafunctions.cpp
    ${CMAKE_CURRENT_LIST_DIR}/client.cpp
    ${CMAKE_CURRENT_LIST_DIR}/client.h

    # core
    ${CMAKE_CURRENT_LIST_DIR}/animatedtext.cpp
    ${CMAKE_CURRENT_LIST_DIR}/animatedtext.h
    ${CMAKE_CURRENT_LIST_DIR}/animator.h
    ${CMAKE_CURRENT_LIST_DIR}/animator.cpp
    ${CMAKE_CURRENT_LIST_DIR}/container.cpp
    ${CMAKE_CURRENT_LIST_DIR}/container.h
    ${CMAKE_CURRENT_LIST_DIR}/creature.cpp
    ${CMAKE_CURRENT_LIST_DIR}/creature.h
    ${CMAKE_CURRENT_LIST_DIR}/declarations.h
    ${CMAKE_CURRENT_LIST_DIR}/effect.cpp
    ${CMAKE_CURRENT_LIST_DIR}/effect.h
    ${CMAKE_CURRENT_LIST_DIR}/game.cpp
    ${CMAKE_CURRENT_LIST_DIR}/game.h
    ${CMAKE_CURRENT_LIST_DIR}/shadermanager.cpp
    ${CMAKE_CURRENT_LIST_DIR}/shadermanager.h
    ${CMAKE_CURRENT_LIST_DIR}/item.cpp
    ${CMAKE_CURRENT_LIST_DIR}/item.h
    ${CMAKE_CURRENT_LIST_DIR}/localplayer.cpp
    ${CMAKE_CURRENT_LIST_DIR}/localplayer.h
    ${CMAKE_CURRENT_LIST_DIR}/map.cpp
    ${CMAKE_CURRENT_LIST_DIR}/map.h
    ${CMAKE_CURRENT_LIST_DIR}/mapio.cpp
    ${CMAKE_CURRENT_LIST_DIR}/mapview.cpp
    ${CMAKE_CURRENT_LIST_DIR}/mapview.h
    ${CMAKE_CURRENT_LIST_DIR}/minimap.cpp
    ${CMAKE_CURRENT_LIST_DIR}/minimap.h
    ${CMAKE_CURRENT_LIST_DIR}/lightview.cpp
    ${CMAKE_CURRENT_LIST_DIR}/lightview.h
    ${CMAKE_CURRENT_LIST_DIR}/missile.cpp
    ${CMAKE_CURRENT_LIST_DIR}/missile.h
    ${CMAKE_CURRENT_LIST_DIR}/outfit.cpp
    ${CMAKE_CURRENT_LIST_DIR}/outfit.h
    ${CMAKE_CURRENT_LIST_DIR}/player.cpp
    ${CMAKE_CURRENT_LIST_DIR}/player.h
    ${CMAKE_CURRENT_LIST_DIR}/spritemanager.cpp
    ${CMAKE_CURRENT_LIST_DIR}/spritemanager.h
    ${CMAKE_CURRENT_LIST_DIR}/statictext.cpp
    ${CMAKE_CURRENT_LIST_DIR}/statictext.h
    ${CMAKE_CURRENT_LIST_DIR}/thing.cpp
    ${CMAKE_CURRENT_LIST_DIR}/thing.h
    ${CMAKE_CURRENT_LIST_DIR}/thingtypemanager.cpp
    ${CMAKE_CURRENT_LIST_DIR}/thingtypemanager.h
    ${CMAKE_CURRENT_LIST_DIR}/thingtype.cpp
    ${CMAKE_CURRENT_LIST_DIR}/thingtype.h
    ${CMAKE_CURRENT_LIST_DIR}/itemtype.cpp
    ${CMAKE_CURRENT_LIST_DIR}/itemtype.h
    ${CMAKE_CURRENT_LIST_DIR}/tile.cpp
    ${CMAKE_CURRENT_LIST_DIR}/tile.h
    ${CMAKE_CURRENT_LIST_DIR}/houses.cpp
    ${CMAKE_CURRENT_LIST_DIR}/houses.h
    ${CMAKE_CURRENT_LIST_DIR}/towns.cpp
    ${CMAKE_CURRENT_LIST_DIR}/towns.h
    ${CMAKE_CURRENT_LIST_DIR}/creatures.cpp
    ${CMAKE_CURRENT_LIST_DIR}/creatures.h

    # lua
    ${CMAKE_CURRENT_LIST_DIR}/luavaluecasts.cpp
    ${CMAKE_CURRENT_LIST_DIR}/luavaluecasts.h

    # net
    ${CMAKE_CURRENT_LIST_DIR}/protocolcodes.cpp
    ${CMAKE_CURRENT_LIST_DIR}/protocolcodes.h
    ${CMAKE_CURRENT_LIST_DIR}/protocolgame.cpp
    ${CMAKE_CURRENT_LIST_DIR}/protocolgame.h
    ${CMAKE_CURRENT_LIST_DIR}/protocolgameparse.cpp
    ${CMAKE_CURRENT_LIST_DIR}/protocolgamesend.cpp

    # ui
    ${CMAKE_CURRENT_LIST_DIR}/uicreature.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uicreature.h
    ${CMAKE_CURRENT_LIST_DIR}/uiitem.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uiitem.h
    ${CMAKE_CURRENT_LIST_DIR}/uimap.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uimap.h
    ${CMAKE_CURRENT_LIST_DIR}/uiminimap.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uiminimap.h
    ${CMAKE_CURRENT_LIST_DIR}/uiprogressrect.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uiprogressrect.h
    ${CMAKE_CURRENT_LIST_DIR}/uimapanchorlayout.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uimapanchorlayout.h
    ${CMAKE_CURRENT_LIST_DIR}/uisprite.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uisprite.h

    # util
    ${CMAKE_CURRENT_LIST_DIR}/position.h
)

set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/luafunctions.cpp
                            PROPERTIES LANGUAGE CXX COMPILE_FLAGS "-g0 -Os")
 

threat

New Member
Joined
Jun 28, 2011
Messages
15
Best answers
0
Reaction score
17
OK, let's go step by step :D
Download a brand new source!

/home/"username"/otclient/src/client/CMakeLists.txt

Change Line #8
option(BOT_PROTECTION "Enable bot protection" ON)
to
option(BOT_PROTECTION "Enable bot protection" OFF)

After that you have to re-compile the build.
ABOUT errors 44 and 46
44 being Spell Chat channel and 46 being that "ad" or extra info message.

You can Fix that by doing the following:
/home/"username"/otclient-master/modules/gamelib/const.lua

Go to Line #170 MessageModes

Search for Spell Line and Change it like this:
Spell = XX (Default Number)
to
Spell = 44

To fix the 46 error since it is a Server Ad or Server Extra Info:

Either use Blue / Red / Report so it would be like this:
For example:
Blue = XX (Default Number)
Blue=46

You might need to choose between Red / Blue / Report according to the server. That's why it would be nice to have a const.lua backup I guess you are playing on a 8.6 Server so I guess you already changed the NPC line in const.lua to make it work. PS: There is a bug on 8.6 Client and Demon Oak Quest I shall let you know if I get to fix it.
 

threat

New Member
Joined
Jun 28, 2011
Messages
15
Best answers
0
Reaction score
17
Remember everytime you change a piece of code of an element of src folder you will need to re-compile in order for it to work. I'm going to attach my const.lua to play in custom 8.6 servers this shall show you every message in-game.
Just search for line #170 and copy paste or change manually up to you! GL!

Code:
MessageModes = {
  None                    = 0,
  Say                     = 1,
  Whisper                 = 2,
  Yell                    = 3,
  PrivateFrom             = 4,
  PrivateTo               = 5,
  ChannelManagement       = 6,
  Channel                 = 7,
  ChannelHighlight        = 8,
  Red                  = 9,
  NpcFrom                 = 10,
  NpcTo                   = 11,
  GamemasterBroadcast     = 12,
  GamemasterChannel       = 13,
  GamemasterPrivateFrom   = 14,
  GamemasterPrivateTo     = 15,
  Login                   = 16,
  Warning                 = 17,
  Game                    = 18,
  Failure                 = 19,
  Look                    = 20,
  DamageDealed            = 21,
  DamageReceived          = 22,
  Heal                    = 23,
  Exp                     = 24,
  DamageOthers            = 25,
  HealOthers              = 26,
  ExpOthers               = 27,
  Status                  = 28,
  Loot                    = 29,
  TradeNpc                = 30,
  Guild                   = 31,
  PartyManagement         = 32,
  Party                   = 33,
  BarkLow                 = 34,
  BarkLoud                = 35,
  Report                  = 36,
  HotkeyUse               = 37,
  TutorialHint            = 38,
  Thankyou                = 39,
  Market                  = 40,
  BeyondLast              = 41,
  MonsterYell             = 42,
  MonsterSay              = 43,
  Spell                    = 44,
  Report                     = 46,
  RVRChannel              = 47,
  RVRAnswer               = 48,
  RVRContinue             = 49,
  GameHighlight           = 50,
  NpcFromStartBlock       = 51,
  Last                    = 52,
  Invalid                 = 255,
  Blue                  = 44,
  Red                 = 45,
}
 
OP
eyez

eyez

Member
Joined
Oct 11, 2016
Messages
92
Best answers
0
Reaction score
16
Remember everytime you change a piece of code of an element of src folder you will need to re-compile in order for it to work. I'm going to attach my const.lua to play in custom 8.6 servers this shall show you every message in-game.
Just search for line #170 and copy paste or change manually up to you! GL!

Code:
MessageModes = {
  None                    = 0,
  Say                     = 1,
  Whisper                 = 2,
  Yell                    = 3,
  PrivateFrom             = 4,
  PrivateTo               = 5,
  ChannelManagement       = 6,
  Channel                 = 7,
  ChannelHighlight        = 8,
  Red                  = 9,
  NpcFrom                 = 10,
  NpcTo                   = 11,
  GamemasterBroadcast     = 12,
  GamemasterChannel       = 13,
  GamemasterPrivateFrom   = 14,
  GamemasterPrivateTo     = 15,
  Login                   = 16,
  Warning                 = 17,
  Game                    = 18,
  Failure                 = 19,
  Look                    = 20,
  DamageDealed            = 21,
  DamageReceived          = 22,
  Heal                    = 23,
  Exp                     = 24,
  DamageOthers            = 25,
  HealOthers              = 26,
  ExpOthers               = 27,
  Status                  = 28,
  Loot                    = 29,
  TradeNpc                = 30,
  Guild                   = 31,
  PartyManagement         = 32,
  Party                   = 33,
  BarkLow                 = 34,
  BarkLoud                = 35,
  Report                  = 36,
  HotkeyUse               = 37,
  TutorialHint            = 38,
  Thankyou                = 39,
  Market                  = 40,
  BeyondLast              = 41,
  MonsterYell             = 42,
  MonsterSay              = 43,
  Spell                    = 44,
  Report                     = 46,
  RVRChannel              = 47,
  RVRAnswer               = 48,
  RVRContinue             = 49,
  GameHighlight           = 50,
  NpcFromStartBlock       = 51,
  Last                    = 52,
  Invalid                 = 255,
  Blue                  = 44,
  Red                 = 45,
}

Ty! to save me again!
There is no blue color on chat? Because in your func all is red...

Bot still not work, a lot errors:
Code:
Loaded module 'game_unjustifiedpoints'
ERROR: failed to create widget from style 'NodeImage': 'NodeImage' is not a defined style
Loaded module 'otclient_candybot'
Startup done :]
ERROR: Unable to send extended opcode 1, extended opcodes are not enabled
ERROR: caught a lua call to a bot protected game function, the call was cancelled
stack traceback:
    [C]: ?
    [C]: in function 'cancelAttackAndFollow'
    ...lient-candybot/modules/05-paths/events/smartpath.lua:211: in function '?'
    /otclient-candybot/classes/candylistener.lua:89: in function 'disconnect'
    /otclient-candybot/listeners.lua:99: in function 'disconnectListener'
    /otclient-candybot/listeners.lua:145: in function 'response'
    /otclient-candybot/classes/candymodule.lua:123: in function 'notify'
    /otclient-candybot/modules.lua:152: in function 'notifyChange'
    /otclient-candybot/candybot.lua:229: in function 'changeOption'
    /otclient-candybot/candybot.lua:173: in function </otclient-candybot/candybot.lua:173>
ERROR: caught a lua call to a bot protected game function, the call was cancelled
stack traceback:
    [C]: ?
    [C]: in function 'cancelAttackAndFollow'
    ...lient-candybot/modules/05-paths/events/smartpath.lua:211: in function '?'
    /otclient-candybot/classes/candylistener.lua:89: in function 'disconnect'
    /otclient-candybot/classes/candymodule.lua:202: in function 'disconnectListener'
    /otclient-candybot/classes/candymodule.lua:211: in function 'disconnectListeners'
    /otclient-candybot/listeners.lua:109: in function 'stopListeners'
    ...otclient-candybot/modules/05-paths/paths_handler.lua:56: in function 'stop'
    /otclient-candybot/classes/candymodule.lua:216: in function 'stop'
    /otclient-candybot/modules.lua:158: in function 'stop'
    /otclient-candybot/candybot.lua:145: in function 'enable'
    ...client-candybot/modules/00-bot/events/disablebot.lua:15: in function 'callback'
    /otclient-candybot/events.lua:88: in function 'process'
    /otclient-candybot/events.lua:43: in function </otclient-candybot/events.lua:42>
ERROR: caught a lua call to a bot protected game function, the call was cancelled
stack traceback:
    [C]: ?
    [C]: in function 'cancelAttackAndFollow'
    ...lient-candybot/modules/05-paths/events/smartpath.lua:211: in function '?'
    /otclient-candybot/classes/candylistener.lua:89: in function 'disconnect'
    /otclient-candybot/listeners.lua:99: in function 'disconnectListener'
    /otclient-candybot/listeners.lua:145: in function 'response'
    /otclient-candybot/classes/candymodule.lua:123: in function 'notify'
    /otclient-candybot/listeners.lua:124: in function 'signal'
    ...tclient-candybot/modules/00-bot/events/enablebot.lua:17: in function 'callback'
    /otclient-candybot/events.lua:88: in function 'process'
    /otclient-candybot/events.lua:43: in function </otclient-candybot/events.lua:42>
ERROR: caught a lua call to a bot protected game function, the call was cancelled
stack traceback:
    [C]: ?
    [C]: in function 'talk'
    /otclient-candybot/helper.lua:107: in function 'castSpell'
    ...ient-candybot/modules/01-afk/events/magictrainer.lua:19: in function 'callback'
    /otclient-candybot/events.lua:88: in function 'process'
    /otclient-candybot/events.lua:43: in function </otclient-candybot/events.lua:42>
ERROR: caught a lua call to a bot protected game function, the call was cancelled
stack traceback:
    [C]: ?
    [C]: in function 'useInventoryItem'
    /otclient-candybot/helper.lua:36: in function 'safeUseInventoryItem'
    /otclient-candybot/modules/01-afk/events/eatfood.lua:34: in function 'callback'
    /otclient-candybot/events.lua:88: in function 'process'
    /otclient-candybot/events.lua:43: in function </otclient-candybot/events.lua:42>
ERROR: caught a lua call to a bot protected game function, the call was cancelled
stack traceback:
    [C]: ?
    [C]: in function 'cancelAttackAndFollow'
    ...lient-candybot/modules/05-paths/events/smartpath.lua:211: in function '?'
    /otclient-candybot/classes/candylistener.lua:89: in function 'disconnect'
    /otclient-candybot/classes/candymodule.lua:202: in function 'disconnectListener'
    /otclient-candybot/classes/candymodule.lua:211: in function 'disconnectListeners'
    /otclient-candybot/listeners.lua:109: in function 'stopListeners'
    ...otclient-candybot/modules/05-paths/paths_handler.lua:56: in function 'stop'
    /otclient-candybot/classes/candymodule.lua:216: in function 'stop'
    /otclient-candybot/modules.lua:158: in function 'stop'
    /otclient-candybot/candybot.lua:145: in function 'enable'
    ...client-candybot/modules/00-bot/events/disablebot.lua:15: in function 'callback'
    /otclient-candybot/events.lua:88: in function 'process'
    /otclient-candybot/events.lua:43: in function </otclient-candybot/events.lua:42>
CMakeLists.txt
Code:
# CMAKE_CURRENT_LIST_DIR cmake 2.6 compatibility
if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 6)
    get_filename_component(CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
endif(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 6)

# client options
add_definitions(-DCLIENT)
option(BOT_PROTECTION "Enable bot protection" OFF)
if(BOT_PROTECTION)
    add_definitions(-DBOT_PROTECTION)
    message(STATUS "Bot protection: ON")
else(BOT_PROTECTION)
    message(STATUS "Bot protection: OFF")
endif(BOT_PROTECTION)

set(client_SOURCES ${client_SOURCES}
    # client
    ${CMAKE_CURRENT_LIST_DIR}/const.h
    ${CMAKE_CURRENT_LIST_DIR}/global.h
    ${CMAKE_CURRENT_LIST_DIR}/luafunctions.cpp
    ${CMAKE_CURRENT_LIST_DIR}/client.cpp
    ${CMAKE_CURRENT_LIST_DIR}/client.h

    # core
    ${CMAKE_CURRENT_LIST_DIR}/animatedtext.cpp
    ${CMAKE_CURRENT_LIST_DIR}/animatedtext.h
    ${CMAKE_CURRENT_LIST_DIR}/animator.h
    ${CMAKE_CURRENT_LIST_DIR}/animator.cpp
    ${CMAKE_CURRENT_LIST_DIR}/container.cpp
    ${CMAKE_CURRENT_LIST_DIR}/container.h
    ${CMAKE_CURRENT_LIST_DIR}/creature.cpp
    ${CMAKE_CURRENT_LIST_DIR}/creature.h
    ${CMAKE_CURRENT_LIST_DIR}/declarations.h
    ${CMAKE_CURRENT_LIST_DIR}/effect.cpp
    ${CMAKE_CURRENT_LIST_DIR}/effect.h
    ${CMAKE_CURRENT_LIST_DIR}/game.cpp
    ${CMAKE_CURRENT_LIST_DIR}/game.h
    ${CMAKE_CURRENT_LIST_DIR}/shadermanager.cpp
    ${CMAKE_CURRENT_LIST_DIR}/shadermanager.h
    ${CMAKE_CURRENT_LIST_DIR}/item.cpp
    ${CMAKE_CURRENT_LIST_DIR}/item.h
    ${CMAKE_CURRENT_LIST_DIR}/localplayer.cpp
    ${CMAKE_CURRENT_LIST_DIR}/localplayer.h
    ${CMAKE_CURRENT_LIST_DIR}/map.cpp
    ${CMAKE_CURRENT_LIST_DIR}/map.h
    ${CMAKE_CURRENT_LIST_DIR}/mapio.cpp
    ${CMAKE_CURRENT_LIST_DIR}/mapview.cpp
    ${CMAKE_CURRENT_LIST_DIR}/mapview.h
    ${CMAKE_CURRENT_LIST_DIR}/minimap.cpp
    ${CMAKE_CURRENT_LIST_DIR}/minimap.h
    ${CMAKE_CURRENT_LIST_DIR}/lightview.cpp
    ${CMAKE_CURRENT_LIST_DIR}/lightview.h
    ${CMAKE_CURRENT_LIST_DIR}/missile.cpp
    ${CMAKE_CURRENT_LIST_DIR}/missile.h
    ${CMAKE_CURRENT_LIST_DIR}/outfit.cpp
    ${CMAKE_CURRENT_LIST_DIR}/outfit.h
    ${CMAKE_CURRENT_LIST_DIR}/player.cpp
    ${CMAKE_CURRENT_LIST_DIR}/player.h
    ${CMAKE_CURRENT_LIST_DIR}/spritemanager.cpp
    ${CMAKE_CURRENT_LIST_DIR}/spritemanager.h
    ${CMAKE_CURRENT_LIST_DIR}/statictext.cpp
    ${CMAKE_CURRENT_LIST_DIR}/statictext.h
    ${CMAKE_CURRENT_LIST_DIR}/thing.cpp
    ${CMAKE_CURRENT_LIST_DIR}/thing.h
    ${CMAKE_CURRENT_LIST_DIR}/thingtypemanager.cpp
    ${CMAKE_CURRENT_LIST_DIR}/thingtypemanager.h
    ${CMAKE_CURRENT_LIST_DIR}/thingtype.cpp
    ${CMAKE_CURRENT_LIST_DIR}/thingtype.h
    ${CMAKE_CURRENT_LIST_DIR}/itemtype.cpp
    ${CMAKE_CURRENT_LIST_DIR}/itemtype.h
    ${CMAKE_CURRENT_LIST_DIR}/tile.cpp
    ${CMAKE_CURRENT_LIST_DIR}/tile.h
    ${CMAKE_CURRENT_LIST_DIR}/houses.cpp
    ${CMAKE_CURRENT_LIST_DIR}/houses.h
    ${CMAKE_CURRENT_LIST_DIR}/towns.cpp
    ${CMAKE_CURRENT_LIST_DIR}/towns.h
    ${CMAKE_CURRENT_LIST_DIR}/creatures.cpp
    ${CMAKE_CURRENT_LIST_DIR}/creatures.h

    # lua
    ${CMAKE_CURRENT_LIST_DIR}/luavaluecasts.cpp
    ${CMAKE_CURRENT_LIST_DIR}/luavaluecasts.h

    # net
    ${CMAKE_CURRENT_LIST_DIR}/protocolcodes.cpp
    ${CMAKE_CURRENT_LIST_DIR}/protocolcodes.h
    ${CMAKE_CURRENT_LIST_DIR}/protocolgame.cpp
    ${CMAKE_CURRENT_LIST_DIR}/protocolgame.h
    ${CMAKE_CURRENT_LIST_DIR}/protocolgameparse.cpp
    ${CMAKE_CURRENT_LIST_DIR}/protocolgamesend.cpp

    # ui
    ${CMAKE_CURRENT_LIST_DIR}/uicreature.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uicreature.h
    ${CMAKE_CURRENT_LIST_DIR}/uiitem.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uiitem.h
    ${CMAKE_CURRENT_LIST_DIR}/uimap.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uimap.h
    ${CMAKE_CURRENT_LIST_DIR}/uiminimap.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uiminimap.h
    ${CMAKE_CURRENT_LIST_DIR}/uiprogressrect.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uiprogressrect.h
    ${CMAKE_CURRENT_LIST_DIR}/uimapanchorlayout.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uimapanchorlayout.h
    ${CMAKE_CURRENT_LIST_DIR}/uisprite.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uisprite.h

    # util
    ${CMAKE_CURRENT_LIST_DIR}/position.h
)

set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/luafunctions.cpp
                            PROPERTIES LANGUAGE CXX COMPILE_FLAGS "-g0 -Os")
 

threat

New Member
Joined
Jun 28, 2011
Messages
15
Best answers
0
Reaction score
17
This is weird I'm trying to replicate the bot thing but nothing at all the only reason yours isn't working is because your exec file is still bot protected... I'm sorry to ask this or tell you this again but you did the following:
#PlEASE DO IT IN A CLEAN / FRESH ENVIRONMENT
#1 Downloaded a new source.
git clone git://github.com/edubart/otclient.git
#2 Go into de Dir
cd otclient

#3 Modify the CMAKE file in Source folder like I said before.
/src/client/CMakeLists.txt

#4 If playing 8.6 (or just do it for the sake of it)
modify the line the file src/client/protocolcodes.cpp <I guess you did that already>
Old content with this:
line #122 messageModesMap[Otc::MessageNpcFromStartBlock] = 5;
line# 96 messageModesMap[Otc::MessageNpcFromStartBlock] = 5;
for 10.36 or less you will need to change the NPC line I haven't work in a decent fix for that
#5 Create the build dir and cmake
mkdir build && cd build
cmake ..
#6 Compile
make
#7 Add the changes in the const.lua file like mentioned before then HF :D
./otclient
About the colors is up to you how you play with it let's say that my fix on that is a bit messy :) I just wanted to stop the errors and get the messages in-game you can play with it yourself in order to get em to work the way you like.

Attaching how your CMakeLists.txt file should look like.

Code:
# client options
add_definitions(-DCLIENT)
option(BOT_PROTECTION "Enable bot protection" OFF)
if(BOT_PROTECTION)
    add_definitions(-DBOT_PROTECTION)
    message(STATUS "Bot protection: ON")
else(BOT_PROTECTION)
    message(STATUS "Bot protection: OFF")
endif(BOT_PROTECTION)
 
Last edited:

maikons

Member
Joined
Aug 1, 2015
Messages
199
Best answers
0
Reaction score
13
This is weird I'm trying to replicate the bot thing but nothing at all the only reason yours isn't working is because your exec file is still bot protected... I'm sorry to ask this or tell you this again but you did the following:
#PlEASE DO IT IN A CLEAN / FRESH ENVIRONMENT
#1 Downloaded a new source.
git clone git://github.com/edubart/otclient.git
#2 Go into de Dir
cd otclient

#3 Modify the CMAKE file in Source folder like I said before.
/src/client/CMakeLists.txt

#4 If playing 8.6 (or just do it for the sake of it)
modify the line the file src/client/protocolcodes.cpp <I guess you did that already>
Old content with this:
line #122 messageModesMap[Otc::MessageNpcFromStartBlock] = 5;
line# 96 messageModesMap[Otc::MessageNpcFromStartBlock] = 5;
for 10.36 or less you will need to change the NPC line I haven't work in a decent fix for that
#5 Create the build dir and cmake
mkdir build && cd build
cmake ..
#6 Compile
make
#7 Add the changes in the const.lua file like mentioned before then HF :D
./otclient
About the colors is up to you how you play with it let's say that my fix on that is a bit messy :) I just wanted to stop the errors and get the messages in-game you can play with it yourself in order to get em to work the way you like.

Attaching how your CMakeLists.txt file should look like.

Code:
# client options
add_definitions(-DCLIENT)
option(BOT_PROTECTION "Enable bot protection" OFF)
if(BOT_PROTECTION)
    add_definitions(-DBOT_PROTECTION)
    message(STATUS "Bot protection: ON")
else(BOT_PROTECTION)
    message(STATUS "Bot protection: OFF")
endif(BOT_PROTECTION)
I dont understand why we need to download a new source otclient
I for example, made some changes that i dont remember
There is not other way to recompile it right with no re-dowload?
 

threat

New Member
Joined
Jun 28, 2011
Messages
15
Best answers
0
Reaction score
17
I dont understand why we need to download a new source otclient
I for example, made some changes that i dont remember
There is not other way to recompile it right with no re-dowload?
No you don't need to download a new source I asked him to do that in this special scenario since he keeps having the same issue and as I tested and told him before the only way to fix that is changing the bot protection line then recompiling it but It looks like the behaviour of his build won't change so that's why I asked him to get a fresh source and everything..
 
OP
eyez

eyez

Member
Joined
Oct 11, 2016
Messages
92
Best answers
0
Reaction score
16
No you don't need to download a new source I asked him to do that in this special scenario since he keeps having the same issue and as I tested and told him before the only way to fix that is changing the bot protection line then recompiling it but It looks like the behaviour of his build won't change so that's why I asked him to get a fresh source and everything..
Yeah, download a new source and make all steps again made me fix it, ty you a lot for everything
 

threat

New Member
Joined
Jun 28, 2011
Messages
15
Best answers
0
Reaction score
17
Your welcome eyez (PM next time you have any issue with the OTClient sources btw I do have a working cavebot for it if you are interested but you have to combine it with candybot too make it "complete").

--- Also maikons you can do the whole process in a new fresh environment and unless you changed something in your src folder and you do not remember you can compile the otclient with your new source and files with all the changes I mentioned and paste it in your old folder and It should work like the other compiled build just pasting it in the old folder :) ...
I dont understand why we need to download a new source otclient
I for example, made some changes that i dont remember
There is not other way to recompile it right with no re-dowload?
 

caquinha

Member
Joined
Aug 8, 2016
Messages
208
Best answers
0
Reaction score
22
Your welcome eyez (PM next time you have any issue with the OTClient sources btw I do have a working cavebot for it if you are interested but you have to combine it with candybot too make it "complete").

--- Also maikons you can do the whole process in a new fresh environment and unless you changed something in your src folder and you do not remember you can compile the otclient with your new source and files with all the changes I mentioned and paste it in your old folder and It should work like the other compiled build just pasting it in the old folder :) ...
Post here your cave bot bro! Everybody just use normal client because elfbot
If this cavebot is good, no one will use tibia client anymore
 

threat

New Member
Joined
Jun 28, 2011
Messages
15
Best answers
0
Reaction score
17
I've been working on some stuff for 7.4-7.7x OTClient but I will do it after this weekend do not worry. :)
 
Top