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

TFS 1.3 System Uncommon, Rare, Epic and Legendary Items

nanduzenho

Member
Joined
Mar 21, 2021
Messages
187
Solutions
1
Reaction score
15
GitHub
nanduzenho
Good morning, I have this Rare, Epic and Legendary system in monster drops. However, when I enchant the item, eg elemental, when I finish the enchant the item loses the Rare, Epic or Legendary attribute and goes back to being a normal item. Does anyone know how to solve?
 

Attachments

and is there no error on the console? I know this system very well and I know that it is seriously bugged.

for the first check id's:
Lua:
-- don't forget to register them in actions or they will not work
    GEM_BASIC_LEVEL = 8301,
    GEM_ADD_SLOT = 8300,
    GEM_RANDOM = 8305,
    GEM_RARE = 12663,
    GEM_EPIC = 12664,
    GEM_LEGENDARY = 12665,
    gems_power = {
        [12663] = {min_wl = 0, max_wl = 4, min_el = 0.3, max_el = 0.6, sl = function() return 2 end}, -- rare
        [12664] = {min_wl = 3, max_wl = 6, min_el = 0.6, max_el = 0.7, sl = function() return 3 end}, -- epic
        [12665] = {min_wl = 5, max_wl = 9, min_el = 0.8, max_el = 1, sl = function() return 4 end}, -- legendary
        [8305] = {min_wl = 0, max_wl = 9, min_el = 0.3, max_el = 1, sl = function() return math.random(2, 4) end} -- random
    },
 
Back
Top