• 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.5 8.6 You see a pool of beer. when use a great spirit potion on the floor. only monsters You see a pool of lifefluid.

Jeyci

Banned User
Joined
May 6, 2023
Messages
289
Solutions
3
Reaction score
36
Hello

When I use great spirit potion on floor and i click the pool to view it i get this message You see a pool of beer. I'm sure that it's not the message that i should get.
the same occurs with monsters, but not with health potions, it's strange. How to fix this?
This is my items.xml
Lua:
<?xml version="1.0" encoding="iso-8859-1"?>
<items>
    <item id="1" name="water" />
    <item id="2" name="lifefluid" />
    <item id="3" name="beer" />
    <item id="4" name="slime" />
    <item id="5" name="lemonade" />
    <item id="6" name="milk" />
    <item id="7" name="manafluid" />
    <item id="10" name="blood" />
    <item id="11" name="oil" />
    <item id="13" name="urine" />
    <item id="14" name="coconut milk" />
    <item id="15" name="wine" />
    <item id="19" name="mud" />
    <item id="21" name="fruit juice" />
    <item id="26" name="lava" />
    <item id="27" name="rum" />
    <item id="28" name="swamp" />
    <item id="35" name="tea" />
    <item id="43" name="mead" />

Code:
<item id="8472" article="a" name="great spirit potion">
        <attribute key="weight" value="310" />
        <attribute key="description" value="This potion can only be consumed by paladins of level 80 or higher." />
    </item>
}
This c++ at const.h
Code:
enum FluidColors_t : uint8_t {
    FLUID_EMPTY,
    FLUID_BLUE,
    FLUID_RED,
    FLUID_BROWN,
    FLUID_GREEN,
    FLUID_YELLOW,
    FLUID_WHITE,
    FLUID_PURPLE,
};

enum FluidTypes_t : uint8_t {
    FLUID_NONE = FLUID_EMPTY,
    FLUID_WATER = FLUID_BLUE,
    FLUID_BLOOD = FLUID_RED,
    FLUID_BEER = FLUID_BROWN,
    FLUID_SLIME = FLUID_GREEN,
    FLUID_LEMONADE = FLUID_YELLOW,
    FLUID_MILK = FLUID_WHITE,
    FLUID_MANA = FLUID_PURPLE,

    FLUID_LIFE = FLUID_RED + 8,
    FLUID_OIL = FLUID_BROWN + 8,
    FLUID_URINE = FLUID_YELLOW + 8,
    FLUID_COCONUTMILK = FLUID_WHITE + 8,
    FLUID_WINE = FLUID_PURPLE + 8,

    FLUID_MUD = FLUID_BROWN + 16,
    FLUID_FRUITJUICE = FLUID_YELLOW + 16,

    FLUID_LAVA = FLUID_RED + 24,
    FLUID_RUM = FLUID_BROWN + 24,
    FLUID_SWAMP = FLUID_GREEN + 24,

    FLUID_TEA = FLUID_BROWN + 32,

    FLUID_MEAD = FLUID_BROWN + 40,
};

const uint8_t reverseFluidMap[] = {
    FLUID_EMPTY,
    FLUID_WATER,
    FLUID_MANA,
    FLUID_BEER,
    FLUID_EMPTY,
    FLUID_BLOOD,
    FLUID_SLIME,
    FLUID_EMPTY,
    FLUID_LEMONADE,
    FLUID_MILK,
};

const uint8_t clientToServerFluidMap[] = {
    FLUID_EMPTY,
    FLUID_WATER,
    FLUID_MANA,
    FLUID_BEER,
    FLUID_MUD,
    FLUID_BLOOD,
    FLUID_SLIME,
    FLUID_RUM,
    FLUID_LEMONADE,
    FLUID_MILK,
    FLUID_WINE,
    FLUID_LIFE,
    FLUID_URINE,
    FLUID_OIL,
    FLUID_FRUITJUICE,
    FLUID_COCONUTMILK,
    FLUID_TEA,
    FLUID_MEAD,
};

