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

Solved Can't move corpses

Nottinghster

Tibia World RPG Developer
Joined
Oct 24, 2007
Messages
1,570
Solutions
6
Reaction score
437
Location
Brazil - Rio de Janeiro
GitHub
Nottinghster
Hello OTlanders!!

Well, I'm havin' some problems, already try to fix it but I really don't where is the problem...

Explaining:

When I kill a monster, I can't move the corpse for some seconds, here's the gif

bMvdkG.gif


Note: Version 7.72

------------ EDIT ------------

Problem fixed, thanks to Assassina Mutante
 

Attachments

Last edited:
Solution
HERE'S THE SOLUTION THAT I'VE MADE TO MY PROJECT

You will be able to use a preprocessor definition, if you want to use corpse owner or not...

PS: DO NOT FORGET TO COMPILE WITH PREPROCESSOR "__SHOULD_USE_CORPSEOWNER__" IF YOU WANT TO USE CORPSE OWNER

In monster.h

Replace this:
Code:
virtual uint16_t getLookCorpse() const { return mType->lookCorpse; }

For this (this is the real solution, thanks to Assassina Mutante):
Code:
    #ifdef __SHOULD_USE_CORPSEOWNER__
        virtual uint16_t getLookCorpse() const { return mType->lookCorpse; }
    #else
        virtual uint16_t getLookCorpse() const { // Remove corpse owner
        const ItemType& itemtype = Item::items[mType->lookCorpse];
            if (itemtype.decayTo != 0)...
Last edited:
items.xml
unmovable corpse is a different id than the next corpse id
Lua:
<attribute key="duration" value="10" />
this? there a workaround in source? maybe removing code? or data/scripts
Lua:
default_onDropLoot.lua

how do i commits all lines that contains word "duration"

edit: tried in itemsl.xml is not working. if i remove this
Code:
<!-- <attribute key="duration" value="10" /> -->
i cannot move corpses at all
 
Last edited:
yes


no


no


you will need to do by hand


yes it is working, I just tested
edit: tried in itemsl.xml is not working. if i remove this
Code:
<!-- <attribute key="duration" value="10" /> -->
i cannot move corpses at all
}
Lua:
11:13 You see a dead rat (Vol:10).
Item ID: 5964
Decays to: 3073
Position: 32323, 32249,
Code:
</item>
    <item id="5964" article="a" name="dead rat">
        <attribute key="containerSize" value="10" />
        <attribute key="decayTo" value="3073" />
        <!--<attribute key="duration" value="10" />-->
        <attribute key="corpseType" value="blood" />
        <attribute key="fluidSource" value="blood" />
    </item>

Ok i figured it out i changed value <attribute key="duration" value="10" /> to <attribute key="duration" value="1" />
and it's working, but i cannot set value 0 or disable that line otherwise im not able to move corpses, there's a way to do what i want? move corpse instantly?
 
Last edited:
edit: tried in itemsl.xml is not working. if i remove this
Code:
<!-- <attribute key="duration" value="10" /> -->
i cannot move corpses at all
}
Lua:
11:13 You see a dead rat (Vol:10).
Item ID: 5964
Decays to: 3073
Position: 32323, 32249,
Code:
</item>
    <item id="5964" article="a" name="dead rat">
        <attribute key="containerSize" value="10" />
        <attribute key="decayTo" value="3073" />
        <!--<attribute key="duration" value="10" />-->
        <attribute key="corpseType" value="blood" />
        <attribute key="fluidSource" value="blood" />
    </item>

Ok i figured it out i changed value <attribute key="duration" value="10" /> to <attribute key="duration" value="1" />
and it's working, but i cannot set value 0 or disable that line otherwise im not able to move corpses, there's a way to do what i want? move corpse instantly?
You can try this one from me -> Solved - Can't move corpses (https://otland.net/threads/cant-move-corpses.188625/#post-2530200)

Or you'll have to use Item Editor and remove the flag "Unmoveable", something like that, don't remember right now...
 
Back
Top