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

TalkAction [Many] My fully lua PET system (MANY FEATURES)

has any one tried to work a fully sql based version of this?
Would it even be a big interest in the sql version?
 
I cant even summon my pet.

i write "!pet" or "!pet "snake"" It dont summon. I dont get anyerrors in console.
I am using TFS 0.2.9
 
I accept with information: dofile("./petConfig.lua")
function onSay(cid, words, param)
if isExhausted(cid) == 1 then
return 0
end

local daPet = getPlayerStorageValue(cid, storages.petUid)
if isCreature(daPet) == 1 then
if param ~= nil then
if string.len(param) < lenght then
doCreatureSay(daPet, '' .. param .. '', TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, 'No more than ' .. lenght .. ' character. ')
end
else
doPlayerSendCancel(cid, 'You must enter a text')
end
else
doPlayerSendCancel(cid, 'You haven\'t call your pet!')
end
 
Lol can someone change this to unsolved? Might save others some time that way.
The script is not finished and poorly outdated.
If your using TFS 0.3.6 forget it, we dont have a Logout.lua and apparently no one knows the reason for it.

So this script doesn't work! No rep.
 
lol where is logout.lua on tfs 0.3.6 pl1
Just create it xS

Lol can someone change this to unsolved? Might save others some time that way.
The script is not finished and poorly outdated.
If your using TFS 0.3.6 forget it, we dont have a Logout.lua and apparently no one knows the reason for it.

So this script doesn't work! No rep.

You are very funny :)
Take this and find part with 'logout'
Subversion

After that just create logout.lua and add one line in creaturescripts.xml...

XML:
<event type="logout" name="PlayerLogout" event="script" value="logout.lua"/>

Lua:
function onLogout(cid, forceLogout)
	--- some code? just you will know what put here
	return true
end

And ofc register this event in onLogin script
 
Last edited:
Back
Top