Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Archived Forums » RenGuard Client » renguard locator irc scripts
renguard locator irc scripts [message #135038] Sat, 29 January 2005 21:14 Go to previous message
ghostSWT
Messages: 262
Registered: December 2003
Karma:
Recruit
I'm not sure if it's just me but the scripts i am using was working fine then about 5 days ago it stoped i modified it to work and i just saw today it's not working again and i had to put it to what it was originaly.

i'm using this irc script
 on *:sockopen:rglocate: {
  sockwrite -n $sockname GET /_scripts/rglocate.php?q= $+ %rName $+ &limit=2 HTTP/1.1 
  sockwrite -n $sockname Host: renguard.com $+ $crlf $+ $crlf
}
on *:sockread:rglocate: {
  if ($sockerr > 0) return
  :nextread
  sockread %temprglocate
  if ($sockbr == 0) return
  if (%temprglocate == $null) %temprglocate = -
  if (%locateline == yes) { 
    /write -c rglocate.txt %temprglocate
    unset %locateline
  }
  else /write rglocate.txt %temprglocate
  goto nextread
}
on *:sockclose:rglocate: {
  if ($read(rglocate.txt, 1) == HTTP/1.1 200 OK)  {
    if (No results found. isin $read(rglocate.txt, 11)) {
      /msg %rName is not Runing Renguard.
    }
    else if (returning isin $read(rglocate.txt, 11)) {
      if ($gettok($read(rglocate.txt, 12),2-,32) == --- Idle) { /msg $gettok($read(rglocate.txt, 12),1,32) is running RG  }
      else if ($gettok($read(rglocate.txt, 13),2-,32) == --- Idle) { /msg $gettok($read(rglocate.txt, 13),1,32) is running RG }     
      else { /msg %rName not found, #1 try typing the full name }
    }
  }
}


my problem that the text file that sockread makes is not the same. a week ago it would make a file look like
HTTP/1.1 200 OK
Date: changed form original
Server: Apache/2.0.46 (Red Hat)
Accept-Ranges: bytes
X-Powered-By: PHP/4.3.2
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
-
2D
<pre>Returning 1 results...
ghostSWT --- Idle
-
0
-

then a few days ago it started making this one take a look at the way the name and --- Idle are no longer on the same line
HTTP/1.1 200 OK
Date: changed form original
Server: Apache/2.0.46 (Red Hat)
Accept-Ranges: bytes
X-Powered-By: PHP/4.3.2
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
-
2D
<pre>Returning 1 results...
ghostSWT
-
--- Idle
-
0
-

and i guess today it's back to what it was b4, is that just my crapy scrirp or what?
PS i know it only looks if the person is idling but that's the way i want it, the server this is 4 is not renguarded so i only need to see if they are idling or not.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Beta Testing
Next Topic: I can even download it!
Goto Forum:
  


Current Time: Wed Oct 16 16:21:39 MST 2024

Total time taken to generate the page: 0.00889 seconds