Page 1 of 1

Help with GetStatus

Posted: 2009-05-22 06:18:28
by injbr
Hi, i'm trying to create a script to get status.

I'm using this:

sub main()
if uo.getstatus('0x02FAE5B3') <> '' then
MessageBox('hello')
end if
end sub


My problem is, when he find this object, he returns the MessageBox for any objects, even he doesn't exist.

I need a command like uo.deletejournal() to make Injection forgets and find for another object.

I hope you can understand.

Sorry for my bad english.

Posted: 2009-05-22 19:54:18
by Destruction
if uo.getX( item ) > 0 then
...
endif

maybe this code is better ?.. if i correctly understand u problem..

Posted: 2009-05-22 21:04:49
by injbr
No, i need to detect a hidden player in my screen, with getstatus it is possible, i just use uo.getstatus('Player ID'), if his status appear in the screen, he is next to me, else, he isn't.

My problem is, when i found one player, even if i change the player id, trying to find another player, injection keep showing the status of the first player. i don't know how to make Injection "forget" the first status, like uo.deletejournal(), for example.

Posted: 2009-05-23 21:26:51
by xinxilas
ué? if it really works,

sub main()
if uo.getstatus('lasttarget') <> '' then
MessageBox('hello')
end if
end sub

this script will show hello if lasttarget is on the screen?

but when u use the second time, it keep showing the first player that you checked?

try this

sub main()
UO.Set('laststatus','lasttarget')
if uo.getstatus('laststatus') <> '' then
MessageBox('hello')
end if
end sub

And like Destruction said:

sub main()
if uo.getX( 'lasttarget' ) > 0 then
MessageBox('hello')
end if
end sub

doesnt work?

Posted: 2009-05-25 15:04:08
by injbr
Last Target doesn't work because i don't have target, is a hidden player, i only have his ID.

I'll try uo.getx then i post a reply.

Posted: 2009-05-26 00:12:17
by xinxilas
So is he a GM?

and try it

sub main()
UO.Set('lasttarget','0x02FAE5B3')
if uo.getstatus('lasttarget') <> '' then
MessageBox('hello')
end if
end sub

i think this do the same of yours script but just try

Posted: 2009-05-26 13:14:22
by injbr
Yes, he is a GM.

Like you said, does the same of my script.

I want a loop, to keep verifying, but when he found one, he show the message for any ID, even if the ID isn't in my screen.

I'll try uo.getx but i think it will not work.

Posted: 2009-05-26 14:03:36
by Destruction
u cant see GM in invisible mode if have no bugs...

Posted: 2009-05-26 20:17:24
by xinxilas
@Destruction, if he is saying so..

Your shard is in POL, SPHERE or RUNUO?

Posted: 2009-07-01 16:55:34
by injbr
Destruction, if it is a bug i don't know, but i can see.

My shard is POL.

I haven't finish the full script yet, but i tried separately and works perfectly.

Sorry for delay.

Posted: 2009-07-13 22:09:45
by injbr
Someone?