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

  1. Z

    Action [TFS 1.X] Simple RPG: Forging/Crafting/Cooking following a recipe without Modal Windows

    A good way to show recipes is: Each recipe have a storage to amount of times crafted(to track, give rewards, give bonus), when the storage is > 0, show the recipe in the book, because u already crafted it and 'discovered' the recipe. Good job!
  2. Z

    TFS 1.X+ [TFS 1.4] No loot drop in severely unfair fights (PvP)

    Hello, In LUA, you can do player:getDamageMap() (assuming that you are using 'player' as variable name, in fact its a 'Creature' UserData), you can check the function here, something like this should work: function onDeath(player, corpse, killer, mostDamageKiller, lastHitUnjustified...
  3. Z

    Lua [TFS 1x +[ NPC Storage

    Hello, I don't know much about NPCs, but i think what you need is to add a check for the storage in this function... Maybe im wrong, just trying to help. Let me know if worked.
  4. Z

    Lua Question about anti mc

    Sorry, i cant test ATM... I suggest you to create a new thread to solve your problem.
  5. Z

    Lua Question about anti mc

    function Creature:onTargetCombat(target) if self and target then if self:isPlayer() and target:isPlayer() then local playersByIp = Game.getPlayersByIPAddress(self:getIp()) local pCount = 0 if #playersByIp > 1 then for i = 1...
  6. Z

    Mount System ideas

    I've all this done, i'll look my files here and share it soon, isn't the best code, maybe i rewrite to share. Looking for more ideas to do a nice Mount System...
  7. Z

    How i can check item.id count?

    Try this: function onUse(player, item, fromPosition, target, toPosition, isHotkey) local targetItemId = 2494 --Demon Armor ID local totalItemCount = player:getItemCount(targetItemId) local equipedItemCount = 0 for slot = CONST_SLOT_HEAD, CONST_SLOT_AMMO do local...
  8. Z

    TFS 1.X+ mount on login

    I know in Player Class you have toggleMount function, but i guess it can't be called in Lua side, im not sure. You can make a C++ function to be able to call from Lua side and call it in onLogin or you call the player->toggleMount(true) when the server perform the login.
  9. Z

    🐲 OTC StoneDrake UI by Shiva - [Free Release]

    Awesome work! Thanks for share!
  10. Z

    OpenTibia Assets Editor

    Looks a amazing Tool! Thanks for share!
  11. Z

    Lua If you are on ITEMID tile you cant push

    Change my code LINE 2 to: if table.contains(blockedIds, fromPosition:getTile():getGround():getId()) then
  12. Z

    Lua If you are on ITEMID tile you cant push

    Hi, This code will block Player be pushed when above the tile ID 106 and 405. In data/events/scripts/player.lua look for Player:onMoveCreature function and above the last return true in the function scope put: local blockedIds = {106, 405} --106 = grass id, 405 = wooden floor id if...
  13. Z

    [OTClient Showoff] Show off your OTClient project/module/UI and other

    Bestiary module, almost finished
  14. Z

    TFS 1.X+ Check Weapon Type When Wielded

    Of course to him. It's his code, i just showed to you...
  15. Z

    TFS 1.X+ Check Weapon Type When Wielded

    🤔 Isn't the best way to do what he wants? Since this isn't merged to TFS and you already published the code i thought wouldn't problem send the branche here...
Back
Top