Determine my ping.

Talk everything you want (no ads and spam)

Moderators: Murderator+, Murderator

Post Reply
Paul
Posts: 18
Joined: 2004-12-09 13:25:07

Determine my ping.

Post by Paul »

Hi,

How could I do a check to see my ping? I was thinking of clicking my backpack and wait for server response, but I can't find a way to determine the actual datetime in Injection. Can someone help me?

Thanks =)
"Most people are other people. Their thoughts are someone else's opinions, their lives a mimicry, their passions a quotation." - Oscar Wilde
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

open cmd and write down "ping and.ip.adress.of.your.server"
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post by Scripts Writer »

NMY wrote:open cmd and write down "ping and.ip.adress.of.your.server"


А вот как бы в С++ или bat файле навести проверку на наличие ответа от сервера который пингуем ... ?
omi4
Posts: 457
Joined: 2005-07-10 21:53:05

Post by omi4 »

You Must Die wrote:
NMY wrote:open cmd and write down "ping and.ip.adress.of.your.server"


А вот как бы в С++ или bat файле навести проверку на наличие ответа от сервера который пингуем ... ?


http://en.wikipedia.org/wiki/ICMP_Echo_Request
Paul
Posts: 18
Joined: 2004-12-09 13:25:07

Post by Paul »

NMY wrote:open cmd and write down "ping and.ip.adress.of.your.server"


Of course I would do that, if my shard wasn't protected by a firewall. By the way, blocking ICMP packets is the very basic of network security.

I know that there is a way of doing that by simple send some packet, hold the 'now' time, wait for the response, and then subtract the second for the first, but I don't know how to operate datetimes within Injection.

PS: Sorry if this sounds rude, NMY, but just because you reply to a millions of retards, don't assume you're talking to one before anything else. It is just an advise, I'm not threatening you. :)
"Most people are other people. Their thoughts are someone else's opinions, their lives a mimicry, their passions a quotation." - Oscar Wilde
omi4
Posts: 457
Joined: 2005-07-10 21:53:05

Post by omi4 »

Code: Select all

sub ping()
   UO.DeleteJournal()
   UO.Click('backpack')
   var LTime = UO.Timer()
   repeat
      wait(50)
   until UO.InJournal('backpack')
   UO.Print("Ping " + str((UO.Timer() - LTime)/10) + "sec")
endsub


~ +- 1km
CONDOMchick
Posts: 362
Joined: 2005-04-23 20:18:57

Post by CONDOMchick »

если я не ошибаюсь есть какая-то прога специльно для уо.
Dragon World. [since 2004]
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

CONDOMchick wrote:если я не ошибаюсь есть какая-то прога специльно для уо.


UOTrasser
Ни один скрипт не работает? Пора обновить Инжект...
Все работает, но хочется большего? Пора переходить на стелс...
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

How could I do a check to see my ping?

damn read your first post!
Post Reply