I might be a newbie with scripts. But I was tryin' this Pet System and the last i never understood:
And make sure to add this on your logout sctipt
Top:
and inside the onLogout
Where do i do that?
And make sure to add this on your logout sctipt
Top:
PHP:
dofile("./petConfig.lua")
and inside the onLogout
PHP:
if isCreature(getPlayerStorageValue(cid, storages.petUid)) == 1 then if getPlayerStorageValue(cid, storages.petIsOnline) == 2 then setPlayerStorageValue(cid, storages.petIsOnline, 1) end end
Where do i do that?