enum ClientFluidTypes_t : uint8_t {
    CLIENTFLUID_EMPTY = 0,
    CLIENTFLUID_BLUE = 1,
    CLIENTFLUID_PURPLE = 2,
    CLIENTFLUID_BROWN_1 = 3,
    CLIENTFLUID_BROWN_2 = 4,
    CLIENTFLUID_RED = 5,
    CLIENTFLUID_GREEN = 6,
    CLIENTFLUID_BROWN = 7,
    CLIENTFLUID_YELLOW = 8,
    CLIENTFLUID_WHITE = 9,
};

const uint8_t fluidMap[] = {
    CLIENTFLUID_EMPTY,
    CLIENTFLUID_BLUE,
    CLIENTFLUID_RED,
    CLIENTFLUID_BROWN_1,
    CLIENTFLUID_GREEN,
    CLIENTFLUID_YELLOW,
    CLIENTFLUID_WHITE,
    CLIENTFLUID_PURPLE,
};

This does not happens with mana or health potions, but i noticed that corpses that drop blood display this
Lua:
21:34 You see a pool of lifefluid.
thanks
 
Last edited:
Solution
Hello

When I use great spirit potion on floor and i click the pool to view it i get this message You see a pool of beer. I'm sure that it's not the message that i should get.
the same occurs with monsters, but not with health potions, it's strange. How to fix this?
This is my items.xml
Lua:
<?xml version="1.0" encoding="iso-8859-1"?>
<items>
    <item id="1" name="water" />
    <item id="2" name="lifefluid" />
    <item id="3" name="beer" />
    <item id="4" name="slime" />
    <item id="5" name="lemonade" />
    <item id="6" name="milk" />
    <item id="7" name="manafluid" />
    <item id="10" name="blood" />
    <item id="11" name="oil" />
    <item id="13" name="urine" />
    <item id="14" name="coconut milk" />
    <item...
Hello

When I use great spirit potion on floor and i click the pool to view it i get this message You see a pool of beer. I'm sure that it's not the message that i should get.
the same occurs with monsters, but not with health potions, it's strange. How to fix this?
This is my items.xml
Lua:
<?xml version="1.0" encoding="iso-8859-1"?>
<items>
    <item id="1" name="water" />
    <item id="2" name="lifefluid" />
    <item id="3" name="beer" />
    <item id="4" name="slime" />
    <item id="5" name="lemonade" />
    <item id="6" name="milk" />
    <item id="7" name="manafluid" />
    <item id="10" name="blood" />
    <item id="11" name="oil" />
    <item id="13" name="urine" />
    <item id="14" name="coconut milk" />
    <item id="15" name="wine" />
    <item id="19" name="mud" />
    <item id="21" name="fruit juice" />
    <item id="26" name="lava" />
    <item id="27" name="rum" />
    <item id="28" name="swamp" />
    <item id="35" name="tea" />
    <item id="43" name="mead" />

Code:
<item id="8472" article="a" name="great spirit potion">
        <attribute key="weight" value="310" />
        <attribute key="description" value="This potion can only be consumed by paladins of level 80 or higher." />
    </item>
}
This c++ at const.h
Code:
enum FluidColors_t : uint8_t {
    FLUID_EMPTY,
    FLUID_BLUE,
    FLUID_RED,
    FLUID_BROWN,
    FLUID_GREEN,
    FLUID_YELLOW,
    FLUID_WHITE,
    FLUID_PURPLE,
};

enum FluidTypes_t : uint8_t {
    FLUID_NONE = FLUID_EMPTY,
    FLUID_WATER = FLUID_BLUE,
    FLUID_BLOOD = FLUID_RED,
    FLUID_BEER = FLUID_BROWN,
    FLUID_SLIME = FLUID_GREEN,
    FLUID_LEMONADE = FLUID_YELLOW,
    FLUID_MILK = FLUID_WHITE,
    FLUID_MANA = FLUID_PURPLE,

