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

    Increase magic level limit

    Since you stated in first post that you use TFS 1.2 then manaspent are saved in uint64_t not the uint32_t one already. It also depends on "manamultiplier" which max magic level you can achieve, for 140 it should be around 1.315, if you use 1.1 then it's impossible that you get maximum magic...
  2. M

    OTC allows normal bots?

    You can't use bots that are made for cipsoft client with otclient because they have different interface. Funfact: even if you have original 8.6 tibia client sources and you compile them, bots probably will not be working because you'll most likely use different compiler version or libraries...
  3. M

    How do people pack .spr .dat into .exe

    The real tibia client is normal standalone executable so I don't know what you are saying. About moleboxes, etc packers I written some years unpacker for those client which can't be blocked because it just takes the files from the memory and client have to read these files anyway right? So I...
  4. M

    Linux GDB backtrace report - internalMoveCreature

    if (!toTile && !player->isAccessPlayer()) { return RETURNVALUE_NOTPOSSIBLE; } So a bit of lecturing: if creature is not player you will always get crash at this point + if player have access it'll pass to the 2nd function with tile not existing = crash at queryadd
  5. M

    MoveEvent [Events][TFS 1.X] Runes backpack Medivia-styled

    Here are a little better script with fixed pushing items directly on container and support multiple items: local backpacks = { --backpackid - id of backpack for certain items --items - array of id of items that can be put into backpack -- [backpackid] = {items}, [1987] = {2148, 2152...
  6. M

    C++ items transform into another item after relog

    For some reasons(probably backward compatibility?) the itemid are saved in signed short to database so the values get truncated to 2^15-1 instead of using the whole 2^16-1 value. You can change how the database saving these values by typing this in mysql: ALTER TABLE `player_depotitems` CHANGE...
  7. M

    Znote ACC Paypal not applying points?

    You can have a standard account to receive IPN's from paypal, your config is configured as "http" which means you probably don't have SSL/TLS certificate. Paypal from 2018 don't accept normal "http" IPN url's anymore. IPN Verification Postback to HTTPS - PayPal...
  8. M

    TFS 0.X doCreatureSay causing client assertion

    You said you use client 8.60 but the "SpeakClasses" in the src looks like it was 7.60 because on 8.60 "SPEAK_MONSTER_SAY" must be 19 not 13 and that's the problem, did these src originally was for 8.60 or someone modify them?
  9. M

    TFS 0.X Players with expboost cant login

    function onLogin(cid) local bonus = tonumber(getCreatureStorage(cid, 3024777)) if bonus and getCreatureStorage(cid, 3024776) > 1 and getCreatureStorage(cid, 3024776) < os.time() and bonus > 0 then doPlayerSetExperienceRate(cid, math.abs(getPlayerRates(cid)[8] - bonus))...
  10. M

    Compiling C++ Player Walktrough player in pz ( ERROR )

    "canWalkthrough" function is const function so "this" will be const, you don't want to change any data from object if the function is only to check some conditions right? Anyway using "g_game.updateCreatureImpassable(this); " inside "canWalkThrough" most likely will crash your server because...
  11. M

    TFS 1.X+ spell crashing server? why? 0.4 -> 1.2

    Why changing server to 1.2 if you still use the old scripts without the advantage of oop classes? Even if there's compatibility layer the 0.x tfs functions are deprecated and shouldn't be used unless you know why you need to use them. You have crashes because you can't pass directly oop classes...
  12. M

    Skill problem tfs 1.2

    You have different formula but it doesn't mean it don't meet the condition "(currentskilltries >= nextskilltries)" with your formula for 11 skill you have 54.125 tries and for 12 skill 54.5 after casting it to uint64_t you have in both cases 54 you can remove this part: uint64_t currReqTries =...
  13. M

    Skill problem tfs 1.2

    You have 0.5 multiplier in these vocations and it's wrong the base shouldn't be less than 1.1 the formula for skill "tries" is: uint64_t tries = static_cast<uint64_t>(skillBase[skill] * std::pow(static_cast<double>(skillMultipliers[skill]), level - 11)); so for skill 11 you have: 500.5^0=501=50...
  14. M

    C++ [TFS 1.2]How to create more than 31 item attributes?

    If you want more than 32 attributes(not 31) you should change in item.h uint32_t attributeBits = 0; to: uint64_t attributeBits = 0; In serialization you should have: if (hasAttribute(ITEM_ATTRIBUTE_POOP)) { propWriteStream.write<uint8_t>(ATTR_POOP)...
  15. M

    OTCi - OTClient improvement project

    About OpenGL - yeah it sucks it uses a lot more CPU than Direct3D especially on amd drivers + I'm hate the approach with extensions which in some cases is a lottery to have them. Here's a little example on a client that I'm working whenever I have time(not OTClient): OpenGL - Vulkan - As you...
  16. M

    C++ anyone can edit this cod for me

    std::stoi - is a C++11 function and he probably use some old source which expects C++98 while ignoring C++11 entirely that's why he have this error + if you use std::stoi you should check for exceptions otherwise you can get crash. You can use C function atoi to do the conversion string ->...
  17. M

    TFS 1.X+ Create item talkaction, by client ID

    function onSay(player, words, param) if(not player:getGroup():getAccess()) then return true end if(player:getAccountType() < ACCOUNT_TYPE_GOD) then return false end logCommand(player, words, param) local split = param:split(",") local itemType =...
  18. M

    Ping System (OTHire)

    Tibianic DLL sources use ICMP to check ping which is different than client-server ping-pong. ICMP will not show you the extra latency caused by cpu usage of client/server but rather the minimal ping you can have to the server.
  19. M

    Spell which gives you speed

    Why the hell you think the smaller minb and maxb means faster? Here's how the formula work: int32_t min = (creature->getBaseSpeed() * mina) + minb; int32_t max = (creature->getBaseSpeed() * maxa) + maxb; int32_t speedDelta = uniform_random(min, max); Which means in the example you provide the...
  20. M

    TFS 1.X+ Optimize RAM

    It actually don't change anything at all since it's a table inside the npchandler which is handled by npcsystem when release focus "self.topic[focus] = nil". It was only example of how Lua can leak memory but it's only useful in npcs that uses external tables and don't "free" the variables.
Back
Top