Help with GetStatus
Moderators: Murderator+, Murderator
Help with GetStatus
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.
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.
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
if uo.getX( item ) > 0 then
...
endif
maybe this code is better ?.. if i correctly understand u problem..
...
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
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
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.
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.
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?
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?
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
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
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