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

isCorpse returning false?

strutZ

Australian OT Member {AKA Beastn}
Joined
Nov 16, 2014
Messages
1,391
Solutions
7
Reaction score
550
Hey,

Can someone explain to me how a corpse flag is added? For some reason when i kill a toad and run this

Code:
    local corpse = Tile(position):getTopDownItem()
    if not corpse or not corpse:isContainer() then
        return
    end
print(corpse:getType():isCorpse()

it is returning false. But with majority of other monsters it is returning true.

Excuse the noob question.

Thanks!
 
Solution
Resolved:


Code:
    <item id="6077" article="a" name="dead toad">
        <attribute key="containerSize" value="10" />
        <attribute key="decayTo" value="5765" />
        <attribute key="duration" value="10" />
        <attribute key="fluidSource" value="blood" />
        <attribute key="corpseType" value="blood" />
    </item>

attribute key "corpseType was not present.
Resolved:


Code:
    <item id="6077" article="a" name="dead toad">
        <attribute key="containerSize" value="10" />
        <attribute key="decayTo" value="5765" />
        <attribute key="duration" value="10" />
        <attribute key="fluidSource" value="blood" />
        <attribute key="corpseType" value="blood" />
    </item>

attribute key "corpseType was not present.
 
Solution
Back
Top