but i want the monster make it all timethis for example u can change number's
<defenses armor="0" defense="0">
<defense name="healing" interval="10000" chance="100" min="24000" max="24000"/>
</defenses>
Change interval="10000" to interval="1000"but i want the monster make it all time
thnaks heba you are too helpful sorry for your time but i want some scripts can you?its will be like traning monk
<defense name="healing" interval="10" chance="100" min="999999999" max="999999999">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
local position = getCreaturePosition(cid)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
for i = 1, 30 do
doSendDistanceShoot({x = position.x + math.random(-12 ,12), y = position.y + math.random(-12 ,12), z = position.z}, position, 35)
end
but this not the same of the photo bro your script make the monster always make uh i won't that i want it make healits will be like traning monk
<defense name="healing" interval="10" chance="100" min="999999999" max="999999999">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
sorry bro but can u make that script when i use paralyze on player he will got this effects and says frozen and he cant move when i make another rune he can move @hebafor effect add this in any action or movment script
say /z number too see number for this effect i think its 35Code:local position = getCreaturePosition(cid) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) for i = 1, 30 do doSendDistanceShoot({x = position.x + math.random(-12 ,12), y = position.y + math.random(-12 ,12), z = position.z}, position, 35) end
local combat = createCombatObject()gave me ur para script
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
local position = getCreaturePosition(cid)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
for i = 1, 30 do
doSendDistanceShoot({x = position.x + math.random(-12 ,12), y = position.y + math.random(-12 ,12), z = position.z}, position, 35)
end
return doCombat(cid, combat, var)
end
local function repeatAnimated(cid, on, off)
local repeatEvent = 0
doSendAnimatedText(getThingPos(cid), "Frozen!", math.random(1, 254))
if on then
repeatEvent = addEvent(repeatAnimated, math.random(1, 4) * 1000, cid)
elseif off then
stopEvent(repeatEvent)
end
end
function onSay(cid, words, param, channel)
local t = string.explode(param, ",")
local player = getPlayerByNameWildCard(t[2])
if t[1] == "freeze" then
if isPlayer(player) then
doCreatureSetNoMove(cid, true)
repeatAnimated(cid, on)
else
doPlayerSendTextMessage(cid, 27, "Player " .. t[2] .. " not found.")
end
elseif t[2] == "unfreeze" then
if isPlayer(player) then
doCreatureSetNoMove(cid, false)
repeatAnimated(cid, off)
else
doPlayerSendTextMessage(cid, 27, "Player " .. t[2] .. " not found.")
end
else
doPlayerSendTextMessage(cid, 27, "not enough params.")
end
return true
end
when i put?hey @Seumion
You can use /freeze script so u can freeze a players like evolera here u are the script !!
Code:local function repeatAnimated(cid, on, off) local repeatEvent = 0 doSendAnimatedText(getThingPos(cid), "Frozen!", math.random(1, 254)) if on then repeatEvent = addEvent(repeatAnimated, math.random(1, 4) * 1000, cid) elseif off then stopEvent(repeatEvent) end end function onSay(cid, words, param, channel) local t = string.explode(param, ",") local player = getPlayerByNameWildCard(t[2]) if t[1] == "freeze" then if isPlayer(player) then doCreatureSetNoMove(cid, true) repeatAnimated(cid, on) else doPlayerSendTextMessage(cid, 27, "Player " .. t[2] .. " not found.") end elseif t[2] == "unfreeze" then if isPlayer(player) then doCreatureSetNoMove(cid, false) repeatAnimated(cid, off) else doPlayerSendTextMessage(cid, 27, "Player " .. t[2] .. " not found.") end else doPlayerSendTextMessage(cid, 27, "not enough params.") end return true end