Page 1 of 1

how to count pg in screen

Posted: 2006-10-29 20:37:12
by dagofee
I was looking for a way to count my enemies in the screen with a function

any ideas?

Posted: 2006-11-04 18:43:46
by Infectous
var Enemy = '0x00000000'
Enemy=UO.JournalSerial(UO.InJournal( 'is attacking you' )-1)

repeat that until ???

UO.Print(' You see ' + Str( UO.Count( Enemy ) ) + ' bad dudes' )

or let it keep counting

can I ask why for? cause there may be other ways to accomplish what you really need

there are also uo.GetNotoriety([object]) but i never used that try a search