• 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 1.X+ pool of lifefluid

CastorFlynn

Member
Joined
Aug 29, 2021
Messages
88
Reaction score
8
When a creature dies like an elf, dwarf, hunter, a pool of lifefluid is created. The correct would be pool of blood right?

If so, where can I find the code that manages the creation of this pool in corpses?
 
You have to change race in each monster .xml file.

creature.cpp
C++:
        Item* splash;
        switch (getRace()) {
            case RACE_VENOM:
                splash = Item::CreateItem(ITEM_FULLSPLASH, FLUID_SLIME);
                break;

            case RACE_BLOOD:
                splash = Item::CreateItem(ITEM_FULLSPLASH, FLUID_BLOOD);
                break;

            default:
                splash = nullptr;
                break;
        }

elf.xml
XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<monster name="Elf" nameDescription="an elf" race="blood" experience="42" speed="190" manacost="320">
    <health now="100" max="100"/>
    <look type="62" corpse="6003"/>

1691424475063.png
 
Back
Top