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

    TFS 0.X Translating the Crashing Log

    list = @0x100: <error reading variable> That's not good. Looking at the sources again here, list is the return from getSpectators(); which was the same core issue from your original post. Some change you've made is interfering with getSpectators(), assuming you've made engine changes as I doubt...
  2. jo3bingham

    TFS 0.X Translating the Crashing Log

    The gdb log tells you what happened: Program terminated with signal SIGSEGV, Segmentation fault. A segmentation fault can happen when dereferencing a null-pointer, which looks to be the case here: #0 0x000000000047a95d in Game::addCreatureHealth (this=this@entry=0x8ac540 <g_game>, list=...
  3. jo3bingham

    How To Inject Your Own DLL Using OllyDBG

    Most x86 calling conventions use a right-to-left parameter stack order. That means the last argument of a function is pushed onto the stack first, and the first argument is pushed onto the stack last. LoadLibrary has one parameter, the library filename, so you push the library filename onto the...
  4. jo3bingham

    Lua Problem attempt to perform arithmetic on a string value

    My apologies, I didn’t realize there was a parameter ‘type’. Just rename the parameter to something else and rename any uses of that parameter to the new name and try it again.
  5. jo3bingham

    Lua Problem attempt to perform arithmetic on a string value

    In rewardchest_boss.lua, change your onStatsChange() method to this and then show me the output. function onStatsChange(cid, attacker, type, combat, value) if isMonster(cid) and type == STATSCHANGE_HEALTHLOSS and isPlayer(attacker) then local boss =...
  6. jo3bingham

    Promotion doll bug.

    You can use the code tags (remove *s): [*CODE][*/CODE] What does your setPlayerPromotionLevel() function do exactly? My initial guess is that either the new vocation isn't being saved to the database when the player logs out, or it's being overwritten when the player logs in.
  7. jo3bingham

    Lua Problem attempt to perform arithmetic on a string value

    Ok, so REWARDCHEST.formula.hit isn't a string so value must be. Use print(type(value)) to confirm it's the variable that's actually a string. Did you write this reward chest system, or are you using a public one? You might want to look at the code that calls onStatsChange and see if value is...
  8. jo3bingham

    Lua Problem attempt to perform arithmetic on a string value

    Your error is happening on this line: setPlayerStorageValue(attacker, boss.storage, getPlayerStorageValue(attacker, boss.storage) + math.ceil((value / REWARDCHEST.formula.hit))) My guess is, more specifically, here: (value / REWARDCHEST.formula.hit) value shouldn't be a string, so it's more...
  9. jo3bingham

    TFS 0.X where i can get work tfs 0.4?

    The problem is that Debian 9 comes with MariaDB instead of MySQL, which you've already pointed out. All you need to do is either install libmysqlclient-dev or modify your TFS sources to target MariaDB instead.
  10. jo3bingham

    OTClient Column Alignment

    The main style for MiniWindows look to be here. If you change the text-align there, I would think it would work. However, this would change it for all MiniWindows (VIP, Containers, etc.). If changing it there does work, then the next step is figuring out how to apply it to only the Skills window.
  11. jo3bingham

    OTClient Column Alignment

    I've never looked at OTClient code so I may be wrong, but I think if you add 'text-align: center' to the Skills MiniWindow settings you may get your desired results. My apologies if this is wrong, however.
  12. jo3bingham

    Windows Tibia 11 - Can connect to character list, but not gameworld!

    I believe that specific client version expects "externaladdressunprotected" and "externaladdressprotected" in the world array. Since it looks like you want to support 11.00-11.49 then your world array should contain all of them: $world = array( "id" => 0, "name" => "RealOTS"...
  13. jo3bingham

    Windows Tibia 11 - Can connect to character list, but not gameworld!

    What client version are you using? From your config it looks like, probably, 11.49; but which subversion? In 11.49.5921 they changed the address and port keys: Tibia client 11.49.5921 support by jo3bingham · Pull Request #323 · Znote/ZnoteAAC
  14. jo3bingham

    TFS 1.X+ How to track how he typed spell with doCreatureSay

    Sorry, I should have read your comment more closely. Not sure why it’s not working for OP. I’ll wait for OP to reply to confirm what exactly they want before continuing.
  15. jo3bingham

    TFS 1.X+ How to track how he typed spell with doCreatureSay

    I haven’t tested it, but, walking the call tree for spells, it looks like you can remove this line to do what you want: otland/forgottenserver
  16. jo3bingham

    Trying to combine skills enums.h gives a lot of error

    Did you read my whole post? That error isn’t from that enum, it’s from the switch in tools.cpp (if you’re using Visual Studio you can double-click on the error in the Output window and it will take you to the code that the error came from). I’ll put what I said in my last post here again so you...
  17. jo3bingham

    Trying to combine skills enums.h gives a lot of error

    In your original post, just remove “SKILL_SWORD = 2,” and leave “SKILL_SWORD = SKILL_AXE,”. “SKILL_SWORD = SKILL_AXE,” has to come after “SKILL_AXE = 3,”, otherwise the compiler can’t find SKILL_AXE and will fail. Also, you’ll get an error in tools.cpp->getSkillName() because SKILL_SWORD and...
  18. jo3bingham

    Trying to combine skills enums.h gives a lot of error

    First of all, you have SKILL_SWORD defined twice; remove one of them. Second, we can‘t help you with compile errors if you don’t give us the compile errors.
  19. jo3bingham

    Segmentation Fault

    Looks like you’re suffering from this: prevent crafted packets from inviting yourself to a party by Sickness-chan · Pull Request #2469 · otland/forgottenserver
  20. jo3bingham

    Lua TFS 1.2 Removing conditions

    There’s actually no need to call player:getCondition here, as player:removeCondition will do that check anyway.
Back
Top