• TibiaFace

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

    .
    demo menumenu

    Afiliados



    Votar:

    nesecito scrip de chart al naser

    Compartir:

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

    1nesecito scrip de chart al naser  Empty nesecito scrip de chart al naser Lun Abr 21, 2014 1:37 am

    Invitado

    Anonymous
    Invitado
    hola amigos de tibiaface necesito el scrip de los chart al nacer ya que al crear un nuevo chart los mismos me nacen sin nada de item quien me pueda ayudar por favor se los agradeceria doy +rep

    2 participantes

    2nesecito scrip de chart al naser  Empty Re: nesecito scrip de chart al naser Lun Abr 21, 2014 9:30 am

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    ve a tu carpeta mods de tu servidor:

    copia cualquier archivos y renombras por el nombre que quieras y pegas esto dentro.


    Código:
    <?xml version="1.0" encoding="UTF-8"?>
    <mod name="First Items" version="1.0" author="MartyX" contact="martyx@otland.net" enabled="yes">
       <description><![CDATA[
          Custom Fist Items
       ]]></description>
       <config name="firstitems_config"><![CDATA[
          config = {
             storage = 40046,
             items = {}
          }
       ]]></config>
       <event type="login" name="FirstItems" event="buffer"><![CDATA[
          domodlib('firstitems_config')
          if(getPlayerStorageValue(cid, config.storage) > 0) then
             return
          end

          for _, id in ipairs(config.items) do
             doPlayerAddItem(cid, id, 1)
          end

          -- All Vocation
             -- BackPack -- Rope -- in Backpack
             doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2120, 1)
             -- Brass Armor -- Body
             doPlayerAddItem(cid, 2465, 1)
             -- Steel Helmet -- Head
             doPlayerAddItem(cid, 2457, 1)
             -- Bonelord Shield -- Right Hand
             doPlayerAddItem(cid, 2518, 1)

          -- Sorcerer - (Wand) -- Hand
          if(isInArray({1}, getPlayerVocation(cid))) then
             doPlayerAddItem(cid, 2190, 1) -- Wand of Vortex -- Left Hand
             doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

          -- Druid - (Rod) -- Hand
          elseif(isInArray({2}, getPlayerVocation(cid))) then
             doPlayerAddItem(cid, 2182, 1) -- Snake Bite Rod -- Left Hand
             doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")   

          -- Paladin - (Weapon) -- Hand
          elseif(isInArray({3}, getPlayerVocation(cid))) then
             doPlayerAddItem(cid, 2389, 10) -- Spear -- Left Hand
             doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

          -- Knight - (Weapon) -- Hand
          elseif(isInArray({4}, getPlayerVocation(cid))) then
             doPlayerAddItem(cid, 8602, 1) -- Jagged Sword -- Left Hand
             doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")
          end

          -- All Vocation
             -- Brass Legs -- in Feet
             doPlayerAddItem(cid, 2478, 1)
             -- Leather Boots -- in Boots
             doPlayerAddItem(cid, 2643, 1)
             -- Scarf -- in Necklacke
             doPlayerAddItem(cid, 2661, 1)
             -- Platinum Coin -- in Arrows
             doPlayerAddItem(cid, 2152, 1)
             -- Health Potion -- in Backpack
             doPlayerAddItem(cid, 7618, 10)
             -- Shovel -- in Backpack
             doPlayerAddItem(cid, 2554, 1)
             -- Crystal Ring -- in Ring
             doPlayerAddItem(cid, 2124, 1)
             -- Mana Potion -- in Backpack
             doPlayerAddItem(cid, 7620, 15)

          -- Knight (Weapon) -- in Backpack
          if(isInArray({4}, getPlayerVocation(cid))) then
             doPlayerAddItem(cid, 2378, 1) -- Steel Axe
             doPlayerAddItem(cid, 2439, 1) -- Daramanian mace
          end

       setPlayerStorageValue(cid, config.storage, 1)
       ]]></event>
    </mod>

    y listo los personajes ya naceran con item iniciales



    nesecito scrip de chart al naser  YNU5B25
    2 participantes
    http://www.tibiaface.com

    3nesecito scrip de chart al naser  Empty Re: nesecito scrip de chart al naser Miér Abr 23, 2014 5:54 am

    Psycho

    Psycho
    Moderador
    Moderador
    Buen aporte maya pero te falto decir donde va eso xD!.

    Tibia/Data/creaturescripts/scripts/firstitems

    eso dependiendo de la versión del ot esta es la 8.6



    AFC By Psycho & DMOT Server
    [Tienes que estar registrado y conectado para ver este vínculo]
    2 participantes
    http://digidarkss.com

    4nesecito scrip de chart al naser  Empty Re: nesecito scrip de chart al naser Miér Abr 23, 2014 11:25 am

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Psycho escribió:Buen aporte maya pero te falto decir donde va eso xD!.

    Tibia/Data/creaturescripts/scripts/firstitems

    eso dependiendo de la versión del ot esta es la 8.6


    Si lo lee un poco mas detallado coloque en la carpeta mods



    nesecito scrip de chart al naser  YNU5B25
    2 participantes
    http://www.tibiaface.com

    5nesecito scrip de chart al naser  Empty Re: nesecito scrip de chart al naser Jue Abr 24, 2014 6:24 am

    Psycho

    Psycho
    Moderador
    Moderador
    si lo c pero no todas las versiones van en esa carpeta, pero si ya vi q ahí dice mods xD!: pero para la versión 8.6 es en otro lado maya!...



    AFC By Psycho & DMOT Server
    [Tienes que estar registrado y conectado para ver este vínculo]
    2 participantes
    http://digidarkss.com

    6nesecito scrip de chart al naser  Empty Re: nesecito scrip de chart al naser Jue Abr 24, 2014 9:17 am

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Psycho escribió:si lo c pero no todas las versiones van en esa carpeta, pero si ya vi q ahí dice mods xD!: pero para la versión 8.6 es en otro lado maya!...

    si Psycho eso verdad dependiendo que version de ot



    nesecito scrip de chart al naser  YNU5B25
    2 participantes
    http://www.tibiaface.com

    7nesecito scrip de chart al naser  Empty Re: nesecito scrip de chart al naser Jue Jul 24, 2014 12:17 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Sin respuesta del usuario Tema cerrado



    nesecito scrip de chart al naser  YNU5B25
    2 participantes
    http://www.tibiaface.com

    Contenido patrocinado


    2 participantes

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