detect incoming players

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
Badza
Posts: 19
Joined: 2004-06-19 10:49:57
Contact:

detect incoming players

Post by Badza »

Hi,
how can I detect incoming players? In journal i found "You see: Playername", but in uo.injournal() isn'n nothing :(
Please help me, thnx.
lalla521
Posts: 80
Joined: 2004-04-06 22:41:11

Post by lalla521 »

in injection journal when a player approaches you see somethin like this:

Ragnar [OL] : Ragnar [OL]

at this point you can search for ":" in journal, and when you find it, you can control if the string before and after the ":" are equals
Badza
Posts: 19
Joined: 2004-06-19 10:49:57
Contact:

Post by Badza »

not this -> :( Ragnar [OL] : Ragnar [OL]

In client 1.26.4 at server Dark Paradise (www.darkparadise.cz). I found in journal this:

You see: playername

but function uo.injournal() don't return this line, which i see in journal in game (after press JOURNAL button)

please help me with this
or
tell me another metod to detect incomin players
(incoming player must trigged sub function :)
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

use ,showjournal to see what INJECTION's journal contains
Badza
Posts: 19
Joined: 2004-06-19 10:49:57
Contact:

Post by Badza »

Thnx, i found these lines :)

Riknueth: Lord Riknueth
Rilkhel: Rilkhel
Ice Fiend: Ice Fiend
Kyorl: Lord Kyorl
Evzen: You have hidden yourself well

and now, if i found ":" and -not- "myname", then is it incoming player
or finding twice some string in line?

any ideas? :) (scripts? :) thnx
Lord Ruslan Nightmare
Expert!
Posts: 359
Joined: 2004-04-25 11:11:07
Contact:

Post by Lord Ruslan Nightmare »

just search every 100 milliseconds for players around. If you found something new - then it's player you just saw. Don't have any ideas about journal...Also, i can say, what party messages not writing to journal at all.
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...
Post Reply