• 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 How to remove blood (splash) from monster corpses?

boxxer321

Active Member
Joined
Nov 5, 2011
Messages
112
Reaction score
41
Hi guys! How y'all doing today?

so... i want to remove all corpses from my server and transform it all to a bag... but when i do this, the blood (splash) continues... how can i remove it?
 
Change the monster type to undead inside the monster file.
I might be wrong about the 'type' though.
Just open up a skeleton to figure out the correct type to use.
 
Change the monster type to undead inside the monster file.
I might be wrong about the 'type' though.
Just open up a skeleton to figure out the correct type to use.

That way, the color of the hit, in this case red because of the blood, turns white ... I just wanted to remove the blood underneath
 
That way, the color of the hit, in this case red because of the blood, turns white ... I just wanted to remove the blood underneath
Mmm, well you could make an onKill script, and set an addEvent to remove the blood stain after a few milliseconds.
You use an addEvent, so that it happens after the creature has fully died.

Lua:
local function removeBlood(pos)
    if getTileItemById(pos, itemId).uid > 1 then
        doRemoveItem(getTileItemById(pos, itemId).uid)
    end
end
Lua:
addEvent(removeBlood, 1, pos)
 
Mmm, well you could make an onKill script, and set an addEvent to remove the blood stain after a few milliseconds.
You use an addEvent, so that it happens after the creature has fully died.

Lua:
local function removeBlood(pos)
    if getTileItemById(pos, itemId).uid > 1 then
        doRemoveItem(getTileItemById(pos, itemId).uid)
    end
end
Lua:
addEvent(removeBlood, 1, pos)

thanks, but, i found another way in sources... is just u go in game.cpp

search for that:

C++:
case RACE_BLOOD:textColor = TEXTCOLOR_RED;

magicEffect = MAGIC_EFFECT_DRAW_BLOOD;

splash = Item::CreateItem(ITEM_SMALLSPLASH, FLUID_BLOOD);

break;

and remove this line:

Code:
splash = Item::CreateItem(ITEM_SMALLSPLASH, FLUID_BLOOD);
 
thanks, but, i found another way in sources... is just u go in game.cpp

search for that:

C++:
case RACE_BLOOD:textColor = TEXTCOLOR_RED;

magicEffect = MAGIC_EFFECT_DRAW_BLOOD;

splash = Item::CreateItem(ITEM_SMALLSPLASH, FLUID_BLOOD);

break;

and remove this line:

Code:
splash = Item::CreateItem(ITEM_SMALLSPLASH, FLUID_BLOOD);
There's a few others, like poison (green blood) that you'd want to find as well I think.

Good job.
 
Back
Top