Jump to content
  • 0

Possivel Add Tempo Ao Summon?


razurator

Question

Eu queria adicionar tempo a esse summon ou que ele morresse após 1.5 segundos depois de usada a magia.

 

 

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
function onCastSpell(cid, var)
	local target = getCreatureTarget(cid)
	if isCreature(target) then
			local creature = doCreateMonster("Target Dummy", getThingPosition(target))
			doConvinceCreature(cid, creature)
			return doCombat(cid, combat, var)
	else
			return doPlayerSendCancel(cid, "Sorry, not possible")
	end
end

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

×
×
  • Create New...