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

Lua Advanced paralyze request

sick

Member
Joined
Feb 5, 2009
Messages
258
Reaction score
6
Location
Lithuania, Vilnius
So the idea is:
When paralyze is shot it also changes target's outfit and outfit disappears when paralyze is gone. So lets say target's outfit changes to outfit type 222.

The paralyze script is right here :

Code:
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.7, 0, -0.7, 0)
setCombatCondition(combat, condition)

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

Thanks in advance :thumbup:
 
Idk a lot about this but try this :

Code:
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, [B]2000000[/B])
setConditionFormula(condition, -0.7, 0, -0.7, 0)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
Idk a lot about this but try this :

Code:
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, [B]2000000[/B])
setConditionFormula(condition, -0.7, 0, -0.7, 0)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
No, you don't know a lot. Adding some 0's sets an outfit? Don't post garbage bro, not cool

OT, I could set the outfit but I have no idea on how to make it change back once the paralyze is cured / wears out / player dies
 
The rune should work something like Medusa's paralyze shot, when she turns you into a stone human, the script in the Medusa.lua looks simple but don't get it how to put it into a rune, maybe its possbile to make a custom paralyze spell ( lets say exevo para ) the medusa's paralyze looks like that :

Code:
<attack name="speed" interval="1000" chance="30" range="7" duration="12000" speedchange="-700">
			<attribute key="areaEffect" value="redshimmer"/>
			<outfit type="333"/>
 
Have you ever tested that before? Like does the outfit go away if you cure the paralysis yourself with exura before it wears out on it's own? And yes I'm sure it's possible within the spell rune itself
 
new condition type would work, combined paralyze and outfit, but it needs source edit
cip and probably current medusa use just 2 conditions that are independent, just casted at same time
 
Back
Top