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

markitooz

New Member
Joined
Jun 21, 2009
Messages
3
Reaction score
0
Can help me on this script plizzz.

I need the pet who did not atack to summon.
He Atack me all times ;/.

Script:data/talkactions/scripts


function doPlayerAddSummon(cid, name, pos)
local creature = doSummonCreature(name, pos)
doConvinceCreature(cid, creature)
return creature
end

function onSay(cid, words, param)
local petUid = 0
local pos = getCreaturePosition(cid)
local store = getPlayerStorageValue(cid, 1000)
if words == "!pet" then
if store == -1 then
if getTilePzInfo(pos) == FALSE then
petUid = doPlayerAddSummon(cid, "Pet", pos)
setPlayerStorageValue(cid, 1000, petUid)
else
doPlayerSendCancel(cid, "You can not call your pet in a protection zone.")
end
else
if isCreature(store) == TRUE then
doRemoveCreature(store)
setPlayerStorageValue(cid, 1000, 0)
else
if getTilePzInfo(pos) == false then
petUid = doPlayerAddSummon(cid, "Pet", pos)
setPlayerStorageValue(cid, 1000, petUid)
else
doPlayerSendCancel(cid, "You can not call your pet in a protection zone.")
end
end
end
end
end
 
Back
Top