Subir

Resultados 1 al 2 de 2

Tema: Ayuda Macro envenenar

  1. #1
    Avatar de kyomusashi
    Fecha de ingreso
    July-2010
    Ubicación
    Cercanías de Britains
    Clan
    Distrito III
    Nacimiento
    Valle de las Canciones
    Mensajes
    521
    Reputacion: 34
    Poder de reputación
    15

    Ayuda Macro envenenar

    Tengo esta macro de envenenar y a ver si alguien me puede decir que tengo que añadir o en que parte de la macro cambio el tiempo para que inicie de nuevo a envenenar otra arma.



    LinesPerCycle 40
    set %BoteType WUF
    set %Color 368
    set %KegType YBK
    set %PX 678
    set %PY 483
    set #LTARGETKIND 1
    display ok Seleciona el Baul de los items.
    event macro 13 48
    waitForTargetIdentifi2:
    if #TARGCURS <> 1
    {
    goto waitForTargetIdentifi2
    }
    set #LTARGETID A
    WaitForselectTarget:
    if #TARGCURS = 1
    {
    goto WaitForselectTarget
    }
    if #LTARGETID = A || #LTARGETID = YC
    {
    display ok Target invalido.
    stop
    }
    set %Baul #LTARGETID

    waitForOpenBaul:
    set #LOBJECTID %Baul
    if #TARGCURS = 1
    {
    set #TARGCURS 0
    }
    event macro 17
    if #CONTID <> %Baul
    {
    Goto waitForOpenBaul
    }
    contpos 584 0
    display ok Seleciona el arma a envenenar.
    event macro 13 48
    waitForTargetIdentifi:
    if #TARGCURS <> 1
    {
    goto waitForTargetIdentifi
    }
    set #LTARGETID A
    WaitForselectTarget2:
    if #TARGCURS = 1
    {
    goto WaitForselectTarget2
    }
    if #LTARGETID = A || #LTARGETID = YC
    {
    display ok Target invalido.
    stop
    }
    set %Arma #LTARGETID
    WaitForOpenPaperdoll:
    event macro 8 1
    if #CONTNAME <> paperdoll_gump
    {
    goto WaitForOpenPaperdoll
    }
    contpos 528 265
    RepFindForColorErr:
    finditem %BoteType C_ , #BACKPACKID
    if #FINDCOL <> 0
    {
    ignoreitem #FINDID
    goto RepFindForColorErr
    }
    if #FINDID = -1 || #FINDSTACK < 199
    {
    set %B 200 - #FINDSTACK
    RepFindForCol:
    finditem %BoteType C_ , %Baul
    if #FINDCOL <> 0
    {
    ignoreitem #FINDID
    goto RepFindForCol
    }
    if #FINDKIND = -1
    {
    Display ok No hay frascos en la "despensa" o.O
    stop
    }
    RepEventDrag:
    set %TM #SYSTIME
    event drag #FINDID
    WaitForOPenDrag:
    if #CONTNAME <> stack_gump
    {
    if ( #SYSTIME - %TM ) > 3000
    {
    Goto RepEventDrag
    }
    Goto WaitForOPenDrag
    }
    msg %b $
    WaitForOk:
    if #LLIFTEDKIND <> 1
    {
    Goto WaitForOk
    }
    RepClickDown:
    set %TM #SYSTIME
    click %PX %PY f
    WaitForDropClick:
    if #LLIFTEDKIND = 1
    {
    if ( #SYSTIME - %TM ) > 3000
    {
    Goto RepClickDown
    }
    Goto WaitForDropClick
    }
    set %LID #FINDID
    WaitForFind:
    finditem %LID
    if #FINDID <> %LID
    {
    Goto WaitForFind
    }
    }
    KegPoti:
    finditem %KegType G_5
    if #FINDKIND = -1
    {
    Display ok No quedan kegs.
    stop
    }
    if #FINDCOL <> %Color
    {
    ignoreitem #FINDID
    goto KegPoti
    }

    set #LOBJECTID #FINDID
    RepKegClick
    Set %TM #SYSTIME
    if #TARGCURS = 1
    {
    set #TARGCURS 0
    }
    event macro 17
    WaitKegForTarget:
    if #TARGCURS <> 1
    {
    if ( #SYSTIME - %TM ) > 3000
    {
    Goto RepKegClick
    }
    Goto WaitKegForTarget
    }
    ignoreitem reset
    RepFindForColorErr2:
    finditem %BoteType C_ , #BACKPACKID
    if #FINDCOL <> 0
    {
    ignoreitem #FINDID
    goto RepFindForColorErr2
    }
    if #FINDSTACK < 20
    {
    ignoreitem reset
    goto RepFindForColorErr
    }
    set #LTARGETID #FINDID
    event macro 22
    wait 1s
    ignoreitem reset
    RepFindForColorErr3:
    finditem %BoteType C_ , #BACKPACKID
    if #FINDKIND = -1
    {
    goto KegPoti
    }
    if #FINDCOL <> %Color
    {
    ignoreitem #FINDID
    goto RepFindForColorErr3
    }
    RepPoisong:
    set %TM #SYSTIME
    if #TARGCURS = 1
    {
    set #TARGCURS 0
    }
    event macro 13 30
    wait 5
    WaitForTargetPoisong:
    if #TARGCURS <> 1
    {
    if ( #SYSTIME - %TM ) > 3000
    {
    goto RepPoisong
    }
    Goto WaitForTargetPoisong
    }
    set %TM #SYSTIME
    set #LTARGETID %Arma
    event macro 22
    wait 10
    WaitForTargetPoisong2:
    if #TARGCURS <> 1
    {
    if ( #SYSTIME - %TM ) > 3000
    {
    goto RepPoisong
    }
    Goto WaitForTargetPoisong2
    }
    set #LTARGETID #FINDID
    event macro 22
    wait 145
    Goto KegPoti





    Salu2

  2. #2
    Avatar de kyomusashi
    Fecha de ingreso
    July-2010
    Ubicación
    Cercanías de Britains
    Clan
    Distrito III
    Nacimiento
    Valle de las Canciones
    Mensajes
    521
    Reputacion: 34
    Poder de reputación
    15

    Respuesta: Ayuda Macro envenenar

    Ya lo he solucionado!! ahora espera los segundos necesarios para que te de vuelva el frasco vacío y no perderlos ^^ va prácticamente igual de rápida la macro asi que perfect
    bueno claro, perdereis el frasco si fallais al envenenar, pero el acierto te devuelve el frasco
    aquí dejo la macro.




    LinesPerCycle 40
    set %BoteType WUF
    set %Color 368
    set %KegType YBK
    set %PX 678
    set %PY 483
    set #LTARGETKIND 1
    display ok Seleciona el Baul de los items.
    event macro 13 48
    waitForTargetIdentifi2:
    if #TARGCURS <> 1
    {
    goto waitForTargetIdentifi2
    }
    set #LTARGETID A
    WaitForselectTarget:
    if #TARGCURS = 1
    {
    goto WaitForselectTarget
    }
    if #LTARGETID = A || #LTARGETID = YC
    {
    display ok Target invalido.
    stop
    }
    set %Baul #LTARGETID

    waitForOpenBaul:
    set #LOBJECTID %Baul
    if #TARGCURS = 1
    {
    set #TARGCURS 0
    }
    event macro 17
    if #CONTID <> %Baul
    {
    Goto waitForOpenBaul
    }
    contpos 584 0
    display ok Seleciona el arma a envenenar.
    wait 5 second
    event macro 13 48
    waitForTargetIdentifi:
    if #TARGCURS <> 1
    {
    goto waitForTargetIdentifi
    }
    set #LTARGETID A
    WaitForselectTarget2:
    if #TARGCURS = 1
    {
    goto WaitForselectTarget2
    wait 5 second
    }
    if #LTARGETID = A || #LTARGETID = YC
    {
    display ok Target invalido.
    stop
    }
    set %Arma #LTARGETID
    WaitForOpenPaperdoll:
    event macro 8 1
    if #CONTNAME <> paperdoll_gump
    {
    goto WaitForOpenPaperdoll
    }
    contpos 528 265
    RepFindForColorErr:
    finditem %BoteType C_ , #BACKPACKID
    if #FINDCOL <> 0
    {
    ignoreitem #FINDID
    goto RepFindForColorErr
    }
    if #FINDID = -1 || #FINDSTACK < 199
    {
    set %B 200 - #FINDSTACK
    RepFindForCol:
    finditem %BoteType C_ , %Baul
    if #FINDCOL <> 0
    {
    ignoreitem #FINDID
    goto RepFindForCol
    }
    if #FINDKIND = -1
    {
    Display ok No hay frascos en la "despensa" o.O
    stop
    }
    RepEventDrag:
    set %TM #SYSTIME
    event drag #FINDID
    WaitForOPenDrag:
    if #CONTNAME <> stack_gump
    {
    if ( #SYSTIME - %TM ) > 3000
    {
    Goto RepEventDrag
    }
    Goto WaitForOPenDrag
    }
    msg %b $
    WaitForOk:
    if #LLIFTEDKIND <> 1
    {
    Goto WaitForOk
    }
    RepClickDown:
    set %TM #SYSTIME
    click %PX %PY f
    WaitForDropClick:
    if #LLIFTEDKIND = 1
    {
    if ( #SYSTIME - %TM ) > 3000
    {
    Goto RepClickDown
    }
    Goto WaitForDropClick
    }
    set %LID #FINDID
    WaitForFind:
    finditem %LID
    if #FINDID <> %LID
    {
    Goto WaitForFind
    }
    }
    wait 5 second
    KegPoti:
    finditem %KegType G_5
    if #FINDKIND = -1
    {
    Display ok No quedan kegs.
    stop
    }
    if #FINDCOL <> %Color
    {
    ignoreitem #FINDID
    goto KegPoti
    }
    wait 5 second
    set #LOBJECTID #FINDID
    RepKegClick
    Set %TM #SYSTIME
    if #TARGCURS = 1
    {
    set #TARGCURS 0
    }
    wait 5 second
    event macro 17
    WaitKegForTarget:
    if #TARGCURS <> 1
    {
    if ( #SYSTIME - %TM ) > 3000
    {
    Goto RepKegClick
    }
    Goto WaitKegForTarget
    }
    ignoreitem reset
    wait 5 second
    RepFindForColorErr2:
    finditem %BoteType C_ , #BACKPACKID
    if #FINDCOL <> 0
    {
    ignoreitem #FINDID
    goto RepFindForColorErr2
    }
    if #FINDSTACK < 20
    {
    ignoreitem reset
    goto RepFindForColorErr
    }
    set #LTARGETID #FINDID
    event macro 22
    wait 1s
    ignoreitem reset
    RepFindForColorErr3:
    finditem %BoteType C_ , #BACKPACKID
    if #FINDKIND = -1
    {
    wait 5 second
    goto KegPoti
    }
    if #FINDCOL <> %Color
    {
    ignoreitem #FINDID
    goto RepFindForColorErr3
    }
    RepPoisong:
    set %TM #SYSTIME
    if #TARGCURS = 1
    {
    set #TARGCURS 0
    }
    event macro 13 30
    wait 5
    WaitForTargetPoisong:
    if #TARGCURS <> 1
    {
    if ( #SYSTIME - %TM ) > 3000
    {
    goto RepPoisong
    }
    Goto WaitForTargetPoisong
    }
    set %TM #SYSTIME
    set #LTARGETID %Arma
    event macro 22
    wait 10
    WaitForTargetPoisong2:
    if #TARGCURS <> 1
    {
    if ( #SYSTIME - %TM ) > 3000
    {
    goto RepPoisong
    }
    Goto WaitForTargetPoisong2
    }
    set #LTARGETID #FINDID
    event macro 22
    wait 145
    wait 5 second
    Goto KegPoti

Temas similares

  1. ayuda macro envenenar
    Por xamorra en el foro Macros
    Respuestas: 9
    Último mensaje: 08-Nov-2011, 20:17
  2. Macro envenenar
    Por Angello en el foro Macros
    Respuestas: 2
    Último mensaje: 18-Jan-2011, 09:57
  3. Macro de envenenar.
    Por Mistral en el foro Macros
    Respuestas: 1
    Último mensaje: 10-Aug-2010, 12:32
  4. macro envenenar
    Por afrodita en el foro Macros
    Respuestas: 7
    Último mensaje: 08-May-2010, 02:54
  5. Macro de envenenar
    Por Azaret en el foro Macros
    Respuestas: 6
    Último mensaje: 30-Jul-2009, 10:32

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