• TibiaFace

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

    .
    demo menumenu

    Afiliados



    Votar:

    Addon doll y Mount doll para tfs v25

    Compartir:

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

    1default Addon doll y Mount doll para tfs v25 el Vie Jun 03, 2016 1:25 am

    Invitado

    Anonymous
    Invitado
    lo primero es irnos a data\talkactions\talkactions.xml y agregamos

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


    luego nos vamos a data\talkactions\scripts, copiamos 2 archivos lua y le cambiamos el nombre por: 

    addon.lua
    mount.lua

    Abrimos el archivo addon.lua, borramos todo lo q esta ahi y le pegamos lo sguiente: 

    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},
    ["cave explorer"]={575},
    ["dream warden"]={578},
    ["glooth engineer"]={618},
    ["jersey"]={620},
    ["champion"]={632},
    ["conjurer"]={635},
    ["beastmaster"]={636},
    ["chaos acolyte"]={664},
    ["death herald"]={666},
    ["ranger"]={683},
    ["ceremonial garb"]={694},
    ["puppeteer"]={696},
    ["spirit caller"]={698},
    ["evoker"]={724},
    ["seaweaver"]={732},
    ["recruiter"]={745},
    ["sea dog"]={749},
    ["royal pumkin"]={759},
    ["rift warrior"]={845},
    ["winter warden"]={852},
    ["philosopher"]={874} }
                   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},
    ["cave explorer"]={574},
    ["dream warden"]={577},
    ["glooth engineer"]={610},
    ["jersey"]={619},
    ["champion"]={633},
    ["conjurer"]={634},
    ["beastmaster"]={637},
    ["chaos acolyte"]={665},
    ["death herald"]={667},
    ["ranger"]={684},
    ["ceremonial garb"]={695},
    ["puppeteer"]={697},
    ["spirit caller"]={699},
    ["evoker"]={725},
    ["seaweaver"]={73},
    ["recruiter"]={746},
    ["sea dog"]={750},
    ["royal pumkin"]={760},
    ["rift warrior"]={846},
    ["winter warden"]={853},
    ["philosopher"]={873} }
                   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, "Su Addon full le entregado!")
                                Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS)
                                player:addOutfitAddon(outfit, 3)
                            else
                                player:sendTextMessage(MESSAGE_INFO_DESCR, "usted ya tiene ese addon")
                            end
                        else
                            player:sendTextMessage(MESSAGE_INFO_DESCR, "escriva nuevamente, algo estara mal!")
                        end
                    else
                        player:sendTextMessage(MESSAGE_INFO_DESCR, "usted no tiene addon doll!")
                    end
                end

    luego Abrimos el archivo mount.lua, borramos todo lo q esta ahi y le pegamos lo sguiente: 

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

    local config =
    {
       ["mount"] = {id = x},
       ["widow queen"] = {id = 1},
       ["racing bird"] = {id = 2},
       ["war bear"] = {id = 3},
       ["black sheep"] = {id = 4},
       ["midnight panther"] = {id = 5},
       ["draptor"] = {id = 6},
       ["titanica"] = {id = 7},
       ["tin lizzard"] = {id = 8},
       ["blazebringer"] = {id = 9},
       ["rapid boar"] = {id = 10},
       ["stampor"] = {id = 11},
       ["undead cavebear"] = {id = 12},
       ["donkey"] = {id = 13},
       ["tiger slug"] = {id = 14},
       ["uniwheel"] = {id = 15},
       ["crystal wolf"] = {id = 16},
       ["war horse"] = {id = 17},
       ["kingly deer"] = {id = 18},
       ["tamed panda"] = {id = 19},
       ["dromedary"] = {id = 20},
       ["scorpion king"] = {id = 21},
       ["rented horse"] = {id = 22},
       ["armoured war horse"] = {id = 23},
       ["shadow draptor"] = {id = 24},
       ["rented horse"] = {id = 25},
       ["rented horse"] = {id = 26},
       ["lady bug"] = {id = 27},
       ["manta ray"] = {id = 28},
       ["ironblight"] = {id = 29},
       ["magma crawler"] = {id = 30},
       ["dragonling"] = {id = 31},
       ["gnarlhound"] = {id = 32},
       ["crimson ray"] = {id = 33},
       ["steelbeak"] = {id = 34},
       ["water buffalo"] = {id = 35},
       ["armoured scorpion"] = {id = 36},
       ["armoured dragonling"] = {id = 37},
       ["armoured cavebear"] = {id = 38},
       ["the hellgrip"] = {id = 39},
       ["lion"] = {id = 40},
       ["golden lion"] = {id = 41},
       ["shock head"] = {id = 42},
       ["walker"] = {id = 43},
       ["azudocus"] = {id = 44},
       ["carpacosaurus"] = {id = 45},
       ["death Crawler"] = {id = 46},
       ["flamesteed"] = {id = 47},
       ["jade lion"] = {id = 48},
       ["jade pincer"] = {id = 49},
       ["nethersteed"] = {id = 50},
       ["tempest"] = {id = 51},
       ["winter king"] = {id = 52},
       ["doombringer"] = {id = 53},
       ["woodland prince"] = {id = 54},
       ["hailtorm fury"] = {id = 55},
       ["siegebreaker"] = {id = 56},
       ["poisonbane"] = {id = 57},
       ["blackpelt"] = {id = 58},
       ["golden dragonfly"] = {id = 59},
       ["steel bee"] = {id = 60},
       ["copper fly"] = {id = 61},
       ["tundra rambler"] = {id = 62},
       ["highland yak"] = {id = 63},
       ["glacier vagabond"] = {id = 64},
       ["flying divan"] = {id = 65},
       ["magic carpet"] = {id = 66},
       ["floating kashmir"] = {id = 67},
       ["ringtail waccoon"] = {id = 68},
       ["night waccoon"] = {id = 69},
       ["emerald waccoon"] = {id = 70},
       ["glooth glider"] = {id = 71},
       ["shadow hart"] = {id = 72},
       ["black stag"] = {id = 73},
       ["emperor deer"] = {id = 74},
       ["flitterkatzen"] = {id = 75},
       ["venompaw"] = {id = 76},
       ["batcat"] = {id = 77},
       ["sea devil"] = {id = 78},
       ["coralripper"] = {id = 79},
       ["plumfish"] = {id = 80},
       ["gorongra"] = {id = 81},
       ["noctungra"] = {id = 82},
       ["silverneck"] = {id = 83},
       ["slagsnare"] = {id = 84},
       ["nightstinger"] = {id = 85},
       ["razorcreep"] = {id = 86},
       ["rift Runner"] = {id = 87},
       ["nightdweller"] = {id = 88},
       ["frostflare"] = {id = 89},
       ["cinderhoof"] = {id = 90},
       ["mouldpincer"] = {id = 91},
       ["bloodcurl"] = {id = 92},
       ["leafscuttler"] = {id = 93}



    }


       local player, t, mountdoll_id = Player(cid), config[string.lower(param)], 9019 -- id do mount doll

    local mountdoll_id = 9019
      
       if (player:getItemCount(mountdoll_id) > 0) then
            if (param ~= "" and t) then
             if(t and not player:hasMount(t.id)) then  
                player:removeItem(mountdoll_id, 1)
                    player:sendTextMessage(MESSAGE_INFO_DESCR, "Felicitaciones tienes una nueva montura!")
                player:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS)
                player:addMount(t.id)
                else
                player:sendCancelMessage("Ya tienes esta montura.")
                end
            else
             player:sendCancelMessage(MESSAGE_INFO_DESCR, "sin mayusculas, escriba nuevamente, algo estara mal!")
            end
        else
          player:sendCancelMessage(MESSAGE_INFO_DESCR,"Necesitas un mount doll!")
        end

       return true
    end

    Agradecimientos a maya que me ayudo con la creacion del mismo, cualquier duda me la pueden hacer saber por aki o por el chat, saludos.

    2default Re: Addon doll y Mount doll para tfs v25 el Vie Jun 03, 2016 11:05 am

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    buen aporte +1 Addon doll y Mount doll para tfs v25  1f44d



    Addon doll y Mount doll para tfs v25  YNU5B25
    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.

     

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