• 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. Erexo

    TFS 0.X Buy items with money backpack or bank balance 0.4

    Modifying getMoney/removeMoney from game.cpp should be enough. uint32_t Game::getMoney(const Cylinder* cylinder) { [...] if(const Player* p = dynamic_cast<const Player*>(cylinder)) { moneyCount += p->balance; } return moneyCount; } bool Game::removeMoney(Cylinder*...
  2. Erexo

    0.2.8 mystic spirit; error attempt to call global 'position' a nil value

    The topic is saying 0.2.8, but your script tells us something different :D Try something like that local stand = {x = 581, y = 191, z = 8} local teleportTo = {x = 615, y = 212, z = 7} local altars = { { ["pos"] = {x=581, y=189, z=8}, ["itemid"] = 2335 }, { ["pos"] = {x=583, y=192...
  3. Erexo

    TFS 1.X+ Creating / adding custom new skill

    For me it seems that this new skill is not covered properly in skills module (that is onSkillChange event) You can try to debug LocalPlayer::setSkill method in OTC and check what values are there when skill == Otc::Mining. And for debug purposes you can edit tfs message to something like this...
  4. Erexo

    TFS 1.X+ Creating / adding custom new skill

    in ProtocolGame::parsePlayerSkills change int lastSkill = Otc::Fishing + 1; to int lastSkill = Otc::Mining + 1; In tfs add that mining skill to 0xA1 opcode. look for and update all onSkillChange/onBaseSkillChange lua events.
  5. Erexo

    Annoying things you hear often in your daily basis at work.

    > we want this feature in our app, how long it will take to implement this? > around 14 hours > great, do it and report when it's done >> 2 months later > you remember this feature from before? We don't want it, remove it completely The only thing that keeps me alive is that I'm being paid per hour
  6. Erexo

    Linux screen is terminating TFS 0.4 8.60

    my wild guess is that the propStream is somehow broken, maybe eof. Do some debugging inside Item::readAttr, ie paste that at the beginning. std::cout << attr << std::endl;
  7. Erexo

    Scripter The Rookie Guard Quest [$?]

    Olá Tibiano!
  8. Erexo

    Lua Teach me about spells.

    So let me be very general here. The var structure is generic, it might be used for different purposes and hold different data. The NONE is just "empty" var state, consider it as invalid. Number is mostly used for target id or basically cid (that stands for creature id), the position is, the...
  9. Erexo

    Lua 0.3.7 Checking time for distance effect to reach it's intended destination

    Engine itself doesn't give a damn about the distance, it is not calculated there, this is the client job. Try to follow that doSendDistanceShoot effect in the TFS, you'll probably end at the protocolgame sending the opcode, coordinates and effect id. Client will receive that info and parse it...
  10. Erexo

    Lua Teach me about spells.

    So var in general is just a basic, poorly designed struct called LuaVariant and what it actually "holds" is determined by the context. it is used to pass "complex" data in between lua and the engine, mostly with spells and weapons. The implementation is: struct LuaVariant { LuaVariantType_t...
  11. Erexo

    Programmer Looking for a programmer.

    xD
  12. Erexo

    TFS 1.X+ How to display effect above character

    in pre 1.0 playerpos = getPlayerPosition(pid) doSendMagicEffect({x=playerpos.x, y=playerpos.y-1, z=playerpos.z}, CONST_ME_FIREAREA) or pos= getPlayerPosition(pid) pos.y = pos.y-1 doSendMagicEffect(pos, CONST_ME_FIREAREA)
  13. Erexo

    Scripter looking for someone that can fix my inq

    try something like that function onKill(cid, target, lastHit) local boss = config.brothers[getCreatureName(target)] if(boss) then for x = config.brothers.brothersArea.fromPos.x, config.brothers.brothersArea.toPos.x do for y = config.brothers.brothersArea.fromPos.y...
  14. Erexo

    Spell Area Stun

    because you are applying those conditions only on the target, take a look at your spell. Propably this is what you wanted to achieve: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)...
  15. Erexo

    Shirako ~Mapping Thread~

    Astonishing mapper, his maps are a true masterpiece. The only flaw is that he likes to disappear so you must be really patient
  16. Erexo

    Help Change otclient combat controls like rl tibia

    Just merge combat controls module into inventory module
  17. Erexo

    [Tutorial] Adding more tiles to game window - Updated 7/6/2018

    I was just kidding, the problem you have is that the communication between server and client is broken. Propably you are sending more/less data than the client expects and because of this whole UI went wild.
  18. Erexo

    [Tutorial] Adding more tiles to game window - Updated 7/6/2018

    localplayer.cpp m_skillsLevel.fill(-1); into m_skillsLevel.fill(10); this will fix your skills problem kek. Below you have more -1 integers assigned to fields, change those to 1 and you are basically ready to go
  19. Erexo

    Problem with protocolllogin.lua

    The actual error message would be helpful. Maybe you have defined __LOGIN_SERVER__, and in that case the part of code that you listed is not even compiled. If you can reorder those fields in both server and client, and everything is working as expected, then the problem is somewhere else.
  20. Erexo

    C++ How to peek at server/client messages

    I've digged that topic to the source, and person who was working on this originally said that they just ran sniffer like wireshark and tested what is client sending/receiving durning certain actions. Later on cip introduced flash client so it was easy to look at the code in flash, but since...
Back
Top