Have you changed anything in your database?
Or added any scripts recently?
Need more information..
he didn't even said which server he is using lol
function onUse(cid, item, fromPosition, itemEx, toPosition)
local cfg = {}
cfg.refuel = 42 * 60 * 1000
if(getPlayerStamina(cid) >= cfg.refuel) then
doPlayerSendCancel(cid, "Your stamina is already full.")
else
doPlayerSetStamina(cid, cfg.refuel)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.")
doRemoveItem(item.uid,1)
end
return true
end
The only script about stamina is the stamina refuel:
Code:function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = {} cfg.refuel = 42 * 60 * 1000 if(getPlayerStamina(cid) >= cfg.refuel) then doPlayerSendCancel(cid, "Your stamina is already full.") else doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") doRemoveItem(item.uid,1) end return true end
Thanks!
It's in the sources. I remember correcting this sometime around client 9.7, can't remember exactly where the issue was though. The problem is that the stamina isn't getting saved with your character at death, so it gets reset to your last login iirc.
42 minutes ? That's not refilled.
If you search for the stamina somewhere in "configmanager.h" I guess you can find it. And then locate where to change the stamina. ( Since you can change the samina in config.lua)
Probably it's incorrect. But can't you locate the script by right-clicking on it? It's a quite long time ago since I tried MSVC. I thought you could locate the stamina in that way.
That is not correct. I believe the changes were in player.cpp, but it has been a long time and I dont quite remember.
It's unlikely that anyone else will have more info, I've already looked through old commits from that time frame and it must have been notated to reference an issue, which can't be traced since the old issue tracker is not available anymore (already checked with Mark on this).
If I can find any spare time I will try to locate to post the changes, but these days I am extremely busy.