getNotoriety not returning

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

getNotoriety not returning

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

Post by Destruction »

Try to add checklag() after clicking.
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
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

Post 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...
CuHTpoH
Posts: 287
Joined: 2007-11-01 19:09:30
Location: Moscow
Contact:

Post by CuHTpoH »

try to add bigger delay between click and uo.get, check TWI (track world items) is on
**Выставляем отступы в скриптах*** ©Destruction
Feel the Power of Dark Side
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

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

Post 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.
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
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

Post by Knight1106 »

thank you very much
Post Reply