Ir para conteúdo

[Pedido] Spell Q Muda Oltfit Por 1 Minuto Otserver 8.50


adelso10

Posts Recomendados

 

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 = SUA LOOK TYPE do

addOutfitCondition(condition, {lookTypeEx = i})

end

 

setCombatCondition(combat, condition)

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

 

 

Tente isso! não tenho muita certeza se vai da certo maah :p

Link para o comentário
Compartilhar em outros sites

Se a do Groku nao funcionar tenta essa

 

function onSay(cid, words, param)
if getPlayerVocation(cid) == 1 then
doPlayerSetVocation(cid, 3)
local outfit = { lookType = 71 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
doSetCreatureOutfit(cid, outfit, -1)
doSendMagicEffect(getCreaturePosition(cid), 13)
doPlayerSendCancel(cid, "You transform!")
elseif getPlayerVocation(cid) == 3 then
doPlayerSetVocation(cid, 5)
local outfit = { lookType = 447 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
doSetCreatureOutfit(cid, outfit, -1)
doSendMagicEffect(getCreaturePosition(cid), 13)
doPlayerSendCancel(cid, "You transform!")
else
doPlayerSendCancel(cid, "You can not transform.")
end

end 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...