• 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. Sergio Rosendo

    Lua TFS 1.2 - Counting amounts of certain itens in BP

    I'm trying to count how many of a certain item the player has in his backpack. For that I'm using player:getSlotItem(CONST_SLOT_BACKPACK):getItemCountById(item). The problem is that this function only checks the slots in the bp that it was asked to do so. It dosent check the other containers...
  2. Sergio Rosendo

    Lua TFS 1.2 - How to access the target of a spell

    I'm trying for hours to find a way to access the target of my spell. I've searched trough all TFS 1.2 functions and couldn't find anything besides creature:getTarget(). The problem with creature:getTarget() is that the player's target is not always the same as the spell's target, so it won't...
  3. Sergio Rosendo

    TFS 1.2 - Summons do not steal experience

    Distro: TFS 1.2 Script Type: Creature Event? Description of the script: The script would consider the damage done by summoned creatures as if it was done by their master. File: creature.cpp There is a solution for this in the forum but for a older TFS version...
  4. Sergio Rosendo

    TFS 1.2 - Player has a chance to drop certain items upon death

    Distro Name: TFS 1.2 Script type: Lua script Description of the script: Upon death the script would check if player has certain itens in his backpack. For each of those itens the script would have a 5% chance to remove them from the player and add them to the player's dead body. (this drop...
  5. Sergio Rosendo

    Lua TFS 1.2 - Drop all gold upon death

    I'm trying to make it so that when the player dies, it will drop all the gold he is carrying (even with aol and/or full blessings). So the file that takes care of this is droploot.lua, as you can see in the comments inside the code, I edited it. The idea is pretty simple, but its my first try...
  6. Sergio Rosendo

    TFS 1.2 - New Condition to Reduce Base Speed

    So I wanted a 'chilled' condition that would reduce the player/creature base speed for its duration. I tried but I was unable to do it on my own. Distro Name: TFS 1.2 Script type: Script for a new condition that reduces player/creature base move speed for its duration. Description of the...
Back
Top Bottom