• TibiaFace

    Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...

    .
    demo menumenu

    Afiliados



    Votar:

    [Sistema] Systema outfits por actions

    Compartir:

    Ver el tema anterior Ver el tema siguiente Ir abajo  Mensaje (Página 1 de 1.)

    1default [Sistema] Systema outfits por actions el Jue Ago 10, 2017 5:57 pm

    jesusaron

    jesusaron
    Miembro
    Miembro
    este systema es por medio de actions lo puede modificar a su gusto

    data\actions\scripts
    crean de preferencia una carpeta y adentro pegan 22 bueno esos son los outfits
    en el primer archivo
    assassin.lua
    este es el assasin
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3060 then
    queststatus = getPlayerStorageValue(cid,3060)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Assassin Addons.")
    doPlayerAddOutfit(cid,156,1)
    doPlayerAddOutfit(cid,156,2)
    doPlayerAddOutfit(cid,152,1)
    doPlayerAddOutfit(cid,152,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3060,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    crean otro archivo
    barbarian.lua
    este es el barbarian
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3035 then
    queststatus = getPlayerStorageValue(cid,3035)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Barbarian Addons.")
    doPlayerAddOutfit(cid,147,1)
    doPlayerAddOutfit(cid,147,2)
    doPlayerAddOutfit(cid,143,1)
    doPlayerAddOutfit(cid,143,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3035,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    otro archivo y asi sucesivamente
    beggar.lua
    beggar
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3065 then
    queststatus = getPlayerStorageValue(cid,3065)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Beggar Addons.")
    doPlayerAddOutfit(cid,157,1)
    doPlayerAddOutfit(cid,157,2)
    doPlayerAddOutfit(cid,153,1)
    doPlayerAddOutfit(cid,153,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3065,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end


    brotherhood.lua
    brotherhood
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3090 then
    queststatus = getPlayerStorageValue(cid,3090)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Brotherhood Addons.")
    doPlayerAddOutfit(cid,279,1)
    doPlayerAddOutfit(cid,279,2)
    doPlayerAddOutfit(cid,278,1)
    doPlayerAddOutfit(cid,278,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3090,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    citizen.lua
    citizen
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3005 then
    queststatus = getPlayerStorageValue(cid,3005)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Citizen Addons.")
    doPlayerAddOutfit(cid,128,1)
    doPlayerAddOutfit(cid,128,2)
    doPlayerAddOutfit(cid,136,1)
    doPlayerAddOutfit(cid,136,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3005,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    demonhunter.lua
    demonhunter
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3095 then
    queststatus = getPlayerStorageValue(cid,3095)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Demonhunter Addons.")
    doPlayerAddOutfit(cid,288,1)
    doPlayerAddOutfit(cid,288,2)
    doPlayerAddOutfit(cid,289,1)
    doPlayerAddOutfit(cid,289,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3095,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    druid.lua
    druid
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3040 then
    queststatus = getPlayerStorageValue(cid,3040)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Druid Addons.")
    doPlayerAddOutfit(cid,148,1)
    doPlayerAddOutfit(cid,148,2)
    doPlayerAddOutfit(cid,144,1)
    doPlayerAddOutfit(cid,144,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3040,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    hunter.lua
    hunter
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3000 then
    queststatus = getPlayerStorageValue(cid,3000)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Hunter Addons.")
    doPlayerAddOutfit(cid,129,1)
    doPlayerAddOutfit(cid,129,2)
    doPlayerAddOutfit(cid,137,1)
    doPlayerAddOutfit(cid,137,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3000,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    jester.lua
    jester

    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3085 then
    queststatus = getPlayerStorageValue(cid,3085)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Jester Addons.")
    doPlayerAddOutfit(cid,270,1)
    doPlayerAddOutfit(cid,270,2)
    doPlayerAddOutfit(cid,273,1)
    doPlayerAddOutfit(cid,273,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3085,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    knight.lua
    knight
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3015 then
    queststatus = getPlayerStorageValue(cid,3015)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Knight Addons.")
    doPlayerAddOutfit(cid,131,1)
    doPlayerAddOutfit(cid,131,2)
    doPlayerAddOutfit(cid,139,1)
    doPlayerAddOutfit(cid,139,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3015,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    mage.lua
    mage

    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3010 then
    queststatus = getPlayerStorageValue(cid,3010)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Mage Addons.")
    doPlayerAddOutfit(cid,138,1)
    doPlayerAddOutfit(cid,138,2)
    doPlayerAddOutfit(cid,130,1)
    doPlayerAddOutfit(cid,130,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3010,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    nightmare.lua
    nightmare
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3080 then
    queststatus = getPlayerStorageValue(cid,3080)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Nightmare Addons.")
    doPlayerAddOutfit(cid,269,1)
    doPlayerAddOutfit(cid,269,2)
    doPlayerAddOutfit(cid,268,1)
    doPlayerAddOutfit(cid,268,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3080,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    nobleman.lua
    nobleman
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3020 then
    queststatus = getPlayerStorageValue(cid,3020)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Nobleman Addons.")
    doPlayerAddOutfit(cid,132,1)
    doPlayerAddOutfit(cid,132,2)
    doPlayerAddOutfit(cid,140,1)
    doPlayerAddOutfit(cid,140,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3020,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    pirate.lua
    pirate
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3055 then
    queststatus = getPlayerStorageValue(cid,3055)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Pirate Addons.")
    doPlayerAddOutfit(cid,155,1)
    doPlayerAddOutfit(cid,155,2)
    doPlayerAddOutfit(cid,151,1)
    doPlayerAddOutfit(cid,151,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3055,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    shaman.lua
    shaman
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3070 then
    queststatus = getPlayerStorageValue(cid,3070)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Shaman Addons.")
    doPlayerAddOutfit(cid,158,1)
    doPlayerAddOutfit(cid,158,2)
    doPlayerAddOutfit(cid,154,1)
    doPlayerAddOutfit(cid,154,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3070,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    summoner.lua
    summoner
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3025 then
    queststatus = getPlayerStorageValue(cid,3025)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Summoner Addons.")
    doPlayerAddOutfit(cid,133,1)
    doPlayerAddOutfit(cid,133,2)
    doPlayerAddOutfit(cid,141,1)
    doPlayerAddOutfit(cid,141,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3025,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    warmaster.lua
    warmaster

    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 4005 then
    queststatus = getPlayerStorageValue(cid,4005)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Warmaster Addons.")
    doPlayerAddOutfit(cid,336,1)
    doPlayerAddOutfit(cid,336,2)
    doPlayerAddOutfit(cid,335,1)
    doPlayerAddOutfit(cid,335,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,4005,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    warrior.lua
    warrior

    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 4005 then
    queststatus = getPlayerStorageValue(cid,4005)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Warmaster Addons.")
    doPlayerAddOutfit(cid,336,1)
    doPlayerAddOutfit(cid,336,2)
    doPlayerAddOutfit(cid,335,1)
    doPlayerAddOutfit(cid,335,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,4005,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    wizard.lua
    wizard
    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3045 then
    queststatus = getPlayerStorageValue(cid,3045)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Wizard Addons.")
    doPlayerAddOutfit(cid,149,1)
    doPlayerAddOutfit(cid,149,2)
    doPlayerAddOutfit(cid,145,1)
    doPlayerAddOutfit(cid,145,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3045,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end
    yalaharian.lua
    yalaharian

    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 4000 then
    queststatus = getPlayerStorageValue(cid,4000)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Yalaharian Addons.")
    doPlayerAddOutfit(cid,324,1)
    doPlayerAddOutfit(cid,324,2)
    doPlayerAddOutfit(cid,325,1)
    doPlayerAddOutfit(cid,325,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,4000,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    norseman.lua
    norseman

    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3075 then
    queststatus = getPlayerStorageValue(cid,3075)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Norseman Addons.")
    doPlayerAddOutfit(cid,252,1)
    doPlayerAddOutfit(cid,252,2)
    doPlayerAddOutfit(cid,251,1)
    doPlayerAddOutfit(cid,251,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3075,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end

    oriental.lua
    oriental

    Código:
    function onUse(cid, item, frompos, item2, topos)


    if item.uid == 3050 then
    queststatus = getPlayerStorageValue(cid,3050)
    if queststatus == -1 then

    reqlevel = 8
    level = getPlayerLevel(cid)

    if level >= reqlevel then
    doPlayerSendTextMessage(cid,22,"You have found Oriental Addons.")
    doPlayerAddOutfit(cid,150,1)
    doPlayerAddOutfit(cid,150,2)
    doPlayerAddOutfit(cid,146,1)
    doPlayerAddOutfit(cid,146,2)
    doSendMagicEffect(topos,12)
    setPlayerStorageValue(cid,3050,1)
    else
    doPlayerSendTextMessage(cid, 22, "You need "..reqlevel..". to get this addons.")
    end
    else
    doPlayerSendTextMessage(cid, 22, "You already have this addons.")

    end


    else
    return 0
    end

    return 1
    end


    y por fin despues de instalarlos vamos a:
    data/actions/actions.xml
    agregamos estas filas

    Código:
          <!-- addons system -->
    <action uniqueid="3000" script="addons/hunter.lua" />

    <action uniqueid="3005" script="addons/citizen.lua" />

    <action uniqueid="3010" script="addons/mage.lua" />

    <action uniqueid="3015" script="addons/knight.lua" />

    <action uniqueid="3020" script="addons/nobleman.lua" />

    <action uniqueid="3025" script="addons/summoner.lua" />

    <action uniqueid="3030" script="addons/warrior.lua" />

    <action uniqueid="3035" script="addons/barbarian.lua" />

    <action uniqueid="3040" script="addons/druid.lua" />

    <action uniqueid="3045" script="addons/wizard.lua" />

    <action uniqueid="3050" script="addons/oriental.lua" />

    <action uniqueid="3055" script="addons/pirate.lua" />

    <action uniqueid="3060" script="addons/assassin.lua" />

    <action uniqueid="3065" script="addons/beggar.lua" />

    <action uniqueid="3070" script="addons/shaman.lua" />

    <action uniqueid="3075" script="addons/norseman.lua" />

    <action uniqueid="3080" script="addons/nightmare.lua" />

    <action uniqueid="3085" script="addons/jester.lua" />

    <action uniqueid="3090" script="addons/brotherhood.lua" />

    <action uniqueid="3095" script="addons/demonhunter.lua" />

    <action uniqueid="4000" script="addons/yalaharian.lua" />

    <action uniqueid="4005" script="addons/warmaster.lua" />

    y listo con las unique id se la ponen a una estatua almenos yo asi las tengo



    Última edición por jesusaron el Jue Ago 10, 2017 6:06 pm, editado 1 vez

    Ver perfil de usuario

    2default Re: [Sistema] Systema outfits por actions el Jue Ago 10, 2017 6:03 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    buen aporte +1 (y)



    [Sistema] Systema outfits por actions YNU5B25
    Ver perfil de usuario https://www.tibiaface.com

    Ver el tema anterior Ver el tema siguiente Volver arriba  Mensaje (Página 1 de 1.)

    Permisos de este foro:
    No puedes responder a temas en este foro.

    Temas Recomendados×+

       

      BienvenidosTibiaFace es una comunidad de Open Tibia. Para participar debes estar registrado (click para Regístrate).