Help with GetStatus

Ask for help

Moderators: Murderator+, Murderator

Post Reply
injbr
Posts: 17
Joined: 2009-03-30 13:40:20

Help with GetStatus

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

Post by Destruction »

if uo.getX( item ) > 0 then
...
endif

maybe this code is better ?.. if i correctly understand u problem..
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
injbr
Posts: 17
Joined: 2009-03-30 13:40:20

Post 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.
xinxilas
Posts: 78
Joined: 2009-03-10 09:43:01

Post 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?
injbr
Posts: 17
Joined: 2009-03-30 13:40:20

Post 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.
xinxilas
Posts: 78
Joined: 2009-03-10 09:43:01

Post 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
injbr
Posts: 17
Joined: 2009-03-30 13:40:20

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

Post by Destruction »

u cant see GM in invisible mode if have no bugs...
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
xinxilas
Posts: 78
Joined: 2009-03-10 09:43:01

Post by xinxilas »

@Destruction, if he is saying so..

Your shard is in POL, SPHERE or RUNUO?
injbr
Posts: 17
Joined: 2009-03-30 13:40:20

Post 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.
injbr
Posts: 17
Joined: 2009-03-30 13:40:20

Post by injbr »

Someone?
Post Reply