• 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

    Thanks! I understand, but I have one more doubt. When the function is returned, it is returned as false or true?
  2. 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())...
  3. Yan18

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

    I want to remove all attacks (except Melee) from Summons. In monster.cpp class at function Monster::Monster(MonsterType* mType) : Creature(), strDescription(mType->nameDescription), mType(mType) I made: if (this->isSummon()) { for (auto iterator = this->mType->info.attackSpells.begin(), end...
  4. 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...
  5. 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?

    Thanks, but isn't it what I want to know. I figured out where spell name is read: forgottenserver/monsters.cpp at b811fe6b5b9d24a9807120ce62983cf5d258ac68 · otland/forgottenserver (https://github.com/otland/forgottenserver/blob/b811fe6b5b9d24a9807120ce62983cf5d258ac68/src/monsters.cpp#L116)...
  6. 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 ?
  7. 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?

    Thanks! This is similar the code of Xikini in topic: TFS 1.4 getListOfContainerItems (https://otland.net/threads/tfs-1-4-getlistofcontaineritems.278178/) But it is very helpful! Thanks a lot!
  8. 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)...
  9. 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?

    Yes, but I wanna know if there are easiest ways, but I think recursive is the only solution for this problem haha. Thanks! Thanks! I'm gonna look. Yes, pratically it's necessary to do a recursive function as Boy67 said. I wanted to know if there was a easiest ways. But I will do recursive...
  10. 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?
  11. Yan18

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

    Thanks 😊! It works!
  12. 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.
  13. Yan18

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

    Both topics looks like similar, but the topics aren't equals, the another topic I had a doubt about how to add spell in MonsterType and this topic my doubt is how to add spell in a monster in any event, but when I created this topic I didn't understand if was possible add spell in a different...
  14. Yan18

    Forgottenserver - protocol 10x and 12x

    Did you try change the value of: static constexpr auto CLIENT_VERSION_MAX = 1098; static constexpr auto CLIENT_VERSION_STR = "10.98"; to: static constexpr auto CLIENT_VERSION_MAX = 1200; static constexpr auto CLIENT_VERSION_STR = "12.00"; Did you try change it on source? This file is on...
  15. Yan18

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

    Thanks for explanation! I don't know if I didn't explain my doubt right, but, I wanna now if is possible to add an existing spell to a monster by a different way from monster.xml. For example, I have a global storage, and in the event onSpawn in Data/Events/Monster.lua I add an existing...
  16. Yan18

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

    Cool, but how could I add Spell in a monster except monster.xml?
  17. Yan18

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

    Thanks! It works! I didn't register event to monster event, only for players in login.lua. Only missed to add the event in monster.lua on onSpawn(). About the MESSAGE_BLUE, this is a shortcut that I did to facilitate the writing, but I had edit and put the MESSAGE_STATUS_CONSOLE_BLUE to don't...
  18. Yan18

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

    I tried do this by RevScripts, but didn't work: local creatureevent = CreatureEvent("player_no_hit") function creatureevent.onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if creature:isMonster() and attacker:isPlayer() then...
  19. 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...
  20. 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.
Back
Top