bury
Active Member
- Joined
- Jul 27, 2008
- Messages
- 421
- Solutions
- 7
- Reaction score
- 25
Hello, I want to create a kinda "easy" polymorph script from this one:
I searched it in another post but that scripts didnt work for me.
That script change your outfit to a strange orange square, and I want it to transform target in a "sheep" for 2 seconds.
In that 2 seconds the player is also paralyzed and muted (so that they cant remove his paralyze).
This spell or rune (I dont mind one thing or the other) would make a huge mana waste (around 2k or 3k) and start an exhausted of two minutes (but only this spell would have that exhausted, the others not)
And in that 2 seconds the sheep says:
That script is used like a rune:
I would like to change the area afected to only affect in the target. Now it's affecting 6 SQM. And btw, anybody know what is ¿ "blocktype="solid" ?
Thanks you!!
LUA:
local combat, area = createCombatObject(), createCombatArea(AREA_SQUARE1X1)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatArea(combat, area)
local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
for i = 230, 247 do
addOutfitCondition(condition, {lookTypeEx = i})
end
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I searched it in another post but that scripts didnt work for me.
That script change your outfit to a strange orange square, and I want it to transform target in a "sheep" for 2 seconds.
In that 2 seconds the player is also paralyzed and muted (so that they cant remove his paralyze).
This spell or rune (I dont mind one thing or the other) would make a huge mana waste (around 2k or 3k) and start an exhausted of two minutes (but only this spell would have that exhausted, the others not)
And in that 2 seconds the sheep says:
LUA:
<voice sentence="Maeh"/>
</voices>
That script is used like a rune:
XML:
<rune name="Polymorph" id="2270" charges="1" maglv="20" exhaustion="2000" blocktype="solid" allowfaruse="1" event="script" value="customspells/polymorph.lua" />
I would like to change the area afected to only affect in the target. Now it's affecting 6 SQM. And btw, anybody know what is ¿ "blocktype="solid" ?
Thanks you!!