• 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 spell script help

Jester753

New Member
Joined
Jun 15, 2012
Messages
30
Reaction score
0
I'm trying to make a spell for druids that summons a 3x3 area of jungle grass, and the grass slows targets. this is the code i have but it won't slow creatures or people.

PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 2781)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true)

local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)

local speed = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionFormula(speed, -0.7, 56, -0.7, 56)
setCombatCondition(combat, speed)
setCombatArea(combat, area)

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


Thanks
 
Back
Top