• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. R

    C++ Party shared experience issue

    Oh, thanks man! I've discovered something, there's an onGainExperience function in creature.cpp, there it divides the experience gained by 2. If you look at the screenshots of the last changes I made to the code, when 1 player doesn't attack and he's in a party with shared experience, he ends up...
  2. R

    Boosted Monster Gesior

    Let's go in parts. Change this function global.onStartup() addEvent(chooseBoostedMonsters, 0) local randomMonster = math.random(#boostedMonstersList) db.query("UPDATE `server_config` SET `value` = " .. randomMonster .. " WHERE `config` = 'boost_monster_name';") return true end...
  3. R

    Boosted Monster Gesior

    Note that in this script you are only updating the table with the monster's number. function global.onStartup() addEvent(chooseBoostedMonsters, 0) local randomMonster = math.random(#boostedMonstersList) db.query("UPDATE `server_config` SET `value` = " .. randomMonster .. " WHERE...
  4. R

    C++ Party shared experience issue

    There is only lua file related share. File experienceshare.lua function onSay(player, words, param) local party = player:getParty() if not party then player:sendCancelMessage("You are not part of a party.") return false end if party:getLeader() ~= player...
  5. R

    Boosted Monster Gesior

    Right, let's go in parts. Perform this select that fetches the information from the monster's image directory in your database and paste the result into the answer. SELECT `value` FROM `server_config` WHERE `config` = 'boost_monster_url' In your project, navigate to the folder containing the...
  6. R

    C++ Party shared experience issue

    I understand your concern and I'm aware of this scenario. But it's not my focus at the moment, because even if a member or leader helps to kill only 20% of the monster, they won't receive the experience divided correctly. As for the AFK up, there are other validations that will make the process...
  7. R

    Boosted Monster Gesior

    Below $urlmonster = $urlmonsterquery["value"] add var_dump($urlmonster); this will print the value of the $urlmonster variable in array format (string). Check that this is correct, so that it can be used in the html element, which will fetch the image from the directory you sent. Example...
  8. R

    Boosted Monster Gesior

    Can you provide an image of the image directory?
  9. R

    Boosted Monster Gesior

    Can you provide an example of how the image is saved in your database and also the directory it is in? Please note: The file extension is important, please show it.
  10. R

    C++ Party shared experience issue

    Hello, with this code. Both attacked Only the leader attacked Only the member attacked Even if you force it to be equal, the same thing happens. void Party::shareExperience(uint64_t experience) { uint64_t shareExperience = experience; shareExperience = (experience*1.0)...
  11. R

    C++ Party shared experience issue

    Well, here we go. I think something was missing from the explanation. The split experience is CORRECT when All members attack and kill the monster together. The split experience is INCORRECT when Only one member kills 100% of the monster. Only leader kills 100% of the monster. When 1...
  12. R

    C++ Party shared experience issue

    Hello, my Party::shareExperience function void Party::shareExperience(uint64_t experience) { uint64_t shareExperience = static_cast<uint64_t>(std::ceil((static_cast<double>(experience) * (extraExpRate + 1)) / (memberList.size() + 1))); for (Player* member : memberList) {...
  13. R

    C++ Party shared experience issue

    Hello Matheus, I followed the instructions recommended in these topics that you gave me, but the error remains, at first, in the topics it is something referring to the "combat activity" of the party members, but my problem is not this, my problem is in relation to the damage that each member...
  14. R

    [Brazil] [7.7] Tibinha YurOts

    Good server, he's fantastic! I'll check it out later.
  15. R

    C++ Party shared experience issue

    Hello everyone, First of all, I have some programming experience and familiarity with it. However, this is my first encounter with Tibia's code, and it's also a different programming language than the one I'm used to. I'm facing an issue in my C++ code related to calculating shared experience...
Back
Top