• TibiaFace

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

    .
    demo menumenu

    Afiliados



    Votar:

    [Talkactions] Addon Doll y Mount Doll Fixe Para TFs 1.0

    Compartir:

    Ir a la página : Precedente  1, 2

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

    Invitado

    Anonymous
    Invitado
    Chico solo faltaba una coma que no pusistes aqui esta el codigo:
    Código:
    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},
       ["brown war horse"] = {id = 17},
       ["kingly deer"] = {id = 18},
       ["tamed panda"] = {id = 19},
       ["dromedary"] = {id = 20},
       ["king scorpion"] = {id = 21},
       ["rented horse"] = {id = 22},
       ["armoured war horse"] = {id = 23},
       ["shadow draptor"] = {id = 24},
       ["rented horse"] = {id = 25},
       ["rented horse"] = {id = 26},
       ["ladybug"] = {id = 27},
       ["manta"] = {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},
       ["poisobane"] = {id = 57},
       ["blackpelt"] = {id = 58},
       ["golden dragonfly"] = {id = 59},
       ["steel bee"] = {id = 60},
       ["copper fly"] = {id = 61},
       ["trunda 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 rider"] = {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},
       ["sparkion"] = {id = 94},
       ["swamp snapper"] = {id = 95},
       ["mould shell"] = {id = 96},
       ["reed lurker"] = {id = 97},
       ["neon sparkid"] = {id = 98},
       ["vortexion"] = {id = 99},
       ["ivory fang"] = {id = 100},
       ["shadow claw"] = {id = 101},
       ["black pelt"] = {id = 102}
    }


    function onSay(cid, words, param)

       local player, t, mountdoll_id = Player(cid), config[string.lower(param)], 9019 -- id do mount doll
      
       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, "Sua mount foi adicionada!")
                player:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS)
                player:addMount(t.id)
                else
                player:sendCancelMessage("Ya tienes esta montura.")
                end
            else
             player:sendCancelMessage("Escribelo de nuevo, lo hiciste mal!")
            end
        else
          player:sendCancelMessage("Debes tener un addon doll en tu backpack!")
        end

       return true
    end



    Última edición por Sarah Wesker el Dom Jul 23, 2017 1:21 am, editado 1 vez (Razón : Detalles)

    +6
    xxrichardx
    fraydepro
    tonyso
    elsalo18
    walberxs12
    [Admin] God Maya
    10 participantes

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

    Ir a la página : Precedente  1, 2

    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).