Imagine Nation Forums
Display your opponent's Hits with Injection (Show HP Script) - Printable Version

+- Imagine Nation Forums (https://in-uo.net/forums)
+-- Forum: Imagine Nation archive (https://in-uo.net/forums/forumdisplay.php?fid=6)
+--- Forum: Player Guides (https://in-uo.net/forums/forumdisplay.php?fid=29)
+--- Thread: Display your opponent's Hits with Injection (Show HP Script) (/showthread.php?tid=436)



Display your opponent's Hits with Injection (Show HP Script) - Eru - 06-30-2011

Know your Opponents Hits with Injection: by Lestat

Use this script in PVP to chose if you will FS or not after a very good hit.

When you have just half a second to decide if you FS or not, this is very helpful.

Just keep the script running, and it will detect when you hit and write you the opponent's APPROXIMATIVE % of hp's at the bottom left of the screen, which is the remaining AFTER your hit. Remember that it can be about 4% innacurate due to the way the UO client manages hit points.

Code:
sub HPenemy()
    UO.set('finddistance',3)
    UO.DeleteJournal()
    var i=0
    var t
    WHILE i<=4
        if uo.injournal("You hit") || uo.injournal("You score") || uo.injournal("You knock") || uo.injournal("You land") || uo.injournal("You smash") then
            UO.DeleteJournal()
            t = uo.GetHp('lasttarget')
            uo.print("EnemyHP%: " + str(t*4))
        end if
        wait(500)
    WEND
end sub