• Congratulations to the OTLand January Mapping Competition Winner! The grand prize of Otland Premium goes to Andréew.
  • Sign up for February Mapping Competition! The prize includes Otland Premium time.
  • 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
103
Best answers
0
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
 
OP
mmheo

mmheo

New Member
Joined
Sep 14, 2017
Messages
103
Best answers
0
Reaction score
1
bump
 

Leo32

Getting back into it...
Joined
Sep 21, 2007
Messages
828
Best answers
8
Reaction score
252
None of that info really helps.
Re-install it:
 
OP
mmheo

mmheo

New Member
Joined
Sep 14, 2017
Messages
103
Best answers
0
Reaction score
1
None of that info really helps.
Re-install it:
i did but don't work :S
there loot in monster but always say nothing
 

M0ustafa

Î Àm ŁĕğẹňĎ
Premium User
Support Team
Joined
Mar 4, 2017
Messages
1,321
Best answers
156
Reaction score
488
Location
Egypt
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
 
OP
mmheo

mmheo

New Member
Joined
Sep 14, 2017
Messages
103
Best answers
0
Reaction score
1
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
 

M0ustafa

Î Àm ŁĕğẹňĎ
Premium User
Support Team
Joined
Mar 4, 2017
Messages
1,321
Best answers
156
Reaction score
488
Location
Egypt
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:
OP
mmheo

mmheo

New Member
Joined
Sep 14, 2017
Messages
103
Best answers
0
Reaction score
1
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
 
Top