• 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!

CreatureEvent [TFS 1.3] Item Sets

Status
Not open for further replies.
God damn it man... Take it and get out.
Lua:
ITEM_SETS = {
  [1] = {
    -- set id
    name = "Supremy Set/Mage", -- name of this set
    parts = {
      -- items that are part of this set
      {slot = CONST_SLOT_HEAD, item = 27065}, -- slot is where this item can be equipped, item is item id
      {slot = CONST_SLOT_ARMOR, item = 25188},
      {slot = CONST_SLOT_LEGS, item = 21700},
      {slot = CONST_SLOT_FEET, item = 25412}
    },
    bonuses = {
      -- list of bonuses based on number of parts equipped
      [1] = {
        -- bonuses when 1 part is equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 1}, -- add +1 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 1}, -- add +1 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 1}, -- add +1 to shielding
        {type = BONUS_TYPE_MAXHP, value = 5} -- add +5% max HP
      },
      [2] = {
        -- bonuses when 2 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 3}, -- add +3 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 3}, -- add +3 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 3}, -- add +3 to shielding
        {type = BONUS_TYPE_MAXHP, value = 8} -- add +8% max HP
      },
      [3] = {
        -- bonuses when 3 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 5},
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 5},
        {type = BONUS_TYPE_SHIELDING, value = 5},
        {type = BONUS_TYPE_MAXHP, value = 12}
      },
      [4] = {
        -- bonuses when 4 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 8}, -- add +8 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 8}, -- add +8 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 8}, -- add +8 to shielding
        {type = BONUS_TYPE_MAXHP, value = 15}, -- add +15% max HP
        {type = BONUS_TYPE_FLAMESTRIKE_ON_ATTACK, min = 100, max = 150, chance = 40}, -- cast Flame Strike on Attack, 100-150 damage, 40% chance
        {type = BONUS_TYPE_FLAMESTRIKE_ON_HIT, min = 100, max = 150, chance = 40} -- cast Flame Strike on Hit, 100-150 damage, 40% chance
      }
    },
    [2] = {
      -- set id
      name = "Supremy Set/EK/RP", -- name of this set
      parts = {
        -- items that are part of this set
        {slot = CONST_SLOT_HEAD, item = 2499}, -- slot is where this item can be equipped, item is item id
        {slot = CONST_SLOT_ARMOR, item = 2500},
        {slot = CONST_SLOT_LEGS, item = 25190},
        {slot = CONST_SLOT_FEET, item = 25412}
      },
      bonuses = {
        -- list of bonuses based on number of parts equipped
        [1] = {
          -- bonuses when 1 part is equipped
          {type = BONUS_TYPE_MELEE_SKILLS, value = 1}, -- add +1 to all melee skills
          {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 1}, -- add +1 to distance fighting
          {type = BONUS_TYPE_SHIELDING, value = 1}, -- add +1 to shielding
          {type = BONUS_TYPE_MAXHP, value = 5} -- add +5% max HP
        },
        [2] = {
          -- bonuses when 2 parts are equipped
          {type = BONUS_TYPE_MELEE_SKILLS, value = 3}, -- add +3 to all melee skills
          {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 3}, -- add +3 to distance fighting
          {type = BONUS_TYPE_SHIELDING, value = 3}, -- add +3 to shielding
          {type = BONUS_TYPE_MAXHP, value = 8} -- add +8% max HP
        },
        [3] = {
          -- bonuses when 3 parts are equipped
          {type = BONUS_TYPE_MELEE_SKILLS, value = 5},
          {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 5},
          {type = BONUS_TYPE_SHIELDING, value = 5},
          {type = BONUS_TYPE_MAXHP, value = 12}
        },
        [4] = {
          -- bonuses when 4 parts are equipped
          {type = BONUS_TYPE_MELEE_SKILLS, value = 8}, -- add +8 to all melee skills
          {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 8}, -- add +8 to distance fighting
          {type = BONUS_TYPE_SHIELDING, value = 8}, -- add +8 to shielding
          {type = BONUS_TYPE_MAXHP, value = 15}, -- add +15% max HP
          {type = BONUS_TYPE_FLAMESTRIKE_ON_ATTACK, min = 100, max = 150, chance = 40}, -- cast Flame Strike on Attack, 100-150 damage, 40% chance
          {type = BONUS_TYPE_FLAMESTRIKE_ON_HIT, min = 100, max = 150, chance = 40} -- cast Flame Strike on Hit, 100-150 damage, 40% chance
        }
      }
    }
  }
}
 
