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

In regards to doPlayerFeed()

Rexxar

of Unimatrix Zero-One
Joined
Jun 4, 2009
Messages
1,014
Solutions
3
Reaction score
130
Location
Narnia
So I was working on a script today which required implementation of doPlayerFeed(), and I discovered something odd.

Regarding to TibiaWiki, the max amount of time you can be fed is aparently 1200 seconds (20 minutes).
So then technically to make someone full for the max amount of time, I should use:

Code:
doPlayerFeed(cid, 1200)

Right?

Wrong.

I did a test with doPlayerFeed(cid, 10), and to my surprise, when requesting 10 seconds of feed, I got 30 seconds instead.
So I headed over to the food.lua to have a look, and to my surprise I found out that aparently the script has been adapted to this oddity.
The max amount of feed time you can get in food.lua is 400, which x3 is 1200.


I can understand the usage of *4 and such in the food.lua to prevent overfeeding or abuse, but why must the command feed you three times as much as you requested? Wouldn't it just be easier to make doPlayerFeed() feed you the number you fill in?

So yeah I suppose this question is directed towards Talauren or Elf... Is it suppose to be this way (if so, why?), or should I file a bug report?

Also sorry if this is in the wrong section, but I have absolutely not a clue to where to put a question like this.
 
Bumping the topic in hopes of getting some answer in regards to this, especially the part about whether or not this should be filed as a bug report or not.
 
Back
Top