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

Lua Stone Spell

WiLDTuRTLE

Member
Joined
Feb 26, 2011
Messages
478
Reaction score
5
So yeah I wonder how to make a spell like, it make stones on the X and nothing on the O , P is the player...for like 10sec the stones stay there, would be a knight spell..


OXO
XPX
OXO





tyty rep++
 
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1356)

local area = createCombatArea({
	{0, 1, 0},
	{1, 2, 1},
	{0, 1, 0}
})
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

To let the stones dissappear add this in items.xml to the stones you want to use.
XML:
<attribute key="decayTo" value="0" />
<attribute key="duration" value="10" />
Choose a stone you don't have in the map else they will decay too.

For a not rune spell you can add needtarget so people don't trap themselves
XML:
	<instant name="Stone Trap" words="exori stone" lvl="20" mana="20" prem="1" range="5" needtarget="1" exhaustion="2000" needlearn="0" event="script" value="attack/stonespell.lua">
		<vocation id="4"/>
		<vocation id="8"/>
	</instant>
 
Last edited:
Back
Top