@oen432

system user in test
 
@oen432

system user in test
This bug is from the system that you linked, not mine.
 
Looks like your item sets are configured this way.

Lua:
ITEM_SETS = {
   [1] = { -- set id
    name = "Leather Set", -- name of this set
    parts = { -- items that are part of this set
      {slot = CONST_SLOT_HEAD, item = 2461}, -- slot is where this item can be equipped, item is item id
      {slot = CONST_SLOT_ARMOR, item = 2467},
      {slot = CONST_SLOT_LEGS, item = 2649},
      {slot = CONST_SLOT_FEET, item = 2643}
    },
    bonuses = { -- list of bonuses based on number of parts equipped
      [1] = { -- bonuses when 1 part is equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 1}, -- add +1 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 1}, -- add +1 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 1}, -- add +1 to shielding
        {type = BONUS_TYPE_MAXHP, value = 5} -- add +5% max HP
      },
      [2] = { -- bonuses when 2 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 3}, -- add +3 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 3}, -- add +3 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 3}, -- add +3 to shielding
        {type = BONUS_TYPE_MAXHP, value = 8} -- add +8% max HP
      },
      [3] = { -- bonuses when 3 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 5},
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 5},
        {type = BONUS_TYPE_SHIELDING, value = 5},
        {type = BONUS_TYPE_MAXHP, value = 12}
      },
      [4] = { -- bonuses when 4 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 8}, -- add +8 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 8}, -- add +8 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 8}, -- add +8 to shielding
        {type = BONUS_TYPE_MAXHP, value = 15}, -- add +15% max HP
        {type = BONUS_TYPE_FLAMESTRIKE_ON_ATTACK, min = 100, max = 150, chance = 40}, -- cast Flame Strike on Attack, 100-150 damage, 40% chance
        {type = BONUS_TYPE_FLAMESTRIKE_ON_HIT, min = 100, max = 150, chance = 40} -- cast Flame Strike on Hit, 100-150 damage, 40% chance
      }
    }
  },
 
  [2] = { -- set id
    name = "Brass Set", -- name of this set
    parts = { -- items that are part of this set
      {slot = CONST_SLOT_HEAD, item = 2460}, -- slot is where this item can be equipped, item is item id
      {slot = CONST_SLOT_ARMOR, item = 2465},
      {slot = CONST_SLOT_LEGS, item = 2478},
      {slot = CONST_SLOT_FEET, item = 2195}
    },
    bonuses = { -- list of bonuses based on number of parts equipped
      [1] = { -- bonuses when 1 part is equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 1}, -- add +1 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 1}, -- add +1 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 1}, -- add +1 to shielding
        {type = BONUS_TYPE_MAXHP, value = 5} -- add +5% max HP
      },
      [2] = { -- bonuses when 2 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 3}, -- add +3 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 3}, -- add +3 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 3}, -- add +3 to shielding
        {type = BONUS_TYPE_MAXHP, value = 8} -- add +8% max HP
      },
      [3] = { -- bonuses when 3 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 5},
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 5},
        {type = BONUS_TYPE_SHIELDING, value = 5},
        {type = BONUS_TYPE_MAXHP, value = 12}
      },
      [4] = { -- bonuses when 4 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 8}, -- add +8 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 8}, -- add +8 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 8}, -- add +8 to shielding
        {type = BONUS_TYPE_MAXHP, value = 15}, -- add +15% max HP
        {type = BONUS_TYPE_FLAMESTRIKE_ON_ATTACK, min = 100, max = 150, chance = 40}, -- cast Flame Strike on Attack, 100-150 damage, 40% chance
        {type = BONUS_TYPE_FLAMESTRIKE_ON_HIT, min = 100, max = 150, chance = 40} -- cast Flame Strike on Hit, 100-150 damage, 40% chance
      }
    }
  },
 
 
}
 
