• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Summon.lua

robbydeath

Well-Known Member
Joined
Feb 11, 2008
Messages
495
Reaction score
92
Location
washington state
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
 
Back
Top