Page 1 of 1

getNotoriety not returning

Posted: 2007-12-23 19:27:56
by Knight1106
sub a()
var pk
uo.ignorereset()
uo.ignore('self')
uo.set('finddistance','10')
uo.findtype('0x0190',-1,'ground')
if uo.findcount() then
pk=uo.getserial('finditem')
uo.click(pk)
uo.print(str(uo.getnotoriety(pk)))
wait(5000)
else
uo.print('Nao funcionou')
end if
goto loop
end sub


well
i made this just to test, and it isn't returning 6. I am near a murderer (PK)
and the uo.click() function is clicking on it, so its name appears. So why
this macro shows '0' instead of '6' on the screen ? what's wrong ?

thanks

Posted: 2007-12-23 20:27:30
by Destruction
Try to add checklag() after clicking.

Posted: 2007-12-23 20:38:40
by Knight1106
Destruction wrote:Try to add checklag() after clicking.


but everytime i use getnotoriety i will have to check the journal ?

edit:

anyway, adding checklag() didn't change anything...

Posted: 2007-12-24 00:14:09
by CuHTpoH
try to add bigger delay between click and uo.get, check TWI (track world items) is on

Posted: 2007-12-24 01:36:31
by Knight1106
CuHTpoH wrote:try to add bigger delay between click and uo.get, check TWI (track world items) is on


thank you, i don't play with track world itens on, but now the is script is working ^^

by the way, is there any command to turn TWI on/off ?
its so strange to play with that lots of zombies around... i don't like...
so if there is a command i could turn it on when using the macro then off after it finished... is there ?

thank all for helping
maybe you could try to help in my other post (no replys until today...)

see ya

Posted: 2007-12-24 01:50:19
by Destruction
Knight1106 wrote:
CuHTpoH wrote:try to add bigger delay between click and uo.get, check TWI (track world items) is on


thank you, i don't play with track world itens on, but now the is script is working ^^

by the way, is there any command to turn TWI on/off ?
its so strange to play with that lots of zombies around... i don't like...
so if there is a command i could turn it on when using the macro then off after it finished... is there ?

thank all for helping
maybe you could try to help in my other post (no replys until today...)

see ya

To turn TWI on/off you can use ASM.
If you not wish to see zombies - disable option "status bars fix" in Injection Main.

Posted: 2007-12-24 02:49:36
by Knight1106
thank you very much