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

Search results

  1. margoh

    Bar life and mana

    Ehh, have you ever tried to do it? It won't give you 100% the same color, not even close to it. If you want to recreate the Tibia ui on OTC, this is the way to make it 100% like on real tibia.
  2. margoh

    Bar life and mana

    Because he wants it like real Tibia, not similar to real Tibia.
  3. margoh

    Bar life and mana

    Extract Tibia.pic images. Crop health/mana/empty bar as single graphics or how you want it. Create function that will calculate how to crop image to percentage of current health/mana. Done.
  4. margoh

    [OTClient] Remove internal "ip changer"

    client_entergame/entergame.lua inside function EnterGame.init() paste this before enterGame:hide(): EnterGame.setUniqueServer("127.0.0.1", 7171, 1076) Ofc, change values to yours.
  5. margoh

    Spell list window OTC - Set the width

    Line 23. Put it there.
  6. margoh

    Spell list window OTC - Set the width

    You can set text-wrap: true and that should do the work.
  7. margoh

    Making second weapon slot

    Open terminal (ctrl + t).
  8. margoh

    How can remove skills Club, sword, axe from client

    I told you what you have to do.
  9. margoh

    How can remove skills Club, sword, axe from client

    Inside skills.otui
  10. margoh

    How can remove skills Club, sword, axe from client

    Just for those skills that you don't need add height: 0 margin-bottom: 0 Example: SkillButton id: skillId3 height: 0 margin-bottom: 0 SkillNameLabel !text: tr('Axe Fighting') SkillValueLabel SkillPercentPanel
  11. margoh

    Do the fast push game.cpp

    Probably because of this: uint32_t delayTime = g_config.getNumber(ConfigManager::PUSH_CREATURE_DELAY); You have delay set in config.
  12. margoh

    Do the fast push game.cpp

    If you want only pushing then reverse changes and inside game.cpp function Game::playerMoveCreature find: SchedulerTask* task = createSchedulerTask(std::max((int32_t)SCHEDULER_MINTICKS, player->getStepDuration()), And change player->getStepDuration() to 1. Not tested but should do the work.
  13. margoh

    Do the fast push game.cpp

    You need to look inside creature.cpp for void Creature::onCreatureMove: //diagonal extra cost lastStepCost = 3; And for int64_t Creature::getStepDuration(Direction dir) const: stepDuration *= 3; Change them to 1.
  14. margoh

    Making second weapon slot

    Coordinates can be whatever - just tested it. They are needed for item dragging to slots to work. Go check game_interface/widgets/uiitem.lua.
  15. margoh

    Making second weapon slot

    Of course it is possible.
  16. margoh

    Simulate walking creatures

    Instead of changing he can duplicate the functions Creature::drawOutfit inside creature.cpp and UICreature::drawSelf inside uicreature.cpp and then change duplicated Creature::drawOutfit. So he will be able to call function which he needs at a time - animated or static.
  17. margoh

    Magic Effect 'move' with player?

    If you want to make it sticked to character, you need to draw it in void Creature::internalDrawOutfit in creature.cpp file.
  18. margoh

    [Question] stand and chase mode

    Hmm, I think the best way would be to do it onKeyPressDown (don't know what was the correct callback), so if you press the arrow/wsad keys it will change it to standMode. Also, it would be nice to have a trigger that checks if target is near us, so we could avoid waves and still be able to chase...
  19. margoh

    OTClient Trying to setup single server & protocol

    No idea why it is not working. Maybe try adding this? EnterGame.setDefaultServer("54.38.166.10", 7171, 772) Before enterGame:hide()
  20. margoh

    OTClient Trying to setup single server & protocol

    Bring back origin files, delete file from mods and then It works perfectly for me.
Back
Top