simbabrasil
New Member
- Joined
- Apr 23, 2023
- Messages
- 31
- Reaction score
- 1
hi guys, smn helped me with a script but i need one specific part, this part is on pet systems and pokemon servers, i need a script that the monster bring back to the item it was created everything i found was not working, gonna show some:
if not (getTilePzInfo(getCreaturePosition(cid))) then
------------------------------------
if #summon >= 1 then
for _, pid in ipairs(summon) do
doRemoveCreature(pid)
doCreatureSay(cid, ""..go.pet..", Recuar!", TALKTYPE_ORANGE_1)
end
return true
end
-----------------------------------------
and another one
-------------------------------------
local summons = getCreatureSummons(cid)
if(table.maxn(summons) < MaximoSummon) then -- no summons
doConvinceCreature(cid, doCreateMonster(MonsterName, getCreaturePosition(cid)))
else
for _, pid in ipairs(summons) do
doRemoveCreature(pid)
end
end
return true
end
----------------------------------------
I tried everything i found and nothing working the right way, the problem is the monster dont back to item, when click again on item it summons 2 monster and if i put max limit 1 monster after sumonning the first one when click on item again says that it cannot use the object, please help
if not (getTilePzInfo(getCreaturePosition(cid))) then
------------------------------------
if #summon >= 1 then
for _, pid in ipairs(summon) do
doRemoveCreature(pid)
doCreatureSay(cid, ""..go.pet..", Recuar!", TALKTYPE_ORANGE_1)
end
return true
end
-----------------------------------------
and another one
-------------------------------------
local summons = getCreatureSummons(cid)
if(table.maxn(summons) < MaximoSummon) then -- no summons
doConvinceCreature(cid, doCreateMonster(MonsterName, getCreaturePosition(cid)))
else
for _, pid in ipairs(summons) do
doRemoveCreature(pid)
end
end
return true
end
----------------------------------------
I tried everything i found and nothing working the right way, the problem is the monster dont back to item, when click again on item it summons 2 monster and if i put max limit 1 monster after sumonning the first one when click on item again says that it cannot use the object, please help