| Yoko http://forum.yoko.com.ua/ |
|
| Help with GetStatus http://forum.yoko.com.ua/viewtopic.php?f=3&t=14800 |
Page 1 of 1 |
| Author: | injbr [ 2009-05-22 06:18:28 ] |
| Post subject: | 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. |
|
| Author: | Destruction [ 2009-05-22 19:54:18 ] |
| Post subject: | |
if uo.getX( item ) > 0 then ... endif maybe this code is better ?.. if i correctly understand u problem.. |
|
| Author: | injbr [ 2009-05-22 21:04:49 ] |
| Post subject: | |
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. |
|
| Author: | xinxilas [ 2009-05-23 21:26:51 ] |
| Post subject: | |
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? |
|
| Author: | injbr [ 2009-05-25 15:04:08 ] |
| Post subject: | |
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. |
|
| Author: | xinxilas [ 2009-05-26 00:12:17 ] |
| Post subject: | |
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 |
|
| Author: | injbr [ 2009-05-26 13:14:22 ] |
| Post subject: | |
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. |
|
| Author: | Destruction [ 2009-05-26 14:03:36 ] |
| Post subject: | |
u cant see GM in invisible mode if have no bugs... |
|
| Author: | xinxilas [ 2009-05-26 20:17:24 ] |
| Post subject: | |
@Destruction, if he is saying so.. Your shard is in POL, SPHERE or RUNUO? |
|
| Author: | injbr [ 2009-07-01 16:55:34 ] |
| Post subject: | |
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. |
|
| Author: | injbr [ 2009-07-13 22:09:45 ] |
| Post subject: | |
Someone? |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|