Ir para conteúdo

Featured Replies

Postado

Bom dia, gostaria de saber como fazer um Monsters com a habilidade de trocar o outfit, mas não os dos players, o de si próprio.

 

 

Ex: começa com o outfit Citizen, depois ele se transforma em werewolf quando atacar o player, se houver possibilidade tivesse como mudar as habilidades do monster conforme ele muda a aparência

Postado

Acho que isso seria mais colocando um buff que muda a outfit nele! Não sei se é possivel de outra forma, mais também não sou scripter, Se for isso que quer tenho uma script aqui

local tempo = 180 -- tempo em segundos.
local effect = {208} -- effect no player, caso queira apenas 1, basta remover os outros numeros.
     
local ml = 15 -- quantos ira aumentar o skill de ML
local skillfist = 15 -- quantos ira aumentar o skill de Fist
local skillsword = 15 -- quantos ira aumentar o skill de Sword
local skillaxe = 15 -- quantos ira aumentar o skill de Axe
local skillclub = 15 -- quantos ira aumentar o skill de Club
local skilldistance = 15 -- quantos ira aumentar o skill de Distance
local skillshield = 15 -- quantos ira aumentar o skill de Shield
local health = 80 -- A cada 1 segundo quantos aumentar de vida
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
     
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml)
setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword)
setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe)
setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield)
setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit)
setCombatCondition(combat, condition)
     
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_SPEED, 250)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)
     
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000)
setCombatCondition(combat, condition)
            
function magicEffect3(tempo2,tempo3,cid)
if (isCreature(cid)) then
    if getPlayerStorageValue(cid, 102053) > 0 and getCreatureCondition(cid, CONDITION_REGENERATION, 1) then
        for i=1, #effect do 
local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
doSendMagicEffect(position, effect[i])
-- parte modificada
local summons = getCreatureSummons(cid)
if #summons > 0 then
for k = 1, #summons do
local pos = getCreaturePosition(summons[k])
local positions = {x = pos.x + 1, y = pos.y, z = pos.z}
doSendMagicEffect(positions, effect[i])
end
end 
-- fim da parte modificada
        end
    end
end
end
                  
function onCastSpell(cid, var)
if getPlayerStorageValue(cid, 102053) ~= 1 or getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then
    if getPlayerLevel(cid) <= 25 then
        local outfit = {lookType = 510, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
        doSetCreatureOutfit(cid, outfit, 15000)
        
    elseif getPlayerLevel(cid) <= 50 then
        local outfit = {lookType = 511, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
        doSetCreatureOutfit(cid, outfit, 15000)
    
    elseif getPlayerLevel(cid) <= 75 then
        local outfit = {lookType = 513, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
        doSetCreatureOutfit(cid, outfit, 15000)
    
    elseif getPlayerLevel(cid) <= 100 then
        local outfit = {lookType = 515, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
        doSetCreatureOutfit(cid, outfit, 15000)
    
    elseif getPlayerLevel(cid) <= 125 then
        local outfit = {lookType = 516, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
        doSetCreatureOutfit(cid, outfit, 15000)
    
    elseif getPlayerLevel(cid) <= 150 then
        local outfit = {lookType = 517, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
        doSetCreatureOutfit(cid, outfit, 15000)
    
    elseif getPlayerLevel(cid) <= 175 then
        local outfit = {lookType = 518, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
        doSetCreatureOutfit(cid, outfit, 15000)
    
    elseif getPlayerLevel(cid) <= 500000 then
        local outfit = {lookType = 519, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
        doSetCreatureOutfit(cid, outfit, 15000)
    end 
    doCombat(cid, combat, var)
    tempo2 = 0
    while (tempo2 ~= (tempo*1000)) do
        addEvent(magicEffect18, tempo2, tempo2, tempo*1000, cid)
        tempo2 = tempo2 + 300
    end
    setPlayerStorageValue(cid, 102053,1) -- storage verifica transformado, quando = 1 player esta transformado.
else
    doPlayerSendCancel(cid, "Sorry, you are transformed.")
end
local position129 = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
if getPlayerStorageValue(cid, 102053) ~= 1 or getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then
    doCombat(cid, combat, var)
    tempo2 = 0
    while (tempo2 ~= (tempo*1000)) do
        addEvent(magicEffect3, tempo2, tempo2, tempo*1000, cid)
        tempo2 = tempo2 + 300
    end
    setPlayerStorageValue(cid, 102053,1) -- storage verifica transformado, quando = 1 player esta transformado.
    doCreatureSay(cid, "HACHIMON KAI!", TALKTYPE_MONSTER)
    doSendMagicEffect(position129, 130)
else
    doPlayerSendCancel(cid, "Sorry, you are transformed.")
end
end

Ela tá por level mais é facil de alterar, se não conseguir é so por outfit pra todos

post-91064-0-67675300-1423235828_thumb.p
 
 
 
 
Naruto Age of Darkness (Naruto World)
 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.1k
  • Posts 512.5k

Informação Importante

Confirmação de Termo