Lua:
ITEM_SETS = {
   [1] = { -- set id
    name = "Leather Set", -- name of this set
    parts = { -- items that are part of this set
      {slot = CONST_SLOT_HEAD, item = 2461}, -- slot is where this item can be equipped, item is item id
      {slot = CONST_SLOT_ARMOR, item = 2467},
      {slot = CONST_SLOT_LEGS, item = 2649},
      {slot = CONST_SLOT_FEET, item = 2643}
    },
    bonuses = { -- list of bonuses based on number of parts equipped
      [1] = { -- bonuses when 1 part is equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 1}, -- add +1 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 1}, -- add +1 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 1}, -- add +1 to shielding
        {type = BONUS_TYPE_MAXHP, value = 5} -- add +5% max HP
      },
      [2] = { -- bonuses when 2 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 3}, -- add +3 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 3}, -- add +3 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 3}, -- add +3 to shielding
        {type = BONUS_TYPE_MAXHP, value = 8} -- add +8% max HP
      },
      [3] = { -- bonuses when 3 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 5},
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 5},
        {type = BONUS_TYPE_SHIELDING, value = 5},
        {type = BONUS_TYPE_MAXHP, value = 12}
      },
      [4] = { -- bonuses when 4 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 8}, -- add +8 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 8}, -- add +8 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 8}, -- add +8 to shielding
        {type = BONUS_TYPE_MAXHP, value = 15}, -- add +15% max HP
        {type = BONUS_TYPE_FLAMESTRIKE_ON_ATTACK, min = 100, max = 150, chance = 40}, -- cast Flame Strike on Attack, 100-150 damage, 40% chance
        {type = BONUS_TYPE_FLAMESTRIKE_ON_HIT, min = 100, max = 150, chance = 40} -- cast Flame Strike on Hit, 100-150 damage, 40% chance
      }
    }
  },

  [2] = { -- set id
    name = "Brass Set", -- name of this set
    parts = { -- items that are part of this set
      {slot = CONST_SLOT_HEAD, item = 2460}, -- slot is where this item can be equipped, item is item id
      {slot = CONST_SLOT_ARMOR, item = 2465},
      {slot = CONST_SLOT_LEGS, item = 2478},
      {slot = CONST_SLOT_FEET, item = 2195}
    },
    bonuses = { -- list of bonuses based on number of parts equipped
      [1] = { -- bonuses when 1 part is equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 1}, -- add +1 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 1}, -- add +1 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 1}, -- add +1 to shielding
        {type = BONUS_TYPE_MAXHP, value = 5} -- add +5% max HP
      },
      [2] = { -- bonuses when 2 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 3}, -- add +3 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 3}, -- add +3 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 3}, -- add +3 to shielding
        {type = BONUS_TYPE_MAXHP, value = 8} -- add +8% max HP
      },
      [3] = { -- bonuses when 3 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 5},
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 5},
        {type = BONUS_TYPE_SHIELDING, value = 5},
        {type = BONUS_TYPE_MAXHP, value = 12}
      },
      [4] = { -- bonuses when 4 parts are equipped
        {type = BONUS_TYPE_MELEE_SKILLS, value = 8}, -- add +8 to all melee skills
        {type = BONUS_TYPE_DISTANCE_FIGHTING, value = 8}, -- add +8 to distance fighting
        {type = BONUS_TYPE_SHIELDING, value = 8}, -- add +8 to shielding
        {type = BONUS_TYPE_MAXHP, value = 15}, -- add +15% max HP
        {type = BONUS_TYPE_FLAMESTRIKE_ON_ATTACK, min = 100, max = 150, chance = 40}, -- cast Flame Strike on Attack, 100-150 damage, 40% chance
        {type = BONUS_TYPE_FLAMESTRIKE_ON_HIT, min = 100, max = 150, chance = 40} -- cast Flame Strike on Hit, 100-150 damage, 40% chance
      }
    }
  },


}
{type = BONUS_TYPE_MAXHP, value = 5} -- add +5% max HP this is with 1 item equipped only, so it's working properly. You get +12% HP from Leather Set 3 parts and then +5% HP from Brass Set 1 part.
 
