William Sezo
Rookie but passionate
Tested as regular player or GM?
As a gm only.
Tested as regular player or GM?
As a gm only.
Try as regular player.
So as I was saying, I believe that some event (petdeath e.g) is causing the storagevalue to be altered outside the parameters 0 -1 -2. Could make a function on login to check if petUid is different from 0 -1 and -2 and if so, change it back to 0, what do you think hellboy?
Since all problematic storage values where positive values, I've put this on login.lua, please see if it's correct:
for w = 10001, 10001 do --pet uid storage
if player:getStorageValue(10001) > 0 then
player:setStorageValue(w, 0)
end
end
Thanks for diging and find problem. I have too take a look one more time to my code and fix it.
Pet uid storage is set to value higer than 2, when is online, it's creature uid used by scripts to manage pet (set health, maxhealt, etc.).
Propably there is issue in pet death script or TFS crashed, when pet was online.
I'll try to fix it at weekend.
Thanks hellboy! For now the quick fix seems to be working, everytime the character relog, if by some crash the uid remained altered when offline, the server sets it back to "0". No more problems so far.
In time, how are you in the "!pettransfer" command, it's a very nice feature to have.
Hmm... I can try create this command. It shouldn't be hard to implement.
I'll do it at weekend with online fix.
BTW You create your own OTS or only experiment with new scripts? I would be glad to see OTS with this script.
I can't reproduce issue but I added simple fix in data/chatchannels/scripts/pet.lua (Take a look at first post)
I'm not quite sure, but it can be caused by another data type of storage (int32_t) and creature id (uint32_t)?
Max int32 number is 2147483647, max uint32 is 4294967295.
i have this error im use TFS1.2 client 10.90
and this
https://ufile.io/a9912re upload monsters please
mediafire
thanksmediafire
also otland cloud
I'll do it tomorrow. Maybe it's better idea to create git repository?re upload monsters please²
use thismediafire
also otland cloud