robbydeath
Well-Known Member
Ok so my problem is players are able to summon as many as they'd like and its not following the 2 summon at one time thats in the config
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
function onTargetTile(cid, pos)
local position = {x=pos.x, y=pos.y, z=pos.z, stackpos=255}
local item = getThingfromPos(position)
doSendMagicEffect(pos, CONST_ME_POFF)
local creature = doSummonCreature("Grizzly", pos)
doConvinceCreature(cid, creature)
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end