how to check if a char is on the screen?

Ask for help

Moderators: Murderator+, Murderator

Post Reply
xinxilas
Posts: 78
Joined: 2009-03-10 09:43:01

how to check if a char is on the screen?

Post 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
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

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

Post by Destruction »

Code: Select all

if uo.getX('object') > 0 then
    // object exists
endif
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
CuHTpoH
Posts: 287
Joined: 2007-11-01 19:09:30
Location: Moscow
Contact:

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

Post by CuHTpoH »

имхо нужно прилепить подобный топик где рассматриваются подобные частные приёмы, новчикам будет интересно сразу многое узнать.
**Выставляем отступы в скриптах*** ©Destruction
Feel the Power of Dark Side
Post Reply