• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to make your server client 8.61 Tutorial

@kudzu1988
try to replace globalevents+creaturescripts, i dont know which it is but i replace those and it worked i didnt get tibia crash/debug on logining in anymore
 
[02/11/2010 22:31:44] Failed connecting to database - MYSQL ERROR: Can't connect to MySQL server on 'localhost' (10061) (2003)

[02/11/2010 22:31:44] > ERROR: Couldn't estabilish connection to SQL database!
 
I use tfs 0.3.6pl, and when the player creates the initial char items fall to the ground
 
[02/11/2010 22:31:44] Failed connecting to database - MYSQL ERROR: Can't connect to MySQL server on 'localhost' (10061) (2003)

[02/11/2010 22:31:44] > ERROR: Couldn't estabilish connection to SQL database!

That has nothing to do with this.. That's your database fucking up, not the compiling, not the scripts you used from this thread, no.. But your databse
 
That has nothing to do with this.. That's your database fucking up, not the compiling, not the scripts you used from this thread, no.. But your databse

Calm down. I know the world's average level of competence is a little too low for some of us, and clearly there are just too many people in this thread who shouldn't be allowed to host. Ever. But we'll survive.

@Kojiiro This may be caused by the initial character not having enough capacity. If you have an account manager, it might have 0 cap in the database. Fix that if it is.
 
Calm down. I know the world's average level of competence is a little too low for some of us, and clearly there are just too many people in this thread who shouldn't be allowed to host. Ever. But we'll survive.

@Kojiiro This may be caused by the initial character not having enough capacity. If you have an account manager, it might have 0 cap in the database. Fix that if it is.

Yeah, I'm just having a bad day :p
 
Can anyone give me the .exe, my computer cant seem to open the project file.. i dont know why!
 
... add /data/lib/000-constan.lua
Code:
CONST_ME_INSECTS = 68
CONST_ME_DRAGONHEAD = 69
CONST_ME_NONE = 255
CONST_ME_LAST = CONST_ME_DRAGONHEAD
Posible fix -Count runes use and potions.
in game.cpp
Code:
[COLOR=#0000ff]void[/COLOR] Game[COLOR=#008080]::[/COLOR][COLOR=#007788]showHotkeyUseMessage[/COLOR][COLOR=#008000]([/COLOR]Player[COLOR=#000040]*[/COLOR] player, Item[COLOR=#000040]*[/COLOR] item[COLOR=#008000])[/COLOR]
 [COLOR=#008000]{[/COLOR]
        int32_t subType [COLOR=#000080]=[/COLOR] [COLOR=#000040]-[/COLOR][COLOR=#0000dd]1[/COLOR][COLOR=#008080];[/COLOR]
        [COLOR=#0000ff]if[/COLOR][COLOR=#008000]([/COLOR]item[COLOR=#000040]-[/COLOR][COLOR=#000080]>[/COLOR]hasSubType[COLOR=#008000]([/COLOR][COLOR=#008000])[/COLOR] [COLOR=#000040]&&[/COLOR] [COLOR=#000040]![/COLOR]item[COLOR=#000040]-[/COLOR][COLOR=#000080]>[/COLOR]hasCharges[COLOR=#008000]([/COLOR][COLOR=#008000])[/COLOR][COLOR=#008000])[/COLOR]
                subType [COLOR=#000080]=[/COLOR] item[COLOR=#000040]-[/COLOR][COLOR=#000080]>[/COLOR]getSubType[COLOR=#008000]([/COLOR][COLOR=#008000])[/COLOR][COLOR=#008080];[/COLOR]
 
        [COLOR=#0000ff]const[/COLOR] ItemType[COLOR=#000040]&[/COLOR] it [COLOR=#000080]=[/COLOR] Item[COLOR=#008080]::[/COLOR][COLOR=#007788]items[/COLOR][COLOR=#008000][[/COLOR]item[COLOR=#000040]-[/COLOR][COLOR=#000080]>[/COLOR]getID[COLOR=#008000]([/COLOR][COLOR=#008000])[/COLOR][COLOR=#008000]][/COLOR][COLOR=#008080];[/COLOR]
        uint32_t count [COLOR=#000080]=[/COLOR] player[COLOR=#000040]-[/COLOR][COLOR=#000080]>[/COLOR]__getItemTypeCount[COLOR=#008000]([/COLOR]item[COLOR=#000040]-[/COLOR][COLOR=#000080]>[/COLOR]getID[COLOR=#008000]([/COLOR][COLOR=#008000])[/COLOR], subType, [COLOR=#0000ff]false[/COLOR][COLOR=#008000])[/COLOR][COLOR=#008080];[/COLOR]
 
        [COLOR=#0000ff]char[/COLOR] buffer[COLOR=#008000][[/COLOR][COLOR=#0000dd]40[/COLOR] [COLOR=#000040]+[/COLOR] it.[COLOR=#007788]name[/COLOR].[COLOR=#007788]size[/COLOR][COLOR=#008000]([/COLOR][COLOR=#008000])[/COLOR][COLOR=#008000]][/COLOR][COLOR=#008080];[/COLOR]
        [COLOR=#0000ff]if[/COLOR][COLOR=#008000]([/COLOR]count [COLOR=#000080]==[/COLOR] [COLOR=#0000dd]1[/COLOR][COLOR=#008000])[/COLOR]
                [COLOR=#0000dd]sprintf[/COLOR][COLOR=#008000]([/COLOR]buffer, [COLOR=#ff0000]"Using the last %s..."[/COLOR], it.[COLOR=#007788]name[/COLOR].[COLOR=#007788]c_str[/COLOR][COLOR=#008000]([/COLOR][COLOR=#008000])[/COLOR][COLOR=#008000])[/COLOR][COLOR=#008080];[/COLOR]
        [COLOR=#0000ff]else[/COLOR]
                [COLOR=#0000dd]sprintf[/COLOR][COLOR=#008000]([/COLOR]buffer, [COLOR=#ff0000]"Using one of %d %s..."[/COLOR], count, it.[COLOR=#007788]pluralName[/COLOR].[COLOR=#007788]c_str[/COLOR][COLOR=#008000]([/COLOR][COLOR=#008000])[/COLOR][COLOR=#008000])[/COLOR][COLOR=#008080];[/COLOR]
 
        player[COLOR=#000040]-[/COLOR][COLOR=#000080]>[/COLOR]sendTextMessage[COLOR=#008000]([/COLOR]MSG_INFO_DESCR, buffer[COLOR=#008000])[/COLOR][COLOR=#008080];[/COLOR]
 [COLOR=#008000]}[/COLOR]
Remplace For:
Code:
void Game::showHotkeyUseMessage(Player* player, Item* item)
{
    const ItemType& it = Item::items[item->getID()];
    uint32_t count = player->__getItemTypeCount(item->getID(), -1);

    char buffer[40 + it.name.size()];
    if(count == 1)
        sprintf(buffer, "Using the last %s...", it.name.c_str());
    else
        sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str());

    player->sendTextMessage(MSG_INFO_DESCR, buffer);
}

Recomend change to 8.6 (8.61/62 messageclasses error).
 
Last edited:
Checking software version... outdated, please consider updating! ????
 
Because you didn't update message classes in const.h, and in 000-constant.lua
 
Back
Top