i'm using this script:
it's possible to when player do a new summon, the currently summon die and create the new?
Code:
function onTargetTile(cid, position)
position.stackpos = 255
doConvinceCreature(cid, doCreateMonster("Tammed Bear", position, false))
doSendMagicEffect(position, CONST_ME_MAGIC_BLUE)
return true
end
local arr = {
{0, 0, 0},
{0, 3, 0},
{0, 0, 0},
}
local area, combat = createCombatArea(arr), createCombatObject()
setCombatArea(combat, area)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
if #getCreatureSummons(cid) >= 1 then doPlayerSendCancel(cid, "ja existe um summon") return false end
return doCombat(cid, combat, var)
end
it's possible to when player do a new summon, the currently summon die and create the new?
Code:
ps: sorry my english and thanks for answers!