• 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 0.X random items stats

mmheo

New Member
Joined
Sep 14, 2017
Messages
157
Reaction score
1
hello guys i use random item stats and its was work good
when change source (not change get clean source file ...same old one but without edit) mod wont work again
always say when kill monster 08:43 Loot of a dragon: nothing
and when back old tfs still don't work anyone know i can fix this?
im use 0.4 windows
 
None of that info really helps.
Re-install it:
 
None of that info really helps.
Re-install it:
i did but don't work :S
there loot in monster but always say nothing
 
This occurs because you have 2 different type of Loot messages, So you'll have to disable/remove 1.
It says loot = nothing but monster is empty? or it still has loot?
in config.lua find
Lua:
monsterLootMessage = 1 or 2 or 3
and change it to
Lua:
monsterLootMessage = 0
if it didn't work then in your Mod script change
Lua:
if( (damage == true or bit.band(flags, 1) == 1) and isMonster(target) )then -- 0.3/4
to
Lua:
if( (damage == true or bit.band(flags, 1) == 1) and isMonster(target) and getPlayerGroupId(cid) > 4 )then -- 0.3/4
 
This occurs because you have 2 different type of Loot messages, So you'll have to disable/remove 1.
It says loot = nothing but monster is empty? or it still has loot?
in config.lua find
Lua:
monsterLootMessage = 1 or 2 or 3
and change it to
Lua:
monsterLootMessage = 0
if it didn't work then in your Mod script change
Lua:
if( (damage == true or bit.band(flags, 1) == 1) and isMonster(target) )then -- 0.3/4
to
Lua:
if( (damage == true or bit.band(flags, 1) == 1) and isMonster(target) and getPlayerGroupId(cid) > 4 )then -- 0.3/4
bro its was work very good when changed tfs its wont work again and i did all u said and still nothing
 
Any console errors? on start up or after killing the creature?
Can you check if your source has this function?
C++:
isContainer
and if it doesn't add it to data\lib\050-function.lua
Lua:
function isContainer(uid)
    local thing = getThing(uid)
    return thing.uid > 0 and thing.items ~= nil
end
 
Last edited:
Any console errors? on start up or after killing the creature?
Can you check if your source has this function?
C++:
isContainer
and if it doesn't add it to data\lib\050-function.lua
Lua:
function isContainer(uid)
    local thing = getThing(uid)
    return thing.uid > 0 and thing.items ~= nil
end
yes has this mod was work no problem but when changed tfs for new one don't work and when back old tfs still don't work idk why
 
Back
Top