• TibiaFace

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

    .
    demo menumenu

    Afiliados



    Votar:

    [Talkactions] [TFS 1.0] Addon Doll

    Compartir:

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

    1[Talkactions] [TFS 1.0] Addon Doll Empty [Talkactions] [TFS 1.0] Addon Doll Miér Mayo 14, 2014 10:47 am

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Hola usuarios de tibiaface

    bueno auqi le dejo el el scripts de mount doll que es para compra de mount via comando


    instalando:

    nos vamos a:


    [Talkactions] [TFS 1.0] Addon Doll Note10 Data/talkactions/scripts

    copiamos cualquier archivo y renombramos por addondoll.lua y pegamos esto dentro:

    Código:
    function onSay(cid, words, param)

       local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["noblewoman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324}, ["warmaster"]={336},["wayfarer"]={366}, ["afflicted"]={431}, ["elementalist"]={433}, ["deepling"]={464}, ["insectoid"]={466}, ["red baron"]={471}, ["crystal warlord"]={513}, ["soil guardian"]={514}, ["demon"]={542} }
       local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}, ["warmaster"]={335}, ["wayfarer"]={367}, ["afflicted"]={430}, ["elementalist"]={432}, ["deepling"]={463}, ["insectoid"]={465}, ["red baron"]={472}, ["crystal warlord"]={512}, ["soil guardian"]={516},["demon"]={541} }
       local player, param = Player(cid), string.lower(param)
        local addondoll_id = 9693
       
       if player:getItemCount(addondoll_id) > 0 then
            if param ~= "" and maleOutfits[param] and femaleOutfits[param] then
                local outfit = player:getSex() == 0 and femaleOutfits[param][1] or maleOutfits[param][1]
                if not player:hasOutfit(outfit, 3) then
                    player:removeItem(addondoll_id, 1)
                    player:sendTextMessage(MESSAGE_INFO_DESCR, "Seu Addon full foi adicionado!")
                    Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS)
                    player:addOutfitAddon(outfit, 3)
                else
                    player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce ja tem este addon")
                end
            else
                player:sendTextMessage(MESSAGE_INFO_DESCR, "Digite novamente, algo está errado!")
            end
        else
            player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce não tem addon doll!")
        end
    end

    luego añadimos esta tag en :


    [Talkactions] [TFS 1.0] Addon Doll Note10 Data/talkactions/talkactions.xml


    Código:
     <talkaction words="!addon" script="addondoll.lua"/>


    Zona Editable:


    local addondoll_id = 9693 <<< id del item que pedira para ejecutar el comando.

    aqui editan los outfits male y female (addon: nombre)(addon_id: id del addon)


    local femaleOutfits = { ["addon"]={addon_id},

    local maleOutfits = { ["addon"]={addon_id},



    bueno eso fue todo  Very Happy 



    [Talkactions] [TFS 1.0] Addon Doll YNU5B25
    http://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.

     

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