Yoko

All sides of Injection
It is currently 2025-12-31 16:08:04

All times are UTC+02:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Help with GetStatus
PostPosted: 2009-05-22 06:18:28 
Offline

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


Top
   
 Post subject:
PostPosted: 2009-05-22 19:54:18 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
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.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-05-22 21:04:49 
Offline

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


Top
   
 Post subject:
PostPosted: 2009-05-23 21:26:51 
Offline

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


Top
   
 Post subject:
PostPosted: 2009-05-25 15:04:08 
Offline

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


Top
   
 Post subject:
PostPosted: 2009-05-26 00:12:17 
Offline

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


Top
   
 Post subject:
PostPosted: 2009-05-26 13:14:22 
Offline

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


Top
   
 Post subject:
PostPosted: 2009-05-26 14:03:36 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
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.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-05-26 20:17:24 
Offline

Joined: 2009-03-10 09:43:01
Posts: 78
@Destruction, if he is saying so..

Your shard is in POL, SPHERE or RUNUO?


Top
   
 Post subject:
PostPosted: 2009-07-01 16:55:34 
Offline

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


Top
   
 Post subject:
PostPosted: 2009-07-13 22:09:45 
Offline

Joined: 2009-03-30 13:40:20
Posts: 17
Someone?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited