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

    TFS 1.X+ [TFS 1.3] Doubt in a verification inside the function combatChangeHealth from game.cpp

    Hello there I have a doubt in the following verification inside the function Game::combatChangeHealth from game.cpp: if (damage.origin != ORIGIN_NONE) { const auto& events = target->getCreatureEvents(CREATURE_EVENT_HEALTHCHANGE); if (!events.empty())...
  2. Yan18

    C++ [TFFS 1.3 - Source] Error C2280 'spellBlock_t &spellBlock_t::operator =(const spellBlock_t &)'

    Hi folks! I need help with a error in the source, it is being headache 😂. I tried to figured out the problem at the internet, but I didn't understand the issue yet. The issue is: Console Error List: Error C2280 'spellBlock_t &spellBlock_t::operator =(const spellBlock_t &)': attempting to...
  3. Yan18

    C++ [TFS 1.3] - How to Get When a Monster use Melee Attack (Basic Attack) and When the Monster uses Spell in Monster.xml in Tag <attacks> from C++Source?

    Hi Guys, As the title says, how can I get in the source when a monster uses melee attack (Basic Attack) and when the monster uses a Spell attack contained in tag <attacks> in the Monster.xml ?
  4. Yan18

    TFS 1.X+ [TFS 1.3] Which Condition to Use for Creature has Speed 0? Paralyze or Haste?

    Hi guys I wanna do a creature has 0 speed for a specific time by condition, but I tried to use CONDITION_HASTE and CONDITION_PARALYZE, but it didn't work. local speed = creature:getSpeed() local condition = Condition(CONDITION_PARALYZE) condition:setParameter(CONDITION_PARAM_TICKS, 10000)...
  5. Yan18

    TFS 1.X+ [TFS 1.3] How to do Deep Search in a For Loop in Main Backpack to Searching Items Inside Other Backpacks?

    Hi guys How to do a deep search for loop to search items in backpacks inside main backpack?
  6. Yan18

    [TFS 1.3] How to Do Player No Drop Loot When Die?

    Hello guys! How to do players no drop loot when die? I tried to add: player:setDropLoot(false) In events onLogin(), onDeath() and onPrepareDeath(), but didn't work.
  7. Yan18

    TFS 1.X+ [TFS 1.3] How to Do Players No Hit Monsters Melee and Range Damage?

    Hello folks! I would like to know how to do players no hit damage monsters melee and range, however, the player can target monsters. In other words, I want players can target and focus monsters, but the monsters don't receive damage from players (0 damage when targeting). Although, the monster...
  8. Yan18

    TFS 1.X+ [TFS 1.3 - MonsterSpell] - How to Use MonsterSpell to Get an Existing Spell to add in MonsterType:addAttack(Spell)?

    Hello people! As the title said, how can I use the function MonsterSpell to get a Spell and add in a monster by MonsterType:addAttack(Spell)? I want to add spells not contained in xml from monster that respawns.
  9. Yan18

    [TFS 1.3 - RevScripts] Spell Error: LuaScriptInterface::luaCreateCombatArea(). This function can only be used while loading the script.

    Hello Guys! I created a spell in area that depending on the direction, will change the area and effect. When I use the spell, generate this error: LuaScriptInterface::luaCreateCombatArea(). This function can only be used while loading the script. stack traceback: [C]: in function...
  10. Yan18

    TFS 1.X+ [TFS 1.3] How to Change Monster's Spell In-Game?

    Hello guys! Is there any event or function to change monster's spells in-game (real time, after loading distro)? Is it possible? For example, a Lava-Golem has Fireball spell and a player click in a lever in a quest, and after that, the Lava-Golem at the area lose the Fireball spell.
  11. Yan18

    TFS 1.X+ [TFS 1.3] Summons Cannot Uses Spells From the Same Monster in XML File

    Hello people! Is there a way for a summons cannot uses spells that the same monster (enemy) has in attack tag in xml file? For example, the monster Magma Crawler has the attack: <attack name="magma crawler soulfire" interval="2000" chance="20" /> And I want that I summon him, the Magma...
  12. Yan18

    [TFS 1.3] How to Remove Words from Players When Say a TalkAction

    Hello folks I want to know how to "hide" or don't show words when a player says a talkactions. For example, a player says "!online" and the comand "!online" cannot show at the screen. Other players can't see the comand from another player.
  13. Yan18

    TFS 1.X+ [TFS 1.3 - RevScripts] How to Use Spells by Callback Instead setFormula for Summons?

    Hello guys! I wanna create a spell by RevScripts using combat:setCallback instead combat:setFormula because setFormula is static and I can't get summons from a player. I tried to create a spell, but have no damage (0 value damage): local combat = Combat()...
  14. Yan18

    TFS 1.X+ [TFS 1.3] How to Create An Instant Spell in Spell Folder (RevScripts)?

    Hello guys! As the title says, I would like to know how to create an instant spell. I'm learning how to use RevScripts and I would like to know if there is someone that can explain me how to do that. If is possible, to create a easy spell, as Fireball for example.
  15. Yan18

    TFS 1.X+ [TFS 1.3] How to do a Summon Use Specific Spell When the Player to Click in an Item?

    Hello folks! I'm learning how to create spells and I would like to know how to do for the summon's player use a specific spell when a player to click in an item? For example, the player click in gold coin and the summon of the player use Fireball.
  16. Yan18

    TFS 1.X+ [TFS 1.3] - How to Get the Name of Player Summons When They Die

    Hello guys! I need a little help. I need to get the name of summons when a player summon die. I tried with onPrepareDeath and onDeath, but I haven't any results :(. How can I do that?
  17. Yan18

    TFS 1.X+ [TFS 1.3 - Spell] Doubt About Number Values of Table that contains the Area in a Spell

    Hello everyone! I have a doubt about the three value numbers in a table area of a Spell. I know the value 1 is the area where the creature will damage and the value 3 is the creature that is casting spell alright? But the number 2, what it means?
  18. Yan18

    TFS 1.X+ [TFS 1.3] How to Force Monsters Only Focus Summons Always the Player Have Summons?

    Hello folks! As the title said, I would like to know how to force monsters focus on the summons players always the players have summons? I tried: in Data/Events/Scripts/creature.lua: function Creature:onTargetCombat(target) if not self then return RETURNVALUE_NOERROR end...
  19. Yan18

    TFS 1.X+ [TFS 1.3] What Function Is Equivalente to onAttack or onCombat from TFS 0.X?

    Hello guys! I would like to know what function I can use to get Attacker and Target in combat to set target. I tried use the function Creature: onTargetCombat(target) from file creature.lua but it didn't work. I need to set target from monsters to my summons instead me when I have a summon. I...
  20. Yan18

    TFS 0.X [TFS 0.4] How to know if a player is inside a house?

    Hello guys! There is a way to know if a player is inside a house? Have some flag to get it? I searched if there was a way, but I didn't find it out.
Back
Top