• 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.0] Way to make yourself full forever?

EvoSoft

Is Da Mapper
Joined
Mar 10, 2010
Messages
693
Reaction score
5
Location
Northen part of Sweden
Is is possible to make yourself full forever by, for example, using an item?
It would set the xxxx storage value to 1, and if it's one then it'll eat food for you or something...
I DONT KNOW xD

Soo... is it? xD
 
Well I guess you could use a while loop to check the players condition with an addEvent function to not make it spam the same thing thousends of times per second, another way could be to add the max value int(guessing its the 32bit and thats 24.4kk?) as the "feed limit".
Another ide could be to use some kind of a for loop each min via a globalevent for all the players that has the storage value, the player will be feed.
 
food is not handled in source
go to global.lua and edit the function:

Code:
function Player.feed(self, food)
    local condition = self:getCondition(CONDITION_REGENERATION, CONDITIONID_DEFAULT)
    if condition then
        condition:setTicks(condition:getTicks() + (food * 1000))
    else
        local vocation = self:getVocation()
        if not vocation then
            return nil
        end

        foodCondition:setTicks(food * 1000)
        foodCondition:setParameter(CONDITION_PARAM_HEALTHGAIN, vocation:getHealthGainAmount())
        foodCondition:setParameter(CONDITION_PARAM_HEALTHTICKS, vocation:getHealthGainTicks() * 1000)
        foodCondition:setParameter(CONDITION_PARAM_MANAGAIN, vocation:getManaGainAmount())
        foodCondition:setParameter(CONDITION_PARAM_MANATICKS, vocation:getManaGainTicks() * 1000)

        self:addCondition(foodCondition)
    end
    return true
end

:)
 
Back
Top