• TibiaFace

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

    .
    demo menumenu

    Afiliados



    Votar:

    promocion que otorgue storage

    Compartir:

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

    1promocion que otorgue storage Empty promocion que otorgue storage Jue Sep 17, 2020 7:14 pm

    AmonGod

    AmonGod
    Miembro
    Miembro
    hola amigos de TF tengo dias investigando como puedo hacer que una promocion otorgue un storage que al ser ejem. elder druid se le otorgue x storage al player ¿es esto posible? y como? disculpen la molestia y gracias...

    2 participantes

    2promocion que otorgue storage Empty Re: promocion que otorgue storage Jue Sep 17, 2020 7:32 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    haga por quest sus promotion y ahi le asigna un storage para cada una



    promocion que otorgue storage YNU5B25
    2 participantes
    http://www.tibiaface.com

    3promocion que otorgue storage Empty asi??? Jue Sep 17, 2020 8:03 pm

    AmonGod

    AmonGod
    Miembro
    Miembro
    a ver asi??

    Código:

    <vocation id="9" quest="xxx" name="Epic Master Sorcerer" description="an epic master sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="5" lessloss="50">
          <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
          <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>

    2 participantes

    4promocion que otorgue storage Empty Re: promocion que otorgue storage Jue Sep 17, 2020 8:10 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    eso es una linea de vocation usted tiene que usar una statua mendiante un scripts en actions para que le entregue esa vocation y le entregue un storage



    promocion que otorgue storage YNU5B25
    2 participantes
    http://www.tibiaface.com

    5promocion que otorgue storage Empty [Codigo] exacto!! Jue Sep 17, 2020 8:17 pm

    AmonGod

    AmonGod
    Miembro
    Miembro
    si pero a la linea de vocacion le coloque
    Código:
    quest= "xxx"
    las xxx son el storage que me dara la statua esta bien asi?? lo que sucede es que el scrip de la statua que da promocion no me funciona...

    2 participantes

    6promocion que otorgue storage Empty Re: promocion que otorgue storage Jue Sep 17, 2020 8:21 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    esta mal por esa linea no la leeera si no editas sources usted tiene que usar las funciones del servidor para cambiar la promotion un ejemplo seria esto

    Código:

    <action uniqueid="xxxx" script="promote.lua" />

    xxxx uniqueid ques se le agregara a la estatua


    Código:

    function onUse(cid, item, fromPosition, itemEx, toPosition)
    local storageValue = xxxx --------> storage que le agregara
    local teleportPos = {x=xxxx, y=xx, z=x} -------> posicion donde sera teleportado
     
       if(getPlayerStorageValue(cid, storageValue) ~= 1) then
              doPlayerSendTextMessage(cid, 22, 'You have already chosen your vocation.')
                    setPlayerStorageValue(cid, storageValue)
          return TRUE
       end
       if(getPlayerStorageValue(cid, storageValue) == 1) then
          doTeleportThing(cid, teleportPos)
                 doPlayerSetPromotion(cid, 2)  -----> esta seria promotion 2 que le agregara
              doSendMagicEffect(teleportPos,10)
          end
          return TRUE
       end



    promocion que otorgue storage YNU5B25
    2 participantes
    http://www.tibiaface.com

    7promocion que otorgue storage Empty Re: promocion que otorgue storage Jue Sep 17, 2020 9:01 pm

    AmonGod

    AmonGod
    Miembro
    Miembro
    la estatua siempre me dice: You have already chosen your vocation

    2 participantes

    8promocion que otorgue storage Empty Re: promocion que otorgue storage Jue Sep 17, 2020 9:05 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    a ver prueba asi
    Código:

    function onUse(cid, item, fromPosition, itemEx, toPosition)
    local storageValue = xxxx --------> storage que le agregara
    local teleportPos = {x=xxxx, y=xx, z=x} -------> posicion donde sera teleportado
     
      if(getPlayerStorageValue(cid, storageValue) == 1) then
              doPlayerSendTextMessage(cid, 22, 'You have already chosen your vocation.')
                   
          return FALSE
      end
      if(getPlayerStorageValue(cid, storageValue) == 0) then
          doTeleportThing(cid, teleportPos)
    setPlayerStorageValue(cid, storageValue)
                doPlayerSetPromotion(cid, 2)  -----> esta seria promotion 2 que le agregara
              doSendMagicEffect(teleportPos,10)
          end
          return TRUE
      end



    promocion que otorgue storage YNU5B25
    2 participantes
    http://www.tibiaface.com

    9promocion que otorgue storage Empty Re: promocion que otorgue storage Vie Sep 18, 2020 1:01 pm

    AmonGod

    AmonGod
    Miembro
    Miembro
    NADA AMIGO MIO, AHORA NO ME DICE NADA LA STATUA :/

    SOY TFS 0.4 COPILADO PARA WAR SYSTEM, BUENO EL MISMO QUE USTED APORTO AL FORO



    Última edición por AmonGod el Vie Sep 18, 2020 1:17 pm, editado 1 vez (Razón : AGREGAR INFORMACION)

    2 participantes

    10promocion que otorgue storage Empty Re: promocion que otorgue storage Vie Sep 18, 2020 5:19 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    aqui tienes

    Código:


    local stor = 52204 -----> storage que se le añadira al player
    local prom = 2 -----> esta seria promotion 2 que le agregara

            function onUse(cid, item, fromPosition, itemEx, toPosition)
           


         local queststatus = getPlayerStorageValue(cid,stor)
          if queststatus < 1 then
                doPlayerSendTextMessage(cid,22,"You have been promoted!")
                doPlayerSetPromotion(cid, 2) 
                setPlayerStorageValue(cid,stor,1)
          else
             doPlayerSendTextMessage(cid,22,"It is empty.")
          end

                  return TRUE
              end



    promocion que otorgue storage YNU5B25
    2 participantes
    http://www.tibiaface.com

    11promocion que otorgue storage Empty [Codigo] aun nada Sáb Sep 19, 2020 9:15 am

    AmonGod

    AmonGod
    Miembro
    Miembro
    aun nada amigo mio lo estoy colocando de esta manera:

    Código:

    local stor = 11117 -----> storage que se le añadira al player
    local prom = 2 -----> esta seria promotion 2 que le agregara

            function onUse(cid, item, fromPosition, itemEx, toPosition)
           


          local queststatus = getPlayerStorageValue(cid,stor)
          if queststatus < 1 then
                doPlayerSendTextMessage(cid,22,"You have been promoted!")
                doPlayerSetPromotion(cid, 2) 
                setPlayerStorageValue(cid,stor,1)
          else
            doPlayerSendTextMessage(cid,22,"It is empty.")
          end

                  return TRUE
              end

    y siempre me dice esto siempre:

    08:19 You have been promoted!

    y tambien me da error en consola

    2 participantes

    12promocion que otorgue storage Empty TEMA RESUELTO Dom Sep 20, 2020 1:02 pm

    AmonGod

    AmonGod
    Miembro
    Miembro
    LOGRE REPARAR EL SCRIPTS PARA QUE ME FUNCIONARA LO PUSE ASI:

    Código:

    local stor = 11117 -----> storage que se le añadira al player
    local prom = 2 -----> esta seria promotion 2 que le agregara

            function onUse(cid, item, fromPosition, itemEx, toPosition)
           


          local queststatus = getPlayerStorageValue(cid,stor)
          if queststatus < 1 then
                doPlayerSendTextMessage(cid,22,"You have been promoted!")
                doPlayerSetVocation(cid, getPlayerVocation(cid)+4) 
                setPlayerStorageValue(cid,stor,1)
          else
            doPlayerSendTextMessage(cid,22,"It is empty.")
          end

                  return TRUE
              end

    Y LO COLOQUE CON ACTION ID:
    Código:
    <action actionid="3769" script="promote.lua" />

    Y LISTO MUCHAS GRACIAS [Admin] God Maya POR AYUDARME Y DARME LA IDEA.
    TEMA RESUELTO

    2 participantes

    13promocion que otorgue storage Empty Re: promocion que otorgue storage Lun Sep 21, 2020 8:39 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Tema Resuelto



    promocion que otorgue storage 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).