Page 1 of 1

Auto-explosion

Posted: 2010-01-14 14:58:46
by Noite
Hello yoko guys!

I try play a explosion pot when miss one second, but doesnt works

Code: Select all



sub test()
    #this shub works! but dont wait delay for explo potion
    uo.cast('Flame Strike', 'laststatus');
    wait(5)
    uo.usetype('0x0F0E','0x0015')
    #wait(2000)
    uo.waittargetobject('laststatus');
end sub

sub spellExplo()
    uo.cast('Flame Strike', 'laststatus');
    wait(5)
    uo.usetype('0x0F0E','0x0015')
    while not uo.InJournal('PlayerNick: 1')
        #crash?
    wend
    #wait(2000)
    uo.waittargetobject('laststatus');
    #uo.lclick(uo.getx('laststatus'), uo.gety('laststatus'))
end sub


Thx!

Posted: 2010-01-14 23:04:34
by Nmy

Code: Select all

uo.cast("Flame Strike","lastattack")
uo.waittargetobject("lastattack")
wait(2000)
uo.usetype("0x0F0E","0x0015")

Posted: 2010-01-15 01:05:11
by Noite
Dont work in my shard nmy, display:

autotarget cancelled

then

cast FS;
click explo
and dont launch explo pot (stay in bag)

sorry for english.

Posted: 2010-01-15 20:18:46
by Xpree

Code: Select all

sub test()
    uo.cast("Flame Strike", "laststatus");
    wait(2000);if fails will stay in this idle time
    uo.waittargetobject("laststatus");
    uo.usetype("0x0F0E","0x0015")
    wait(3000);if fails will stay in this idle time
end sub

Posted: 2010-01-15 21:13:06
by Noite
Fala xpree! Do u test this code?

Apparently, your code click and launch explo potion instant.
I want, click in pot, wait for 2 seconds and lauch in target. For the opponent no chance to dodge.

Posted: 2010-01-15 21:19:54
by Xpree
but the problem is, that the count timer on the pot, only starts after you aim you target, not the other way around.

Posted: 2010-01-15 21:34:30
by Noite
Hm.. In my shard work different: Double click in explosion start a counter, if i dont aim something the pot explodes in my bag.

Posted: 2010-01-17 14:04:08
by Xpree
testa esse aew


Code: Select all

sub test()
    var x,y,z
    uo.cast("Flame Strike", "laststatus");
    wait(2000)
    uo.usetype("0x0F0E","0x0015")
    wait(2000)
    x = uo.getx('laststatus')
    y = uo.gety('laststatus')
    z = uo.getz('laststatus')
    uo.1click(x,y,z)
end sub

Re:

Posted: 2010-01-23 01:41:32
by minimal.c
Xpree wrote:testa esse aew


Code: Select all

sub test()
    var x,y,z
    uo.cast("Flame Strike", "laststatus");
    wait(2000)
    uo.usetype("0x0F0E","0x0015")
    wait(2000)
    x = uo.getx('laststatus')
    y = uo.gety('laststatus')
    z = uo.getz('laststatus')
    uo.1click(x,y,z)
end sub

Вот это бред. что за команда uo.1click ? или ты имел ввиду lclick? причём тогда тут x y Z . у тебя на мониторе обьём есть? :D