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

Recent content by esigma94

  1. E

    [MODULE] Account/Character registration through the client.

    I think that account creation procedure is taken out of the client due to some reason, but not just because it is antipattern. Sometimes there is a launcher which allows you to create an account (and use it across owner's apps). Sometimes you can use external service to authenticate. Sometimes...
  2. E

    [MODULE] Account/Character registration through the client.

    What is the reason behind it?
  3. E

    TFS 1.X+ Adding game tiles to 1.4 (downgrade)

    https://github.com/nekiro/TFS-1.4-Downgrades/blob/8.60/src/protocolgame.cpp CTRL + F -> addbyte
  4. E

    Lua Lua error.

  5. E

    TFS 0.X [7.72] Autoloot MOD Issue

    <event type="kill" name="LootEventKIll" event="script"><![CDATA[ domodlib('Loot_func') function onKill(cid, target, lastHit) if isPlayer(cid) and getPlayerStorageValue(cid, info.Storages[1]) <= 0 and isMonster(target) and not isInArray(info.BlockMonsters, getCreatureName(target):lower())...
  6. E

    Compiling Request console with Reload function and server save

    If on linux you can send SIGHUP signal to reload everything: kill -SIGHUP pid https://github.com/otland/forgottenserver/blob/1a90a608f2af57c319f1f5b4f462fdce120e39db/src/signals.cpp#L164
  7. E

    Mac client for OTs?

    I think that 7.4 was the base.
  8. E

    Mac client for OTs?

    That's right, Cipsoft doesn't care if you face any issue with their mac client anyway, it should be playable. If you're looking for an OTS with mac support then you can try Medivia.
  9. E

    C++ storage code

    You got an answer to the topic. You CANNOT use string type variable as a key for storage. You have to use an INTEGER. So you can't use text, you have to use a number. You've got an example of how to use storage in C++ as well (kudos Sarah). Moreover, you continued the topic without any specific...
  10. E

    TFS 1.X+ gdb error crash

    Compile with debug symbols. It would be helpful ;)
  11. E

    C++ storage code

    So you have done something wrong. See here, the code provided by Sarah is working correctly. http://cpp.sh/3wrda
  12. E

    C++ storage code

    If you put above code to your sources then you can call it with monster name as parameter: uint32_t key = getHash(name); player->getStorage(key, value); // or player->getStorage(getHash(name), value); Remember that it returns a number from 16,777,619 to 4,294,967,295 based on the provided...
  13. E

    C++ storage code

    Sure I wouldn't recommend that as well. It consumes all keys starting from 0x1000193, so almost the whole storage keys range spreading its hashes "randomly" (with a huuuuge gaps). I think that he will use at most 500 storages. That's overkill for storages :P It might bring more issues than benefits.
  14. E

    C++ storage code

    As I wrote, I am not aware of what is your idea. If you have multiple modules that have to remember some value and it shouldn't override each other, then yes - you have to assign each mod to a different storage value. If you misspelled in a previous message (mod -> mob), then you have to figure...
  15. E

    C++ storage code

    Not exactly. It should throw you a compilation error due to improper type casting. It has to be a numeric value (as you can see in Sarah's example). You are not able to easily cast a string to a number (also to stay in max key limitation). Rethink your idea. Also, it is not easy to give you a...
Top