• 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 / 1.4] Upgrade System

Easiest but worst solution...

in upgrade_system_core.lua, change:
US_CONDITIONS[value[1]][value[2]][itemId]:setParameter(CONDITION_PARAM_SUBID, 1000 + itemId)
to
US_CONDITIONS[value[1]][value[2]][itemId]:setParameter(CONDITION_PARAM_SUBID, 1000 + itemId*4)

where 4 is the max amount of slots legendary item can have.

Note: there is 2 occurrence, change in line 315 and 487. There is a better solution but we haven't worked on it yet.
 
Easiest but worst solution...

in upgrade_system_core.lua, change:
US_CONDITIONS[value[1]][value[2]][itemId]:setParameter(CONDITION_PARAM_SUBID, 1000 + itemId)
to
US_CONDITIONS[value[1]][value[2]][itemId]:setParameter(CONDITION_PARAM_SUBID, 1000 + itemId*4)

where 4 is the max amount of slots legendary item can have.

Note: there is 2 occurrence, change in line 315 and 487. There is a better solution but we haven't worked on it yet.
How is this different from 1000 + itemId? It's just higher number.
The only valid solution is incremental subid.
 
US_CONDITIONS[value[1]][value[2]][itemId]:setParameter(CONDITION_PARAM_SUBID, 1000 + itemId*4 + value[1]), sorry Master oen432 the wise. Incremental subid is indeed better and I haven't been able to implement it yet, but I would like to see more people interested too.
 
US_CONDITIONS[value[1]][value[2]][itemId]:setParameter(CONDITION_PARAM_SUBID, 1000 + itemId*4 + value[1]), sorry Master oen432 the wise
Wrong again. SubId can still overlap.
Item #1:
  • ItemId: 1000
  • value[1]: 20
  • SubId: 1000 + (1000 * 4) + 20 = 5020

Item #2:
  • ItemId: 1001
  • value[1]: 16
  • SubId: 1000 + (1001 * 4) + 16 = 5020
 
Sorry sir, I'm on drugs.
US_CONDITIONS[value[1]][value[2]][itemId]:setParameter(CONDITION_PARAM_SUBID, 1000 + itemId + key*4)
Post automatically merged:

Again, just a provisional resolve.
 
Last edited:
Any chance i can find it somewhere on forums? or maybe some different style or so?
 
Could any1 provide me infos about how to make undefinied items 100% chance to loot? not commong ?
 
i followed every installation step, installed version 2.4.8 and using TFS 1.3 and every item that drops from a monster is common even when unidentified drop chance =1. what could be the issue? i reinstalled like 3 times, but still not getting unidentified items.
 
i followed every installation step, installed version 2.4.8 and using TFS 1.3 and every item that drops from a monster is common even when unidentified drop chance =1. what could be the issue? i reinstalled like 3 times, but still not getting unidentified items.
Do these items have Item Level > 0?
 
19:13 You see a common brass helmet (Arm:3).
Item Level: 0
It can only be wielded properly by players of level 0 or higher.
It weighs 27.00 oz.
Item ID: 2460


the thing is even when i use the spawn command, the items also gets common. and i killed 100 minotaurs, none dropped anythign else than common
 
Back
Top