Rexxar
of Unimatrix Zero-One
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:
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.
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.