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

[Request] Summoning Spell

Solarium

New Member
Joined
Jul 18, 2009
Messages
30
Reaction score
0
Hello Everyone, I was wondering if someone could make me a spell were when you say it, you summon 6 skeletons at once, and untill they skeletons are all dead you cant use the spell again, i tried looking for a script but i failed miserably, if there is one of the forum i must have missed it and i would gladly accept even a link to the thread that has it thank you for your help :)
 
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

function onCastSpell(cid, var)
	local summon = "Skeleton"
	local maxSummon = 6
	if(table.maxn(getCreatureSummons(cid)) < 1) then
		for i = 1, maxSummon do
			doSummonMonster(cid, summon)
		end
	else
		doPlayerSendCancel(cid, "You cannot summon if all of your summons aren't dead.")
		return false
	end
	
	return doCombat(cid, combat, var)
end
 
Back
Top