• 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+ how to remove effect tfs 1.5 7.72

bpm91

Advanced OT User
Joined
May 23, 2019
Messages
1,046
Solutions
7
Reaction score
180
Location
Brazil
YouTube
caruniawikibr
hello, can anyone tell me how i remove the orange effect when using fluids? and then when using fluids the sentence appears in yellow in the default too?
 
data/actions/scripts/other/fluids.lua


sentences :

LUA:
local fluidMessage = {
    [FLUID_BEER] = "Aah...",
    [FLUID_SLIME] = "Urgh!",
    [FLUID_LEMONADE] = "Mmmh.",
    [FLUID_MANA] = "Aaaah...",
    [FLUID_LIFE] = "Aaaah...",
    [FLUID_OIL] = "Urgh!",
    [FLUID_URINE] = "Urgh!",
    [FLUID_WINE] = "Aah...",
    [FLUID_MUD] = "Urgh!",
    [FLUID_RUM] = "Aah...",
    [FLUID_MEAD] = "Aaaah..."
}



effect
LUA:
    if target.itemid == 1 then
        if item.type == FLUID_NONE then
            player:sendTextMessage(MESSAGE_STATUS_SMALL, "It is empty.")
        elseif target.uid == player.uid then
            if table.contains({FLUID_BEER, FLUID_WINE, FLUID_MEAD}, item.type) then
                player:addCondition(drunk)
            elseif item.type == FLUID_SLIME then
                player:addCondition(poison)
            elseif item.type == FLUID_MANA then
                player:addMana(math.random(50, 150))
                fromPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE)
            elseif item.type == FLUID_LIFE then
                player:addHealth(60)
                fromPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE)
            end
 
my potion when using it directly from the ground on the character has a blue effect on the vial and not on the character, how do I fix it?
Post automatically merged:

the Aaaaah... I want it, but I wish it wasn't an orange effect
 
my potion when using it directly from the ground on the character has a blue effect on the vial and not on the character, how do I fix it?

LUA:
fromPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE)

You need to change to:

LUA:
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
 

Similar threads

Back
Top