Page 1 of 1

how to check if a char is on the screen?

Posted: 2010-02-12 05:13:59
by xinxilas
Hello :D !!
how to check if a object is on the screen?
look

IF #VENDOR IS NOT ON SCREEN:
uo.addobject('vendor')
repeat
wait(1)
until not uo.targeting()
ENDIF

any uo.findcount() for chars???

bye bye

EDIT:
i made this
but is this the best way?

uo.deletejournal()
uo.useobject('vendor')
uo.click('backpack')
repeat
until uo.injournal('backpack')
if uo.injournal('You cant see the target') then

Re: how to check if a char is on the screen?

Posted: 2010-02-12 09:14:35
by Destruction

Code: Select all

if uo.getX('object') > 0 then
    // object exists
endif

Re: how to check if a char is on the screen?

Posted: 2010-02-12 15:51:52
by CuHTpoH
имхо нужно прилепить подобный топик где рассматриваются подобные частные приёмы, новчикам будет интересно сразу многое узнать.