Sean Larson
New Member
Does that work?? I was looking through the TFS sources and saw that being used on summon creature and convince creature... can I use it like this?
function onTargetTile(cid, pos)
local position = pos
position.stackpos = 255
local item = getThingfromPos(position)
if item.itemid > 0 then
if getSummonCount >= 2 then
if isInArray(GREEN, item.itemid) == TRUE then
doRemoveItem(item.uid,1)
doSendMagicEffect(pos, CONST_ME_POFF)
local creature = doSummonCreature("Dragon", pos)
doConvinceCreature(cid, creature)
end
end
end
function onTargetTile(cid, pos)
local position = pos
position.stackpos = 255
local item = getThingfromPos(position)
if item.itemid > 0 then
if getSummonCount >= 2 then
if isInArray(GREEN, item.itemid) == TRUE then
doRemoveItem(item.uid,1)
doSendMagicEffect(pos, CONST_ME_POFF)
local creature = doSummonCreature("Dragon", pos)
doConvinceCreature(cid, creature)
end
end
end