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

Pet System - only for 8.40- (fail) =(

Hello guy, how are you? I'm a brazilian and I'm here to tell you that your script is VERY Very good... (really) =p but i got a problem... It's doesn't work for 8.60... And this fact have killed me =o, please if you can tell me how to update this script to 8.6 or if you can do that... Thank you! s2 =p
 
@up

And make sure to add this on your logout sctipt
Top:

Lua:
dofile("./petConfig.lua")

and inside the onLogut:

Lua:
    if isCreature(getPlayerStorageValue(cid, storages.petUid)) == 1 then
        if getPlayerStorageValue(cid, storages.petIsOnline) == 2 then
            setPlayerStorageValue(cid, storages.petIsOnline, 1)
        end
    end

For noobs ¬¬:
Lua:
dofile("./petConfig.lua")

function onLogout(cid)
    if isCreature(getPlayerStorageValue(cid, storages.petUid)) == 1 then
        if getPlayerStorageValue(cid, storages.petIsOnline) == 2 then
            setPlayerStorageValue(cid, storages.petIsOnline, 1)
        end
    end
    return TRUE
end
Regards, all credits goes to FedeVI.
 
data/creaturescripts/scripts/logout.lua (if you dont have this file, create one)

insert:
Code:
dofile("./petConfig.lua")
 
function onLogout(cid)
    if isCreature(getPlayerStorageValue(cid, storages.petUid)) == 1 then
        if getPlayerStorageValue(cid, storages.petIsOnline) == 2 then
            setPlayerStorageValue(cid, storages.petIsOnline, 1)
        end
    end
    return TRUE
end

Dont forget to insert also into creaturescripts.xml

Dont forget: rep+
 
i do the script on
[9.80-9.86] The Forgotten Server v0.2.15 (Mystic Spirit)

and when i say 1 of the notes nothing happens and i dont find any error logs i dont now how i can fix it i have try al things

ps sry for bumping a this old post i realy need a pet system may you now an other thats works on my server? that wil help me 2 thank you
 
Back
Top