Can't seem to target

The latest version of the UOAI library and all directly related information can be found in this forum.

Can't seem to target

Postby diff on Sun Nov 29, 2009 1:44 am

Maybe I'm doing this wrong?

Code: Select all
    Private Sub GoHome(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles HomeButton.Click
        Client.Macros.CastSpell(UOAI.Enums.Spell.Recall)
        Client.WaitForTarget()
        Client.Target(Client.Items.bySerial(RuneBook))
    End Sub


I've tried item.target(), client.target(item) and even player.target() with varying spells and targets. None of these seem to do anything. I added an onTarget event handler, and none of these 3 functions seem to fire it. Any suggestions would be appreciated.
diff
n00b
 
Posts: 2
Joined: Tue Nov 24, 2009 4:01 pm

Re: Can't seem to target

Postby megamandos on Tue Jan 05, 2010 10:53 pm

Umm what is the value of RuneBook? Is it set properly?
"Those who sacrifice liberty for security, deserve neither." Benjamin Franklin
User avatar
megamandos
Guru
 
Posts: 312
Joined: Thu Jan 29, 2009 5:01 am


Return to UOAI Developers Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron