• 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.2 Please HELP MANAFLUID LIFEFLUID NOT WORKING..

danylook2

Member
Joined
Dec 17, 2011
Messages
63
Reaction score
5
Location
United Kingdom, Birmingham
Can someone fix Manafluid and lifefluid on tfs 1.2 how can i fix this potions when i use it is like a drink not adding mana or health , just not working help me please is very important please please help me !

Mana Fluid:
You see a vial of unknown.
It weighs 1.80 oz.
Item ID: 2006
Lifefluid:
01:42 You see a vial of unknown.
It weighs 1.80 oz.
Item ID: 2006
data/actions/scripts/other/
Actions.xml
<action fromid="2376" toid="2404" script="other/destroy.lua" />
<action fromid="2406" toid="2419" script="other/destroy.lua" />
<action fromid="2421" toid="2453" script="other/destroy.lua" />
<action fromid="2005" toid="2009" script="other/fluids.lua" />
<action fromid="2011" toid="2015" script="other/fluids.lua" />
<action itemid="2023" script="other/fluids.lua" />
<action itemid="1775" script="other/fluids.lua" />
<action fromid="2031" toid="2034" script="other/fluids.lua" />
<action fromid="2574" toid="2577" script="other/fluids.lua" />


local drunk = Condition(CONDITION_DRUNK)
drunk:setParameter(CONDITION_PARAM_TICKS, 60000)

local poison = Condition(CONDITION_POISON)
poison:setParameter(CONDITION_PARAM_DELAYED, true)
poison:setParameter(CONDITION_PARAM_MINVALUE, -50)
poison:setParameter(CONDITION_PARAM_MAXVALUE, -120)
poison:setParameter(CONDITION_PARAM_STARTVALUE, -5)
poison:setParameter(CONDITION_PARAM_TICKINTERVAL, 4000)
poison:setParameter(CONDITION_PARAM_FORCEUPDATE, true)

local fluidType = {3, 4, 5, 7, 10, 11, 13, 15, 19}
local fluidMessage = {"Aah...", "Urgh!", "Mmmh.", "Aaaah...", "Aaaah...", "Urgh!", "Urgh!", "Aah...", "Urgh!"}

function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local targetItemType = ItemType(target.itemid)
if targetItemType and targetItemType:isFluidContainer() then
if target.type == 0 and item.type ~= 0 then
target:transform(target:getId(), item.type)
item:transform(item:getId(), 0)
return true
elseif target.type ~= 0 and item.type == 0 then
target:transform(target:getId(), 0)
item:transform(item:getId(), target.type)
return true
end
end

if target:isCreature() then
if item.type == 0 then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "It is empty.")
elseif target == player then
item:transform(item:getId(), 0)
if item.type == 3 or item.type == 15 then
player:addCondition(drunk)
elseif item.type == 4 then
player:addCondition(poison)
elseif item.type == 7 then
player:addMana(math.random(50, 150))
fromPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE)
elseif item.type == 10 then
player:addHealth(60)
fromPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE)
end
for i = 0, #fluidType do
if item.type == fluidType then
player:say(fluidMessage, TALKTYPE_MONSTER_SAY)
return true
end
end
player:say("Gulp.", TALKTYPE_MONSTER_SAY)
else
Game.createItem(2016, item.type, toPosition):decay()
item:transform(item:getId(), 0)
end
else
local fluidSource = targetItemType and targetItemType:getFluidSource() or 0
if fluidSource ~= 0 then
item:transform(item:getId(), fluidSource)
elseif item.type == 0 then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "It is empty.")
else
if toPosition.x == CONTAINER_POSITION then
toPosition = player:getPosition()
end
Game.createItem(2016, item.type, toPosition):decay()
item:transform(item:getId(), 0)
end
end
return true
end
 
Last edited:
I want manafluid and lifefluid working on tfs 1.2
i post down error

This is screept that is not working please help me:
Mana Fluid:
You see a vial of unknown.
It weighs 1.80 oz.
Item ID: 2006
Lifefluid:
01:42 You see a vial of unknown.
It weighs 1.80 oz.
Item ID: 2006

Bump!

Bump!
 
Last edited by a moderator:
Bro i don''t ask u for your opinion so get out of this forum find friends on some where alse u only spam here I shoud report u for this so don't comeback here u little rat ..
Now you can be absolutely 100% sure. You wont get help ;)

You should report me?

You are pathetic. You have 30 messages, you never helped anyone and you are calling me little rat?
You should re-think your life.
 
Last edited:
Shut up already, you are allowed to bump every 24 hours, see you tomorrow :)
 
Back
Top