Subir

Resultados 1 al 6 de 6

Tema: Duda con esta macro

  1. #1

    Fecha de ingreso
    April-2007
    Mensajes
    348
    Reputacion: 10
    Poder de reputación
    15

    Duda con esta macro

    Cogi esta macro del foro y bueno la he configurado y tal...pero a la hora de coger la daga y e ir a trocear el tronco o como se diga,me dice todo el rato objetivo cancelado,a ver si alguien entendido me puede echar una mano!

    ;Macro de Flechero:
    # COMENZAD CON ALGUNAS DAGAS EN LA MOCHILA
    # Y UN TRONCO SUELTO DENTRO DE ALGUN CONTENEDOR
    # QUE ESTE EN LA MOCHILA

    chooseskill BOWC REAL
    set %habilidadInicial #SKILL
    set %cofreID YXWESPD
    set %cDagasID IKFXSOD
    set %cTroncoID SVERRPD
    set %mochilaX 783
    set %mochilaY 396
    set %x 293
    set %y 178

    nextCPos 0 150
    set #LOBJECTID %cTroncoID
    event Macro 17 0 0
    wait 5
    gosub EsperaContenedor #CONTID %cofreID
    finditem ZLK C_ , %cTroncoID
    wait 5
    set %troncoID #FINDID

    INICIO:

    setuotitle FABRICAR ARCOS | Inicial: %habilidadInicial | Actual: #SKILL
    nextCPos 0 350
    set #LOBJECTID %cofreID
    event Macro 17 0 0
    wait 5
    gosub EsperaContenedor #CONTID %cofreID

    finditem ZLK C_ , #BACKPACKID
    wait 5
    if #FINDSTACK < 10
    {
    finditem ZLK C_ , %cofreID
    wait 5
    event Drag #FINDID
    wait 15
    gosub EsperaVentana CONTNAME stack_gump
    msg 50 $
    click %mochilaX %mochilaY p
    wait 1s
    }

    finditem %cDagasID C_ , %cofreID
    nextCPos 0 150
    set #LOBJECTID %cDagasID
    event Macro 17 0 0
    wait 5
    gosub EsperaContenedor #CONTID %cDagasID

    finditem TSF C_ , %cDagasID
    wait 5
    event Drag #FINDID
    wait 5
    click %mochilaX %mochilaY p
    wait 1s

    finditem TSF C_ , #BACKPACKID
    wait 5
    set #LOBJECTID #FINDID
    wait 5
    event Macro 17 0 0
    target 1s
    key ESC

    FABRICANDO:

    finditem ZLK C_ , #BACKPACKID
    wait 5
    if #FINDSTACK > 5
    {
    finditem TSF C_ , #BACKPACKID
    wait 5
    set #LOBJECTID #FINDID
    set #LTARGETID %troncoID
    set #LTARGETKIND 1
    wait 5
    event Macro 17 0 0
    target 1s
    event Macro 22 0 0
    gosub EsperaVentana CONTNAME objpicker_gump
    click 106 61 d
    wait 15
    goto FABRICANDO
    }

    nextCPos 0 150
    finditem SLK C_ , #BACKPACKID
    wait 5
    event Drag #FINDID
    wait 5
    gosub EsperaVentana CONTNAME stack_gump
    msg $
    click %x %y p
    wait 5

    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




    Muchas gracias

  2. #2

    Fecha de ingreso
    August-2008
    Edad
    36
    Mensajes
    18
    Reputacion: 10
    Poder de reputación
    0

    Respuesta: Duda con esta macro

    vale vale , casi seguro que ya se el problema mañana lo cuelgo

  3. #3

    Fecha de ingreso
    August-2008
    Edad
    36
    Mensajes
    18
    Reputacion: 10
    Poder de reputación
    0

    Respuesta: Duda con esta macro

    ;Macro de Flechero:
    # COMENZAD CON ALGUNAS DAGAS EN LA MOCHILA
    # Y UN TRONCO SUELTO DENTRO DE ALGUN CONTENEDOR
    # QUE ESTE EN LA MOCHILA

    chooseskill BOWC REAL
    set %habilidadInicial #SKILL
    set %cofreID YXWESPD
    set %cDagasID IKFXSOD
    set %cTroncoID SVERRPD
    set %mochilaX 783
    set %mochilaY 396
    set %x 293
    set %y 178

    nextCPos 0 150
    set #LOBJECTID %cTroncoID
    event Macro 17 0 0
    wait 5
    gosub EsperaContenedor #CONTID %cofreID
    finditem ZLK C_ , %cTroncoID
    wait 5
    set %troncoID #FINDID

    INICIO:

    setuotitle FABRICAR ARCOS | Inicial: %habilidadInicial | Actual: #SKILL
    nextCPos 0 350
    set #LOBJECTID %cofreID
    event Macro 17 0 0
    wait 5
    gosub EsperaContenedor #CONTID %cofreID

    finditem ZLK C_ , #BACKPACKID
    wait 5
    if #FINDSTACK < 10
    {
    finditem ZLK C_ , %cofreID
    wait 5
    event Drag #FINDID
    wait 15
    gosub EsperaVentana CONTNAME stack_gump
    msg 50 $
    click %mochilaX %mochilaY p
    wait 1s
    }

    finditem %cDagasID C_ , %cofreID
    nextCPos 0 150
    set #LOBJECTID %cDagasID
    event Macro 17 0 0
    wait 5
    gosub EsperaContenedor #CONTID %cDagasID

    finditem TSF C_ , %cDagasID
    wait 5
    event Drag #FINDID
    wait 5
    click %mochilaX %mochilaY p
    wait 1s

    finditem TSF C_ , #BACKPACKID
    wait 5
    set #LOBJECTID #FINDID
    wait 5
    event Macro 17 0 0
    target 1s
    key ESC

    FABRICANDO:

    finditem ZLK C_ , #ID
    wait 5
    if #FINDSTACK > 5
    {
    finditem TSF C_ , #BACKPACKID
    wait 5
    set #LOBJECTID #OBDID
    set #LTARGETID %troncoID
    set #LTARGETKIND 1
    wait 5
    event Macro 17 0 0
    target 1s
    event Macro 22 0 0
    gosub EsperaVentana CONTNAME objpicker_gump
    click 106 61 d
    wait 15
    goto FABRICANDO
    }

    nextCPos 0 150
    finditem SLK C_ , #BACKPACKID
    wait 5
    event Drag #FINDID
    wait 5
    gosub EsperaVentana fONTNAME stack_gump
    msg $
    click %x %y p
    wait 5

    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 #NT
    ESPERA2:
    if # . %3 <> FG180_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

  4. #4

    Fecha de ingreso
    April-2007
    Mensajes
    348
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: Duda con esta macro

    Antes de na,gracias por la ayuda :P

    Pero sigo con el problema,coge una daga,pregunta lo de donde usar el arma y finalmente dice objetivo cancelado.A ver si tiene solucion xD

  5. #5

    Fecha de ingreso
    July-2008
    Ubicación
    Madrid
    Edad
    34
    Mensajes
    100
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: Duda con esta macro

    Has configurado bien? Porque hice bowcraft ayer mismo con la macro de boxer, y me iba perfecta

  6. #6

    Fecha de ingreso
    April-2007
    Mensajes
    348
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: Duda con esta macro

    Pues creo que si...:S porque me coge la daga,me coge los troncos...pero se queda en el paso de usar la daga en el tronco...:S

Temas similares

  1. Duda en una macro
    Por ConcodilloDanDic en el foro Macros
    Respuestas: 6
    Último mensaje: 29-Jan-2008, 18:01
  2. Duda en una macro
    Por ConcodilloDanDic en el foro Macros
    Respuestas: 5
    Último mensaje: 28-Jan-2008, 11:49
  3. intentando adaptar esta macro
    Por bladewar en el foro Macros
    Respuestas: 9
    Último mensaje: 08-Jul-2007, 13:37
  4. Ayuda necesito esta macro porfavor!!
    Por oconell_ua en el foro Macros
    Respuestas: 0
    Último mensaje: 11-Apr-2007, 17: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