Auto-explosion

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Noite
Posts: 7
Joined: 2010-01-14 14:50:13

Auto-explosion

Post 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!
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Code: Select all

uo.cast("Flame Strike","lastattack")
uo.waittargetobject("lastattack")
wait(2000)
uo.usetype("0x0F0E","0x0015")
Noite
Posts: 7
Joined: 2010-01-14 14:50:13

Post 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.
Xpree
Posts: 19
Joined: 2010-01-06 17:18:40

Post 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
Noite
Posts: 7
Joined: 2010-01-14 14:50:13

Post 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.
Xpree
Posts: 19
Joined: 2010-01-06 17:18:40

Post 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.
Noite
Posts: 7
Joined: 2010-01-14 14:50:13

Post 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.
Xpree
Posts: 19
Joined: 2010-01-06 17:18:40

Post 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
minimal.c
Posts: 1
Joined: 2010-01-23 01:37:04

Re:

Post 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
Post Reply