• 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!

getSummonCount

Sean Larson

New Member
Joined
Oct 22, 2007
Messages
99
Reaction score
1
Location
Colorado
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
 
Back
Top