Subir

Resultados 1 al 6 de 6

Tema: PQ esta macro en vez de hacer engranajes hace botellas??

  1. #1
    Avatar de Coaltar
    Fecha de ingreso
    June-2007
    Edad
    45
    Mensajes
    554
    Reputacion: 10
    Poder de reputación
    15

    PQ esta macro en vez de hacer engranajes hace botellas??

    ; Macro de ARTESANIA

    ; Antes de empezar, hay que ajustar las cinco variables del
    ; principio. MochilaX y MochilaY son las coordenadas de la
    ; mochila del paperdoll, ahi se dejarán los lingotes que
    ; cojamos del cofre. %contLingotesID es la ID del cofre que
    ; contiene los lingotes que vayamos a utilizar (dicho cofre solo
    ; debería contener lingotes de hierro). %x y %y es la posición
    ; del cofre o bolsa donde vayamos a depositar los engranajes.

    ; Nota por ^pampano^: Para saber la ID del cofre, abrirlo
    ; en UO y mirar en "Container Info" a la derecha ------->
    ; en "#CONTID"

    ; MODIFICADO por ^pampano^: Sólo creará herramientas si hay menos de 3 en la mochila (para que no se almacenen muchas...).
    ; MODIFICADO por ^pampano^: Arreglado el sobrepeso por coger lingotes de más. Configurar
    ; dos variables más: LingotesX y LingotesY será la localización del cofre donde tenemos los lingotes
    ; (para que deje los que sobren y evitar el sobrepeso).

    ; ---->Original por Da Vinci<----

    ; ------------------------------------------------------------------------------------

    ; Configurad estos valores

    set %mochilaX 961
    set %mochilaY 233
    set %contLingotesID VKVJMPD
    set %x 382
    set %y 321
    set %LingotesX 428
    set %LingotesY 298

    ; A partir de aqui, no tocar nada

    set %lingotes 0
    set %engranajes 0
    chooseskill TINK REAL
    set %habilidadInicial #SKILL

    INICIO:

    setuotitle ARTESANIA | Inicial: %habilidadInicial | Actual: #SKILL | Lingotes: %lingotes | Engranajes: %engranajes
    nextCPos 0 350
    set #LOBJECTID %contLingotesID
    event Macro 17 0 0
    wait 5
    gosub EsperaContenedor #CONTID %contLingotesID


    finditem RMK C_ , #BACKPACKID
    wait 1s
    if #FINDSTACK < 30
    {
    finditem RMK C_ , #BACKPACKID ; Primero deja todos los lingotes de la mochila :P.
    wait 1s
    event Drag #FINDID
    wait 5
    gosub EsperaVentana CONTNAME stack_gump
    msg #FINDSTACK $
    click %LingotesX %LingotesY p
    wait 1s
    finditem RMK C_ , %contLingotesID
    wait 5
    event Drag #FINDID
    wait 5
    gosub EsperaVentana CONTNAME stack_gump
    msg 54 $
    click %mochilaX %mochilaY p
    wait 1s
    set %lingotes %lingotes + 54
    setuotitle ARTESANIA | Inicial: %habilidadInicial | Actual: #SKILL | Lingotes: %lingotes | Engranajes: %engranajes

    }

    CREAHERRAMIENTAS:
    finditem GTL C_ , #BACKPACKID
    wait 5
    if #findcnt < 3 ; Aquí se pondría el número de herramientas máximo a tener en la mochila .
    {
    set #LOBJECTID #FINDID
    event Macro 17 0 0
    gosub EsperaVentana CONTNAME objpicker_gump
    if #SKILL < 900
    {
    click 238 66 d
    }
    else
    {
    click 267 68 f
    wait 10
    click 238 66 d
    }
    wait 1
    gosub EsperaVentana CONTNAME objpicker_gump
    click 266 67 x 10
    wait 1
    click 266 67 x 10
    wait 1
    click 266 67 x 10
    wait 1
    click 266 67 x 10
    click 60 66 d
    wait 35
    }

    FABRICANDO:
    finditem RMK C_ , #BACKPACKID
    wait 1s
    if #FINDSTACK > 20
    {
    finditem GTL C
    wait 5
    set #LOBJECTID #FINDID
    event Macro 17 0 0
    gosub EsperaVentana CONTNAME objpicker_gump
    if #SKILL < 900
    {
    click 175 64 d
    }
    else
    {
    click 226 64 d
    }
    wait 1
    gosub EsperaVentana CONTNAME objpicker_gump
    click 104 55 d
    wait 35
    setuotitle ARTESANIA | Inicial: %habilidadInicial | Actual: #SKILL | Lingotes: %lingotes | Engranajes: %engranajes
    finditem GTL C_ , #BACKPACKID
    wait 5
    if #findcnt < 3 ; Testea de nuevo para que no se quede sin herramientas a mitad :P.
    {
    goto CREAHERRAMIENTAS:
    }

    goto FABRICANDO
    }
    wait 35
    nextCPos 0 150
    finditem RCG C_ , #BACKPACKID
    wait 5
    set %engranajes %engranajes + #FINDSTACK
    event Drag #FINDID
    wait 5
    gosub EsperaVentana CONTNAME stack_gump
    msg $
    click %x %y p

    goto INICIO

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;,

    sub EsperaVentana
    set %tMax #SCNT
    ESPERA1:
    if # . %1 <> %2
    {
    wait 1
    if %tMax + 5 < #SCNT
    return #FALSE
    goto ESPERA1
    }
    return #TRUE

    sub EsperaCofre
    set %tMax #SCNT
    ESPERA2:
    if # . %3 <> 180_240 || # . %1 <> %2
    {
    wait 1
    if %tMax + 5 < #SCNT
    return #FALSE
    goto ESPERA2
    }
    return #TRUE

    sub EsperaContenedor
    set %tMax #SCNT
    ESPERA3:
    if %1 <> %2
    {
    wait 1
    if %tMax + 5 < #SCNT
    return #FALSE
    goto ESPERA3
    }
    return #TRUE

  2. #2
    Avatar de Coaltar
    Fecha de ingreso
    June-2007
    Edad
    45
    Mensajes
    554
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: PQ esta macro en vez de hacer engranajes hace botellas??

    Si alguien me puede ayudar por favor que yo de esto no entiendo nada se lo agradecere.

  3. #3
    Avatar de Coaltar
    Fecha de ingreso
    June-2007
    Edad
    45
    Mensajes
    554
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: PQ esta macro en vez de hacer engranajes hace botellas??

    Por favor alguien me puede corregir esta macro que me hace botellas en vez de engranajes.
    No tengo idea de programar y necesito de un alma caritativa por favor.
    Gracias.

  4. #4

    Fecha de ingreso
    December-2007
    Ubicación
    Oviedo - Asturies
    Mensajes
    457
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: PQ esta macro en vez de hacer engranajes hace botellas??

    Yo diria k el problema esta en k tu skill de artesano ya es >=90. Fijate en la macro k trae:
    ...
    ...
    FABRICANDO:
    finditem RMK C_ , #BACKPACKID
    wait 1s
    if #FINDSTACK > 20
    {
    finditem GTL C
    wait 5
    set #LOBJECTID #FINDID
    event Macro 17 0 0
    gosub EsperaVentana CONTNAME objpicker_gump
    if #SKILL < 900
    {
    click 175 64 d
    }
    else
    {
    click 226 64 d
    }

    wait 1
    gosub EsperaVentana CONTNAME objpicker_gump
    click 104 55 d
    wait 35
    ...
    ...

    Si lo k kieres es fabricar solo botellas, sustituye TODO el texto k te señale en rojo en tu macro por:
    click 226 64 d

    Si lo k kieres es fabricar solo engranajes, idem pero sustituye por:
    click 175 64 d

    Creo k asi funcionara. Si no es asi, mandame mp o contactame por msn y lo miramos en directo: [email protected]

    Suerte

  5. #5
    Avatar de Coaltar
    Fecha de ingreso
    June-2007
    Edad
    45
    Mensajes
    554
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: PQ esta macro en vez de hacer engranajes hace botellas??

    Funciona perfecto, muchas gracias por solucionarme el problema.

    PD: Igual te agrego al msn si no tenes inconveniente, ya sea para volver a molestarte con otra consulta o para ayudarte en lo que puedas necesitar. Otra vez gracias.

  6. #6

    Fecha de ingreso
    December-2007
    Ubicación
    Oviedo - Asturies
    Mensajes
    457
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: PQ esta macro en vez de hacer engranajes hace botellas??

    Agregame sin problemas, encantado de haberte ayudado.

Temas similares

  1. Macros para hacer botellas y para alchemist
    Por parapipe en el foro Macros
    Respuestas: 2
    Último mensaje: 25-Nov-2007, 21:49

Permisos de publicación

  • No puedes crear nuevos temas
  • No puedes responder temas
  • No puedes subir archivos adjuntos
  • No puedes editar tus mensajes
  •  
YoutubeFbChat IRCTwit