ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: satorey on March 04, 2012, 12:53:04 PM

Title: problem with last target
Post by: satorey on March 04, 2012, 12:53:04 PM
im trying to make a macro that steals an item from a certain container when it spawns. problem is im trying to steal the item when it spawns, and i get it to the point where i try and use event macro 22 last target it doesnt target the item and then it doesnt let me use skills after that to saying im busy. here is my noob code for that section, pretty sure im doing alot wrong lol.


Code: [Select]
sub steal
    set #lobjectid JAACOMD ;id of container spawn is in
    event macro 17
    wait 20
    finditem EGG C_JAACOMD ; item ids c_spawning container id
    if #findkind -1
        { event macro 17
          finditem EGG C_JAACOMD  ; item ids c_spawning container id
        }
    set #ltargetid #findid
    event macro 13 33
    target
    event macro 22 0
    wait 10
    set #ltargetid MEFQYMD ;recall rune set here
    event macro 15 31
    target
    event macro 22 0
    wait 10
    event macro 4 4 BANK
    finditem EGG C_KNFHLMD ;item ids c_backpackid
    gosub moveitem #findid KNFHLMD EPIPUMD ; call sub (itemid) (fromcontainredID) (tocontainerID)
    halt
    return


any help would be greatly appreciated
Title: Re: problem with last target
Post by: Khameleon on March 04, 2012, 01:43:14 PM
It looks like you need to set your #Ltargetkind to 1
#LTargetKind (http://wiki.easyuo.com/index.php?title=LTargetKind)
Title: Re: problem with last target
Post by: satorey on March 04, 2012, 05:20:48 PM
Khameleon you are a lifesaver!  :D
Title: Re: problem with last target
Post by: Khameleon on March 08, 2012, 12:46:22 PM
No... This is a Life Saver.

Title: Re: problem with last target
Post by: dxrom on March 08, 2012, 01:45:41 PM
No... This is a Life Saver.


...you realize what I will have to get when I goto the store today now, right?
Title: Re: problem with last target
Post by: Khameleon on March 08, 2012, 02:18:59 PM
LOL I can't remember the last time I bought the old style Hard Candy "Life Savers"
Title: Re: problem with last target
Post by: Cstalker on March 08, 2012, 08:44:11 PM
They have funky flavors now, Seems hard to find the clasic flavors. I LOVE the GREen
Title: Re: problem with last target
Post by: Khameleon on March 10, 2012, 11:31:25 AM
"Green" is a good color :)