HELOO GUYS
I need a function that removes a summon and summon another creature
i try in thats form but dosent work
"when I use the magic only removes the summon"
I need a function that removes a summon and summon another creature
i try in thats form but dosent work
"when I use the magic only removes the summon"
function doRemoveCreatureSummon(cid, name)
if isCreature(cid) and type(name) == "string" then
for _, sid in ipairs(getCreatureSummons(cid)) do
if getCreatureName(sid):lower() == name:lower() then
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return doRemoveCreature(sid)
end
end
end
end
function onCastSpell(cid, var)
if getPlayerItemCount(cid, 11417) >= 20 and doRemoveCreatureSummon(cid, "Wolf") then
if getPlayerLevel(cid) >= 200 then
doConvinceCreature(cid, doSummonCreature("quimera cerberus", cid))
end
end
end