• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Spells ( help my Cykotitan =D )

samuelsami

New Member
Joined
Oct 27, 2010
Messages
77
Reaction score
1
Hello OTLand,

I need 2 spells:

1: a spell to summon a monster.......

2: a spell to summmon 5 monster Instantaneous

the two spells forever.... the monster never disappears (only die)

Thanks....

Cykotitan i love u

You are my idol of scripting....
 
IT summons 8 slimes at ones:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_BLUESHIMMER)
setCombatArea(combat, area)

local maxsummons = 8

function onCastSpell(cid, var)
	local summoncount = getCreatureSummons(cid)
	if #summoncount < 8 then
		for i = 1, maxsumons - #summoncount do
			doConvinceCreature(cid, doSummonCreature("Slime", getCreaturePosition(cid)))
		end
	end
	return doCombat(cid, combat, var)
end
 
Fixed the up one for 5 and some errors:
LUA:
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