• 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!

TibiaCore 7.4 TFS 1.2 same Nostalrius project.

House beds doesn't seem to regenerate mana for players when sleeping in them?
 
House beds doesn't seem to regenerate mana for players when sleeping in them?
yes but very little, you have to change the time in beds.cpp
C++:
void BedItem::regeneratePlayer(Player* player) const
{
    const uint32_t sleptTime = time(nullptr) - sleepStart;
    Condition* condition = player->getCondition(CONDITION_REGENERATION, CONDITIONID_DEFAULT);
    if (condition) {
        uint32_t regen;
        if (condition->getTicks() != -1) {
            regen = std::min<int32_t>((condition->getTicks() / 1000), sleptTime) / 30; // sleptTime / 5;
            const int32_t newRegenTicks = condition->getTicks() - (regen * 30000);
            if (newRegenTicks <= 0) {
                player->removeCondition(condition);
            } else {
                condition->setTicks(newRegenTicks);
            }
        } else {
            regen = sleptTime / 30; // sleptTime / 5;
        }
        player->changeHealth(regen, false);
        player->changeMana(regen);
    }
    const int32_t soulRegen = sleptTime / (60 * 15);
    player->changeSoul(soulRegen);
}
 
can u guys share spr 772 for this distro ? mines does not work the ones hat comes with this either
it says connection error by client side dont know if might be this
Lua:
A server developed by Roberto Preguica
Visit our forum for updates, support, and resources: http://otland.net/.
Re-edited by Roberto Carlos Preguica, otserv only runs on Tibia 7.4!
Does not use client 7.72 because it generates bug with invisibility of gamemaster and warlock.

>> Loading config
>> Establishing database connection...WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
 MySQL 8.0.34
>> Running database manager
WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
> No tables were optimized.
>> Loading vocations
>> Loading items
>> Loading script systems
>> Loading monsters
>> Checking world type... PVP
>> Loading map
> Map size: 65000x65000.
> Map loading time: 3.718 seconds.
>> Loading npcs...
> Loaded house items in: 0.008 s
>> Initializing gamestate
>>> Houses Auctions: Done!
>> Loaded all modules, server starting up...
>> TibiaCore Server Online!

>>> Continue Top Week Event.
 
Last edited:
can u guys share spr 772 for this distro ? mines does not work the ones hat comes with this either
it says connection error by client side dont know if might be this
Lua:
A server developed by Roberto Preguica
Visit our forum for updates, support, and resources: http://otland.net/.
Re-edited by Roberto Carlos Preguica, otserv only runs on Tibia 7.4!
Does not use client 7.72 because it generates bug with invisibility of gamemaster and warlock.

>> Loading config
>> Establishing database connection...WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
 MySQL 8.0.34
>> Running database manager
WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
> No tables were optimized.
>> Loading vocations
>> Loading items
>> Loading script systems
>> Loading monsters
>> Checking world type... PVP
>> Loading map
> Map size: 65000x65000.
> Map loading time: 3.718 seconds.
>> Loading npcs...
> Loaded house items in: 0.008 s
>> Initializing gamestate
>>> Houses Auctions: Done!
>> Loaded all modules, server starting up...
>> TibiaCore Server Online!

>>> Continue Top Week Event.

772.zip
 
yes but very little, you have to change the time in beds.cpp
C++:
void BedItem::regeneratePlayer(Player* player) const
{
    const uint32_t sleptTime = time(nullptr) - sleepStart;
    Condition* condition = player->getCondition(CONDITION_REGENERATION, CONDITIONID_DEFAULT);
    if (condition) {
        uint32_t regen;
        if (condition->getTicks() != -1) {
            regen = std::min<int32_t>((condition->getTicks() / 1000), sleptTime) / 30; // sleptTime / 5;
            const int32_t newRegenTicks = condition->getTicks() - (regen * 30000);
            if (newRegenTicks <= 0) {
                player->removeCondition(condition);
            } else {
                condition->setTicks(newRegenTicks);
            }
        } else {
            regen = sleptTime / 30; // sleptTime / 5;
        }
        player->changeHealth(regen, false);
        player->changeMana(regen);
    }
    const int32_t soulRegen = sleptTime / (60 * 15);
    player->changeSoul(soulRegen);
}

I waited for some hours and didn't regen 1 single Mana Point?
 
Last edited:
bro, a question, do you know how to put the stackable runes?
Follow the same example as the scrolls items that i put .dat and follow the id, and in items.srv copy the attributes.
 
Another issue is that when spectators watch a live cast, most of the times they do not get the "Live Channel" and therefore cannot talk to the caster?

Also, when starting to watch a Cast, the player is invisible ... and must use a stair/ladder or somehow change floor in order to appear lol.
Else monsters and other things are invisible too :D
 
Another issue is that when spectators watch a live cast, most of the times they do not get the "Live Channel" and therefore cannot talk to the caster?

Also, when starting to watch a Cast, the player is invisible ... and must use a stair/ladder or somehow change floor in order to appear lol.
Else monsters and other things are invisible too :D
I believe it is a problem with a version higher than 772 or with the otclient module.
I adjusted this cast system for the client like tibianic.dll
 
I believe it is a problem with a version higher than 772 or with the otclient module.
I adjusted this cast system for the client like tibianic.dll
Version 7.72 being used here (otclient). Oh, so it is only working with tibianic.dll properly?
 
do you have a working !shop command for znote possibly?
Is this just to pick up the item in shop?
if you just transfer shop.lua to talkaction and change some entries, just change the name of the table and the column.
queries with db are universal regardless of the type of website.
 
Is it possible to "repeat" tasks somehow?
Does task kills share with party members?

Is it possible to take multiple tasks at once?
 
how do you change the timer for how often frags decrease? it is not in the config?
 
Is it possible to "repeat" tasks somehow?
Does task kills share with party members?

Is it possible to take multiple tasks at once?
C++:
QuestValue(506)>= 1 <repeat here! ,"scorpion" -> "You have already done this task 1 times. Ask for a different one."

In order for the party to share the target count, it is necessary change in src related to lastkill.
how do you change the timer for how often frags decrease? it is not in the config?
-- Skull System?
banLength = 7 * 24 * 60 * 60
whiteSkullTime = 15 * 60
redSkullTime = 15 * 24 * 60 * 60

killsDayRedSkull = 3
killsDayBanishment = 5

killsWeekRedSkull = 6
killsWeekBanishment = 8

killsMonthRedSkull = 12
killsMonthBanishment = 16

... pzLocked = 60000
 
C++:
QuestValue(506)>= 1 <repeat here! ,"scorpion" -> "You have already done this task 1 times. Ask for a different one."

In order for the party to share the target count, it is necessary change in src related to lastkill.

-- Skull System?
banLength = 7 * 24 * 60 * 60
whiteSkullTime = 15 * 60
redSkullTime = 15 * 24 * 60 * 60

killsDayRedSkull = 3
killsDayBanishment = 5

killsWeekRedSkull = 6
killsWeekBanishment = 8

killsMonthRedSkull = 12
killsMonthBanishment = 16

... pzLocked = 60000

Yes, but I mean which one sets the time to lose 1 frag?
 
Back
Top