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

Pet system

edit your sources..

I've seen people that used the same petsystem that haven't edited sources and the pets can go in PZ zone, I've found this in the pet.lua:

function summonPet(cid, pos)
local petuid = getPlayerPet(cid)
if isCreature(petuid) then
return false
end
if getTilePzInfo(getCreaturePosition(cid)) or getTilePzInfo(pos) or doTileQueryAdd(cid, pos) ~= 1 then
return false
end
local pet = doSummonCreature(PETS.PREFIX..PETS.IDENTIFICATION[getPlayerPetType(cid)].name, pos)
if isCreature(pet) then
 
Well thats just the part which makes it impossible to summon a pet somewhere where is no space or in a proctectionzone.

But pets/monsters can't go in pz anyway so it won't help you to change that.
 
Back
Top