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

    TFS 0.X Area Spell hitting specific creature

    @Edit - YEAH, IT'S WORKING! (Feel free to copy the script, 0.4.0 users). @hellboy I'm not sure if o.4 has it aswell, but the script should be like this, right? local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat...
  2. T

    TFS 0.X Quest gives skills not working

    Ops, actually it's "getPlayerSkillLevel()". Try it now.
  3. T

    TFS 0.X Quest gives skills not working

    @juansanchez In TFS 0.4~ there is a function called 'getPlayerSkillLevel' wich should receives 3 parameters: cid (the creatureid that should be checked), skill (the skill to be checked), and a parameter to ignore or consider modifiers (from itens/spells) in this skills. You can ignore modifiers...
  4. T

    TFS 0.X Area Spell hitting specific creature

    Is it possible to make a area spell hits only a creature if it has a certain name? For example: how to do to a spell like, let's say, "divine caldera" (exevo mas san) hits only creatures in it's area named "rat"? Is it possible to do? Could you help me with some ideas? I'm kinda lost trying to...
  5. T

    Light on character's just doesn't turn off.

    I don't want to remove the light effects at all. It wouldn't be a real solution. But hey, probably it's not the problem, since the same items are working properly when they're not enlightening the player.
  6. T

    Light on character's just doesn't turn off.

    Hi, there. I've been facing a weird bug with the light around characters in my OTC. They just doesn't turn off. I've tried it with a brand new compiled version and the problem persists. It seems like it's not a problem with the items configuration itself, since it works fine when they're not...
  7. T

    C++ "Block Attack" system (shield) in source code

    I've found it! in creature.cpp, the following code controls it: And then:
  8. T

    C++ "Block Attack" system (shield) in source code

    I've been searching it in creature.cpp, player.cpp, monsters.cpp, weapon.cpp, combat.cpp but I didn't find any reference to it. :( If anyone knows, report me, please.
  9. T

    C++ "Block Attack" system (shield) in source code

    I guess it would be simpler changing sources. I mean, I've done a lot of changes in my source code already, and it probably would make it a lot easier: instead of registering any kind of script to every creature/player, just setting it as "default". Actually, I can't even wonder how to create...
  10. T

    C++ "Block Attack" system (shield) in source code

    Hi there, I would like to know where do I find the code in source (TFS 0.4.0) that determines a player/creature can block with his shield (defense attribute) only 2 attacks per turn, since I want to make some changes on that. I've looked for it in creatures.cpp and etc but I didn't find it...
  11. T

    Lua Variable Monsters Health (TFS 0.4.0)

    I guess this onSpawn function doesn't exist at this version, look: @esnio12 [LUA] 0.4 TFS Functions
  12. T

    Lua Variable Monsters Health (TFS 0.4.0)

    Hi there, I'm recreating D&D aspects in my personal server (TFS 0.4.0 based) and I would like to recreate the variable max health from creatures. I mean, actually the max health is based in the monster.xml file, as default (health max ="xxx"), so every creature from the same type has the same...
  13. T

    Lua doPlayerRemoveOutfitId - problem with

    All my outfits in .xml follows exactly this same pattern: <outfit id="28" premium="yes" default="0"> <list gender="0-1" lookType="146" name="Human" requirement="none" speed="6"> </list> </outfit> @Xikini Only the "id", "lookType" and "name" are different, of course...
  14. T

    Lua doPlayerRemoveOutfitId - problem with

    @Xikini , it didn't work, unfortunately. The player still can access the outfitID27 in the outfit window.
  15. T

    Lua doPlayerRemoveOutfitId - problem with

    @Xikini Well, it's just temporary, you know? The player starts the game without the outfitID 27, then I make him use it as a regular outfit as he starts a long quest. When he completes it, he gets a new outfit and losses the old one. In other words: at this momment he should get the outfitID 18...
  16. T

    Lua doPlayerRemoveOutfitId - problem with

    It's not working yet, @Apollos :( @Xikini , actually I want to eliminate even the possibility of player to see the outfitID 27 in that "change outfit window". It worked well to eliminate the first one, but this outfitd added later I can't remove. :(
  17. T

    Lua doPlayerRemoveOutfitId - problem with

    Hello, there. Is there any restriction to use the function doPlayerRemoveOutfitId(cid, id, addon) to remove an outfit that was manually added before with doPlayerAddOutfitId(cid, id, addon)? By the way: I'm using TFS 0.4 Let me explain: Players in my server starts only with the outfit ID 1...
  18. T

    "Arm" (Armor) formula in Sources TFS 0.4.0

    Thank you guys for helping me. Static_, it was exactly what I want. Thanks!
  19. T

    "Arm" (Armor) formula in Sources TFS 0.4.0

    Where do I find in TFS 0.4.0 sources the "Arm" formula for equipments? I'm trying to reformulate the Arm formula in my server, but I'm not sure where it is. All I've found is in "player.cpp" the following code: int32_t Player::getArmor() const { int32_t i = SLOT_FIRST, armor = 0; for(...
  20. T

    Lua New "Summon Creature" spell - TFS 0.4.0

    This guy solved my problem. If anyone else wants a new summon spell, this is a good start: [SOLVED] Summon single creature. +Rep Thank you all, again.
Back
Top