• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. G

    C++ Get premium_points from database thgrough protocolgame network packet

    As always - really helpful. Thanks gesior! Maybe someone will find it usefull: gesior provided pretty much a complete guide how to handle it on server side, to make it full i will provide the client changes (tibianicdll): main.cpp: at top // Premium points global variable uint32_t...
  2. G

    C++ Get premium_points from database thgrough protocolgame network packet

    Hi @Marko999x , Thanks for answer. Im trying to send the network message with a value of current premium_points status from the server to the client (client should request this value from the server on demand). I'm trying to build a Premium Store inside tibia client, and this value is required...
  3. G

    C++ Get premium_points from database thgrough protocolgame network packet

    Hello I'm struggling with a C++ code in TFS1.5 I'm trying to get a information about the current premium_points value from player account in MySQL database. I have created a protocolgame.cpp entry, I know the SQL query (SELECT premium_points FROM accounts WHERE id='ACCOUNT_ID';) but I cannot...
  4. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    Using the onEquip and onDeEquip in revscripts was problematic (the itemId had to be registred etc), so I stole the code from @Infernum (onInventoryUpdate) and with help of AI created something like that: UpgradeSystemInventory = { conditionTracker = {} } function...
  5. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    nvm i just lost 7h because of different script cause all the issues :/ 1747392977 It is working great. I would never come up with it on my own. Thanks a lot Oen :) it will really improve the performance. Im just wondering is there a reason of usage the onItemMoved and onMoveItem instead of...
  6. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    Thanks Oen :) will work with that. That's more then I expected.
  7. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    @oen432 maybe small tip how I can achieve this? use a table and store all the attributes there after onEquip/onLogin? or maybe use PlayerStorageValue in database and store it there?
  8. G

    [TFS 1.3] Item Abilities via Lua V2

    It would be great to get some tips :) if possible
  9. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    Editing this fields will cause a lot of issues I think. There is a lot of stuff which have to be considered (for example if creature stepIn, what with immunities etc). I found that each field should have his own conditions, different then the others. For example, poison should not have...
  10. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    Maybe this system isn't perfect but in my opinion still the best out of others available here on otland. It's clean, in one file, easy to understand by non developers users. I will try to change attributes loop for attributes caching. We can solve all of the issues from this system together on...
  11. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    I was literally doing things like that in 2008 :P just came back to create something in free time. And there is more then few ifs. It is reading every attribute on each eq slot, and many more. I dont know how powerfull TFS is in general. Maybe this is not too much, but I will try to correct it...
  12. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    Something like this, but i don't know. I would not trust doing it that way. Too much "if's" in this onStepIn, the server should have huge cpu performance to handle this with many high level (fast walking) players :/ I think I will leave this and focus on different things. Not efficient at all...
  13. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    It's pretty much copy paste from oen base, but np :) 1747114651 Will try to do it after work. But what if Player gets firefield directly below his legs? Will be onstepin registered then? Need to test it, but thanks for help.
  14. G

    [TFS 1.5] [7.4] RookieOTs

    Yeah, got required changes with WinMerge. Thank you for uploading the whole thing :)
  15. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    Increase mana healing by mana potions: [47] = { name = "Mana Healing", combatType = US_TYPES.CONDITION, condition = CONDITION_ATTRIBUTES, VALUES_PER_LEVEL = 3, format = function(value) return "[Mana Healing +" .. value .. "%%]" end, itemType =...
  16. G

    [TFS 1.5] [7.4] RookieOTs

    I think this is tfs source files, already included in root package from hightsanta.
  17. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    Hi, I'm testing existing attributes and trying to add new ones. I'm struggling with the HEALTHGAIN/MANAGAIN in items. I have it done this way: This is core.lua, the function us_onEquip(cid, iuid, slot) edited: for i = 1, #newBonuses do local value = newBonuses[i]...
  18. G

    [TFS 1.3] Item Abilities via Lua V2

    Hello, I would like to test this scripts, but I have a problem after implementing. When I try to log in to the game (during server start no errors) - I see the errors like this: Lua Script Error: [Scripts Interface] C:\Users\PC\Desktop\OTS\A OTS...
  19. G

    Revscripts(1.3) Custom Equipment {SYC}

    Hello, I'm testing few attributes systems from this forum and found this one, but I have a problem to make it working on my engine (tfs 1.4). I got an error with table nil: Lua Script Error: [Scripts Interface] C:\Users\PC\Desktop\OTS\A OTS Project\data\scripts\customequpiment.lua...
  20. G

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    To see item attributes while trading with a player just duplicate the onLook function in core.lua and edit the start and end of this function to look like this: --Player:onLookInTrade(partner, item, distance) or Player.onLookInTrade(self, partner, item, distance) local LookEventInTrade =...
Back
Top