Simbaclaws
ˁ(⦿ᴥ⦿)ˀ
I found a script I'd like to add to my server for enabling pets. The thread can be found here:
https://otland.net/threads/many-my-fully-lua-pet-system-many-features.3432/
now, I am still a total noob so please don't take this the wrong way.
The person who made this script basically tells me to put something in my logout script.
Now I've tried searching for it on github for the tfs 1.2 files. And I found a file under: data/creaturescripts/scripts/logout.lua
Is this the logout file that's being referred to in the thread or am I completely wrong?
I would like to know to which script I would have to add his/her code to.
Also I suppose I should replace the cid with playerId? Because my current logout.lua script looks like this:
I am guessing cid stands for creature id?
https://otland.net/threads/many-my-fully-lua-pet-system-many-features.3432/
now, I am still a total noob so please don't take this the wrong way.
The person who made this script basically tells me to put something in my logout script.
Now I've tried searching for it on github for the tfs 1.2 files. And I found a file under: data/creaturescripts/scripts/logout.lua
Is this the logout file that's being referred to in the thread or am I completely wrong?
I would like to know to which script I would have to add his/her code to.
Also I suppose I should replace the cid with playerId? Because my current logout.lua script looks like this:
Code:
function onLogout(player)
local playerId = player:getId()
if nextUseStaminaTime[playerId] ~= nil then
nextUseStaminaTime[playerId] = nil
end
return true
end
I am guessing cid stands for creature id?
Last edited: