• 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!

Draw well/ bucket of water / trough

jigsaw

Member
Joined
Dec 21, 2008
Messages
137
Solutions
4
Reaction score
16
Hello everyone,

Server OTX 7.72

here's the thing... I tried to use draw well of rookgaard, the one right in the middle of the village. It does not work at all. So I create a bucket and used in the water of the sewer below. Thats ok. It worked. BUT, when I try to pass the water from bucket to the trough it does not work too, the water disappear from the bucket, but the trough does not have water in it.

Any clues guys? thank you so much.
 
Last edited:
Solution
Yes, I know I am contributing to the downfall of OT community in general when I help the noob who doesn't want to study enough or look around for the solution. But OTLand is pretty much dead, and the graves which can be dug for information are really to deep, to which I would wish to condemn nobody upon.

So here's my code for fluids:
Lua:
-- Author:         Rodrigo (Nottinghster) - (OTLand, OTFans, XTibia, OTServBR)
-- Country:        Brazil
-- From:         Tibia World RPG OldSchool
-- Email:         [email protected]
-- Compiler:    Tibia World Script Maker (Action)

local exhaust = createConditionObject(CONDITION_EXHAUSTED)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000)

local drunk =...
simple fixes, I suggest that you try and figure this out on your own as the learning experience will help you out more in the future..

post your scripts tho if your having trouble and well help you out.
 
Yes, I know I am contributing to the downfall of OT community in general when I help the noob who doesn't want to study enough or look around for the solution. But OTLand is pretty much dead, and the graves which can be dug for information are really to deep, to which I would wish to condemn nobody upon.

So here's my code for fluids:
Lua:
-- Author:         Rodrigo (Nottinghster) - (OTLand, OTFans, XTibia, OTServBR)
-- Country:        Brazil
-- From:         Tibia World RPG OldSchool
-- Email:         [email protected]
-- Compiler:    Tibia World Script Maker (Action)

local exhaust = createConditionObject(CONDITION_EXHAUSTED)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000)

local drunk = createConditionObject(CONDITION_DRUNK)
setConditionParam(drunk, CONDITION_PARAM_TICKS, 120000)

local poison = createConditionObject(CONDITION_POISON)
setConditionParam(poison, CONDITION_PARAM_DELAYED, true)
addDamageCondition(poison, 5, 6000, -5)
addDamageCondition(poison, 5, 6000, -4)
addDamageCondition(poison, 7, 6000, -3)
addDamageCondition(poison, 10, 6000, -2)
addDamageCondition(poison, 19, 6000, -1)

local FLUID = {WATER = 1, BLOOD = 2, BEER = 3, SLIME = 4, LEMONADE = 5, MILK = 6, MANA = 7,
                LIFE = 10, OIL = 11, URINE = 13, WINE = 15, MUD = 19, LAVA = 26, SWAMP = 28}
               
function isPlayerVip(bool)
    return FALSE
end

function onUse(cid, item, frompos, item2, topos)
    if(hasCondition(cid, CONDITION_EXHAUSTED) == TRUE) then
        doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
        return TRUE
    end

    if (item.type == 0 and item2.itemid >= 1) then
        if item2.itemid >= 490 and item2.itemid <= 517 or item2.itemid >= 618 and item2.itemid <= 629 or item2.itemid == 1368 or item2.itemid == 1369 or item2.itemid >= 4820 and item2.itemid <= 4825 or item2.itemid >= 4828 and item2.itemid <= 4831 or item2.itemid >= 4608 and item2.itemid <= 4666 then
            doChangeTypeItem(item.uid, 1)
        elseif item2.itemid == 103 then
            doChangeTypeItem(item.uid, 19)
        elseif item2.itemid >= 598 and item2.itemid < 601 or item2.itemid == 1509 or item2.itemid >= 518 and item2.itemid <= 529 then
            doChangeTypeItem(item.uid, 26)
        elseif item2.itemid >= 351 and item2.itemid <= 355 then
            doChangeTypeItem(item.uid, 19)
        elseif item2.itemid >= 602 and item2.itemid <= 605 or item2.itemid >= 4691 and item2.itemid <= 4755 or item2.itemid == 4758 then
            doChangeTypeItem(item.uid, 28)
        elseif item2.itemid == 1771 then
            doChangeTypeItem(item.uid, 1)
        elseif item2.itemid == 1772 then
            doChangeTypeItem(item.uid, 3)
        elseif item2.itemid == 1773 then
            doChangeTypeItem(item.uid, 15)
        elseif item2.itemid > 2806 and item2.itemid < 3132 or item2.itemid >= 4251 and item2.itemid <= 4327 then
            doChangeTypeItem(item.uid, 2)
        end
        return TRUE
    elseif(item2.uid == cid)then
        doChangeTypeItem(item.uid, 0)
        if item.type == FLUID.SLIME then
            doPlayerSay(cid, "Argh!", 1)
            doAddCondition(cid, poison)
        elseif item.type == FLUID.BEER or item.type == FLUID.WINE then
            doPlayerSay(cid, "Aah...", 1)
            doAddCondition(cid, drunk)
        elseif item.type == FLUID.MANA and isPlayerVip(cid) == TRUE then
            new_mana = math.random(80, 160)
            doPlayerAddMana(cid, new_mana)
            doSendMagicEffect(topos, 12)
            doPlayerSay(cid, "Aaaah...", 1)
            doAddCondition(cid, exhaust)
            doRemoveItem(item.uid)
        elseif item.type == FLUID.MANA and isPlayerVip(cid) == FALSE then
            new_mana = math.random(80, 160)
            doPlayerAddMana(cid, new_mana)
            doSendMagicEffect(topos, 12)
            doPlayerSay(cid, "Aaaah...", 1)
            doAddCondition(cid, exhaust)
        elseif item.type == FLUID.LIFE and isPlayerVip(cid) == FALSE then
            new_life = math.random(40, 80)
            doPlayerAddHealth(cid, new_life)
            doSendMagicEffect(topos, 12)
            doPlayerSay(cid, "Aaaah...", 1)
        elseif item.type == FLUID.LIFE and isPlayerVip(cid) ==  TRUE then
            new_life = math.random(40, 80)
            doPlayerAddHealth(cid, new_life)
            doSendMagicEffect(topos, 12)
            doPlayerSay(cid, "Aaaah...", 1)
            doRemoveItem(item.uid)
        else
            doPlayerSay(cid, "Gulp.", 1)
        end
        return TRUE
    end

    if(item.type ~= 0 and item2.itemid)then
        doChangeTypeItem(item.uid, 0)
        splash = doCreateItem(2025, item.type, topos)
        doDecayItem(splash)
    else
        doPlayerSendCancel(cid, "It is empty.")
    end
    return TRUE
end

Shared without consent of the maker. Try to figure out how to add it, newbie.
 
Solution
Back
Top