• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spells

samuelsami

New Member
Joined
Oct 27, 2010
Messages
77
Reaction score
1
This spell make 5 Slimes at one time, i wanna edited this spell to than make 5 slimes at lv 60 and 6 mercury blobs at lv 100. It's possible?

HTML:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_BLUESHIMMER)
setCombatArea(combat, area)
 
local maxsummons = 5
 
function onCastSpell(cid, var)
	local summoncount = getCreatureSummons(cid)
	if #summoncount < 5 then
		for i = 1, maxsummons - #summoncount do
			doConvinceCreature(cid, doSummonCreature("Slime", getCreaturePosition(cid)))
		end
	end
	return doCombat(cid, combat, var)
end
 
Back
Top