    FLUID_LIFE = FLUID_RED + 8,
    FLUID_OIL = FLUID_BROWN + 8,
    FLUID_URINE = FLUID_YELLOW + 8,
    FLUID_COCONUTMILK = FLUID_WHITE + 8,
    FLUID_WINE = FLUID_PURPLE + 8,

    FLUID_MUD = FLUID_BROWN + 16,
    FLUID_FRUITJUICE = FLUID_YELLOW + 16,

    FLUID_LAVA = FLUID_RED + 24,
    FLUID_RUM = FLUID_BROWN + 24,
    FLUID_SWAMP = FLUID_GREEN + 24,

    FLUID_TEA = FLUID_BROWN + 32,

    FLUID_MEAD = FLUID_BROWN + 40,
};

const uint8_t reverseFluidMap[] = {
    FLUID_EMPTY,
    FLUID_WATER,
    FLUID_MANA,
    FLUID_BEER,
    FLUID_EMPTY,
    FLUID_BLOOD,
    FLUID_SLIME,
    FLUID_EMPTY,
    FLUID_LEMONADE,
    FLUID_MILK,
};

const uint8_t clientToServerFluidMap[] = {
    FLUID_EMPTY,
    FLUID_WATER,
    FLUID_MANA,
    FLUID_BEER,
    FLUID_MUD,
    FLUID_BLOOD,
    FLUID_SLIME,
    FLUID_RUM,
    FLUID_LEMONADE,
    FLUID_MILK,
    FLUID_WINE,
    FLUID_LIFE,
    FLUID_URINE,
    FLUID_OIL,
    FLUID_FRUITJUICE,
    FLUID_COCONUTMILK,
    FLUID_TEA,
    FLUID_MEAD,
};

enum ClientFluidTypes_t : uint8_t {
    CLIENTFLUID_EMPTY = 0,
    CLIENTFLUID_BLUE = 1,
    CLIENTFLUID_PURPLE = 2,
    CLIENTFLUID_BROWN_1 = 3,
    CLIENTFLUID_BROWN_2 = 4,
    CLIENTFLUID_RED = 5,
    CLIENTFLUID_GREEN = 6,
    CLIENTFLUID_BROWN = 7,
    CLIENTFLUID_YELLOW = 8,
    CLIENTFLUID_WHITE = 9,
};

const uint8_t fluidMap[] = {
    CLIENTFLUID_EMPTY,
    CLIENTFLUID_BLUE,
    CLIENTFLUID_RED,
    CLIENTFLUID_BROWN_1,
    CLIENTFLUID_GREEN,
    CLIENTFLUID_YELLOW,
    CLIENTFLUID_WHITE,
    CLIENTFLUID_PURPLE,
};

This does not happens with mana or health potions, but i noticed that corpses that drop blood display this
Lua:
21:34 You see a pool of lifefluid.
thanks
Your potion script should provide which id it "creates" when using a potion.
Then either replace the id with the correct one or change name on that id.
 
Solution
Your potion script should provide which id it "creates" when using a potion.
Then either replace the id with the correct one or change name on that id.
Hello, the thing is that i don't have great spirit declared in items.xml
Lua:
    <item id="1" name="water" />
    <item id="10" name="lifefluid" />
    <item id="3" name="beer" />
    <item id="4" name="slime" />
    <item id="5" name="lemonade" />
    <item id="6" name="milk" />
    <item id="7" name="manafluid" />
    <item id="2" name="blood" />
    <item id="11" name="oil" />
    <item id="13" name="urine" />
    <item id="14" name="coconut milk" />
    <item id="15" name="wine" />
    <item id="19" name="mud" />
    <item id="21" name="fruit juice" />
    <item id="26" name="lava" />
    <item id="27" name="rum" />
    <item id="28" name="swamp" />
    <item id="35" name="tea" />
    <item id="43" name="mead" />
i use clean 8.6 items.xml

edit
solved like this replaced value 35 that i think it's not used at all
Code:
    <item id="35" name="spirit potion" />
and now i can see it ingame
Code:
15:37 You see a pool of spirit potion.
 
Last edited:
Back
Top