Ir para conteúdo

[Irregular]Runa Que Muda Outfit Do Player Adversario E O Paraliza...


juan500

Posts Recomendados

local outfit = getPlayerSex(cid) == PLAYERSEX_FEMALE and {lookType = 18} or {lookType = 18}
local tempo = 3 -- Tempo, nesse caso 1 é = 1 segundo
local condition = createConditionObject(CONDITION_ATTRIBUTES)
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)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit)
setCombatCondition(combat, condition)
local sys = createConditionObject(CONDITION_OUTFIT)
setConditionParam(sys, CONDITION_PARAM_TICKS, tempo*1000)
addOutfitCondition(sys, outfit)
setCombatCondition(combat, sys)
function onCastSpell(cid, var)
setPlayerStorageValue(cid, storage, os.time()+tempo)
return doCombat(cid, combat, var)
end

testei já

31123135.png

Editado por notle2012
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...