• 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

    Players still dying

    I'm struggling to implement a feature where a player does not die under certain conditions in TFS 1.3. I'm using onHealthChange to check for the condition and prevent death by restoring the player's health and mana when the incoming damage would be fatal. Here's the script I'm using: function...
  2. M

    Read a sign

    0.4 Good evening guys, I'm having a little problem with a new sign that I created in my server: In the Obj Builder I copied just like the normal sign, and in rme I can already write in it. But, when I go to the game and try to look, it appears like this: No text at all. What can I do...
  3. M

    TFS 0.X How to use onAttack(?)

    0.4 Hello guys, Im trying to understand how to use onAttack or onCombat for the following request: I want to check when a player hits a mob with his base attack, like using a sword. So, if i use onAttack, how do I make the game acknowledge the hit? The mindset behind this is something like...
  4. M

    C++ Utamo vita absolving only part of the damage

    0.4 Hello guys, I'm here trying to do something with utamo vita. In my head, it would be more dynamical if the spell only absorb some part of the damage, not all the damage. In other words: If a monster (or other players) hit the dude with utamo vita and 100% is the damage, so what I want is...
  5. M

    C++ Compilling on Windows

    Hey guys, Im having some issues here trying to compile the otx with windows. I am following the steps on this tutorial Compilling on Windows · mattyx14/otxserver Wiki (https://github.com/mattyx14/otxserver/wiki/Compilling-on-Windows) In the "Install the required software", he said to run the...
  6. M

    Lua Monster disappear after a minute

    0.4 Hello guys and good morning. I was trying to do some simple scripts, but one of them i can't solve. I want a script that, when the monster get created by doSummonCreature, it will disappear after a minute. I was trying to do by creaturescript and then use this in the monster.xml...
  7. M

    TFS 0.X Monster heals another monster

    Hello again. Today I'm trying to do some monster' spells and I'm stuck in this one. Its simple. One monster will heal another monster (in range) if the name is in the script. The problem is, i copied a script that i use to heal summons, and can't find another way to replace this function " for...
  8. M

    Lua Look sees MONSTER'S health

    Good evening everyone. I really want a script where when a player looks at a monster, it will show its current life and total, something like this: You see a Dragon. Health [850/1000] I already have a script that shows other player's health, and it goes like this, you can use this as a...
  9. M

    Increasing skull and shield flag icons

    tfs 0.4 8.6 Hello guys, Im here trying to understand what do I have do (Sources, maybe?) to add new types of skull and shield flags for monsters and npc. My Otclient already have some new ones from global, such as orange skull, but, inside the game, it does not recognize it. What do I have to do?
  10. M

    Trying to identify a party member

    Hello guys, Im having trouble trying to identify a party member in this script: function onStatsChange(cid, attacker, type, combat, value) if getCreatureStorage(cid, 1111111) >= 1 then if isInParty(cid) == true then for _, party in ipairs(getPartyMembers(cid)) do if type ==...
  11. M

    Dor that closes after 5 sec

    Hello guys, im having some problem doing this on my own, so here i am asking for help I want a script that, when the player opens a door (with actionid), after 5 seconds, the door closes. Simple as that I was trying to do this, but I keep getting this error: (luaDoTransformItem) Item not found...
  12. M

    Lua NPC task

    0.4 Hello guys, I'm here to ask for a favor. To start, I have this npc's script, where it gives the player a task to do, like killing some amount of monsters, and it works perfectly, BUT i want something more. I was trying to do something like: If the player has a specific storage, the npc will...
  13. M

    TFS 0.X Spell that create item and the item decay

    Well, the title is pretty explanatory, I made a spell that, when you use it, its create an item in your ammo slot, and in item.xml, i put the decay and duration, But... The item does not 'fade away'. My decay is to 0, so it should disappear. When i put the duration, also i put the 'show...
  14. M

    TFS 0.X Only challenge if the player have a storage

    0.4 Hello everybody, im here to ask for help. I was trying to do a normal attack spell, but if the player has a storage, the creature would target him, like exeta res. Here's the code I worked so far: local outfit = 425 local combat = createCombatObject() setCombatParam(combat...
  15. M

    C++ Remove summon and heals the player

    Good night everyone, i am here to ask for a spell that's do the following: The spell removes the player's summon Then, it gets the summon's health and convert for the player. So, if the summon has 100 health but looses 10 and the player cast the spell, it removes the summon and heals 90 health...
  16. M

    Effect on the area

    Hello, i'd like to, when the player use a machete, an effect would appear in the bush. I tried to do myself but the effect only appear on the player. function onUse(cid, item, frompos, item2, topos) if item2.itemid == 2781 then doTransformItem(item2.uid,2782)...
  17. M

    Different Chest

    0.4 Mah Dudes, Im here to ask for a little help. I have a simple quest script, where the player right-click on the chest and gain their items. What im asking for is for the script to tell the player to remove all of his items before clicking on the chest. So, the script have to identify all of...
  18. M

    NPC Reward for each vocation

    0.4 Hello my dudes, i am here to ask for a help. I got a NPC script that reward a player when the task is finished. What I'd like is: When a Druid talk to the following NPC and finish the task, he would get a SnakeBite Rod, and if were a Sorcerer, he would get a "Wand of Vortex". Here is my NPC...
  19. M

    Smoke field gives invisibility 0.4

    I'd like to request a script when a monster step in a smoke field, it become invisible. For TFS 0.4 Thank You @M0ustafa
  20. M

    0.4 Promotion Request

    0.4 Helo0 guys, im here to ask for something. In my server, the player can choose 1 of 3 promotion in one vocation, i was having some issues because when the player login out he lost his promotion. So i got another script where he can choose the promotion in one npc (it was 1 npc for each...
Back
Top