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

    TFS 1.X+ Wall torches don't save their stat

    Always have a way to do rs You can try: When server start, the map is loaded with lamp state in .otbm file. You can do a script to execute before server close and search all map for itens with itemID equal to lamp in On/Off state and store the info(position and state) to when server start, get...
  2. Z

    OTClient Yes/No Dialog Window

    I have some ideas, when i get home Will try develop, i'll send the code here later. Thanks to all
  3. Z

    OTClient Yes/No Dialog Window

    In OTC Modules too? I think in onMoveItem functions will be more easier to do, but in onUse itens don't... Maybe onUse call a YesNoWindowTemplate with some ID referencing to specific function like: All in diferent scripts: function onUse(cid, item, fromPosition, itemEx, toPosition) --using...
  4. Z

    OTClient Yes/No Dialog Window

    Thanks. Yeah, therefore i want to do through OTC Modules. Instead i use in Lua onUse function, i can use in OTC Function that call Use or MoveItem to check if player realy want to throw item in dustbin or water. Or as in the example I showed, if the player wants to perform a very important action.
  5. Z

    OTClient Yes/No Dialog Window

    Thanks. I already use this, but how can i make the code "wait" for the dialog result? Later i will change all my systems that works with modal Windows to OTC Modules for better visual, because this i dont did this YES/NO dialog window with modals.
  6. Z

    OTClient Yes/No Dialog Window

    Hello, I need a yes / no dialog window for OTC. I do not know if there is already a model ready, searched a lot and found nothing related. I know the logic behind this code, I believe it works like TFS Events (onMoveItem, onLook, onTurn) which will expect a return true to actually do the action...
  7. Z

    [TFS 1.2]How to enable the reporting system?

    Hello, use this events.xml: <?xml version="1.0" encoding="UTF-8"?> <events> <!-- Creature methods --> <event class="Creature" method="onChangeOutfit" enabled="0" /> <event class="Creature" method="onAreaCombat" enabled="0" /> <event class="Creature" method="onTargetCombat"...
  8. Z

    TFS 1.X+ Question regarding TFS versions

    What is the big differences in 1.2 to 1.3, can i find it somewhere? Im using 1.2, should i move to 1.3? My Lua codes will still working?
  9. Z

    How to block player to pass in a tile where there's a player?

    Try what @Kaspar said. Put this tile and the door over, If dont work, let me know, i can try help you.
  10. Z

    How to block player to pass in a tile where there's a player?

    Version? U mean in protect zone right? Walkthrough players? On ALL tiles or specific tiles?
  11. Z

    TFS 1.X+ [TFS 1.2] Duration of Red and Black Skull

    Multiply operation. 1000 mileseconds * 60 = 1 minute * 60 = 1 hour * 24 = 24 hours or 1 Day, then player Will lose 1 frag in 24 hours
  12. Z

    Linux Considering Linux/Windows for a new project

    I Will watch this thread, i have same doubts 😉
  13. Z

    weird bug in smithing script all details inside pls help.

    Happy to see this interaction, is great people helping each other!
  14. Z

    Show real speed in Otclient

    Realy thanks! I would never find it! Why is this in TFS sources? I think I'd better multiply the value by 2 in Game_Skills instead of change this code...
  15. Z

    Show real speed in Otclient

    Hello, I want to show real player speed in Otclient. It show the speed value / 2. I looked at my game_skills scripts and in OTC sources and don't found the line where the value is divided by 2, i need help. Stigma said on another thread and i tested and is right, i want to change this. Thanks.
  16. Z

    Lua [TFS1.2] Problem with the script - sex change doll

    Hi, Your sexs table is not right, u have 2 values to índex 1. Im not sure, but should be: local sexs ={[0] = {s=1}, [1] = {s=0}} Im not sure about sex values, i think is 0 and 1.
  17. Z

    Lua Increase drop count by item name

    Yes... Can you think any way to solve this? O think remove the original item and put a container(bag) and new itens inside isn't Nice... Have a way to incress the container(corpse) size If needed?(i Will look at backpack imbuiments that incress size) I played a OT some time Ago, that corpses...
  18. Z

    Lua Increase drop count by item name

    Then should have a check If new count has more than 100, and use additem() to add a new stack, right?
  19. Z

    Lua Increase drop count by item name

    Always amazing! In item:transform(id, count) count can be more than 100? It Will add a New stack to corpse? Is really needed getName():lower to access the table Index or itsn't case-sensentive?
  20. Z

    Lua Increase drop count by item name

    Hello, I did this code and don't tested, please try: local config = { ["chicken feather"] = {rate = {2, 50}}, ["soul orb"] = {rate = {1, 5}} } local function scanContainer(cid, position) local player = Player(cid) if not player then return false end local...
Back
Top