All Set Parte 4/4 > HP [12483]
using other helmet Set 1[3/4] +Helmet Set 2[1/4] > HP [11397]
Remove Helmet and Set 1[3/4] > HP [12157]

Code:
3:01 You see
Leather Set [3/4]
[Leather Helmet, Leather Armor, Leather Legs, Leather Boots]
Melee Skills +5
Distance Fighting +5
Shielding +5
Max HP +12%a leather armor (Arm:4).
It weighs 60.00 oz.
Code:
13:01 You see
Brass Set [1/4]
[Brass Helmet, Brass Armor, Brass Legs, Boots Of Haste]
Melee Skills +1
Distance Fighting +1
Shielding +1
Max HP +5%a brass helmet (Arm:3).
It weighs 27.00 oz.
 
All Set Parte 4/4 > HP [12483]
using other helmet Set 1[3/4] +Helmet Set 2[1/4] > HP [11397]
Remove Helmet and Set 1[3/4] > HP [12157]

Code:
3:01 You see
Leather Set [3/4]
[Leather Helmet, Leather Armor, Leather Legs, Leather Boots]
Melee Skills +5
Distance Fighting +5
Shielding +5
Max HP +12%a leather armor (Arm:4).
It weighs 60.00 oz.
Code:
13:01 You see
Brass Set [1/4]
[Brass Helmet, Brass Armor, Brass Legs, Boots Of Haste]
Melee Skills +1
Distance Fighting +1
Shielding +1
Max HP +5%a brass helmet (Arm:3).
It weighs 27.00 oz.
HP stats aren't accumulating, that's all.
 
HP stats aren't accumulating, that's all.
is decreasing with an item, maybe i don't understand you or maybe you don't understand me.

Leather Armor, Leather Legs, Leather Boots + Brass Helmet = -HP

Leather Armor, Leather Legs, Leather Boots = + HP
 
is decreasing with an item, maybe i don't understand you or maybe you don't understand me.

Leather Armor, Leather Legs, Leather Boots + Brass Helmet = -HP

Leather Armor, Leather Legs, Leather Boots = + HP
Ohh, my bad... I'll look into that later.
 
Last edited:
@oen432 I keep double-checking however I keep getting the following error on login. Nothing changed, straight copy/follow of your instructions. EDIT: Forgot to mention I am using Togu's distro. The Forgotten Tibia (no vocations, new skills, skills by points, dual wield, auto loot, quiver, etc) (https://otland.net/threads/the-forgotten-tibia-no-vocations-new-skills-skills-by-points-dual-wield-auto-loot-quiver-etc.263018/)View attachment 40129
Wrong configuration of data/item_sets_const.lua
 
Is it difficult to give attributes depending on your vocation?
 
@oen432 I set this up on LoA, however, I can drop a hammer from bp to hand and heal every time? The hammer isn't part of the set...
 
One day I'll sit down and rewrite this script, one day...
 
  • Like
Reactions: ~X~
Status
Not open for further replies.
Back
Top