RuneScape Dialog

By [-Srankie-] on Jun 12, 2008

Hello, welcome to RuneScape Dialog, scripted by Srankie.

This dialog is used to retrieve RuneScape information!

You will need some files, it'll automatically get downloaded in your $mircdir in a map called RuneScape.
If you don't want it downloaded, don't load this script.

Put this code below if your remotes. (Please note this isn't the code of the dialog, this will simply download the dialog code.)

A preview of the dialog

Image

I'm still working on this dialog, but it has a update feature.

If you started to late with watching it, here it is: http://srankie.regsubex.com/RuneScape/preview.gif

on *:LOAD:{
  sockopen rsd.1 srankie.regsubex.com 80
}
on *:SOCKOPEN:rsd.1:{
  sockwrite -n rsd.1 GET /RuneScape/version.txt HTTP/1.0
  sockwrite -n rsd.1 Host: srankie.regsubex.com
  sockwrite -n rsd.1 $crlf
}
on *:SOCKREAD:rsd.1:{
  if ($sockerr) {
    echo -gta Socket error.
  }
  else {
    var %read
    sockread %read
    if (VERSION isin %read) {
      tokenize 32 %read
      hadd -m RuneScape a $2
      sockopen rsd.2 srankie.regsubex.com 80
    }
  }
}
on *:SOCKOPEN:rsd.2:{
  sockwrite -n rsd.2 GET /RuneScape/RuneScapeDialog.mrc HTTP/1.0
  sockwrite -n rsd.2 Host: srankie.regsubex.com
  sockwrite -n rsd.2 $crlf
}
on *:SOCKREAD:rsd.2:{
  if ($sockerr) {
    echo -gta Socket error.
  }
  else {
    var %read 1, %b $iif($sock($sockname).mark,1,0)
    while (%read && !%b) {
      sockread %read
      if ($regex(%read,/Content-Length: (d+)/i)) var %l $regml(1)
    }
    if (!%b) {
      sockmark $sockname $+(%l,~,"RuneScape Dialog $hget(RuneScape, a),.mrc")
    }
    window -a @Download_Progress
    tokenize 126 $sock($sockname).mark
    while $sock($sockname).rq {
      var %a $calc(($v1 + $lof($2)) * 100 / $1), %b $round(%a,2)
      sockread &a
      bwrite $2 -1 -1 &a
      aline @Download_Progress $iif(%a == 100,Download complete $+ $chr(44) right click anywhere to start.,Progress: %b $+ %)
      if (%a == 100) {
        .load -rs $2
        .remove $qt($script)
        .unload -rs $qt($script)
        .hfree -w RuneScape
      }
    }
  }
} 

Comments

Sign in to comment.
[-Srankie-]   -  Jun 14, 2008

Not :o
Thanks vaseline28 I\'ve never thought of persons who are on a other network!
I\'m going to find a other way, thanks!

 Respond  
vaseline28   -  Jun 14, 2008

You said report grammar errors:
\"You need too have DCX.dll for ...\"
should be \"You need to have\"
Although the english is substantially better than any of mine!

Also, how are these reported if the user is not on your network?

 Respond  
[-Srankie-]   -  Jun 14, 2008

I\'m sorry Eugenio, I don\'t see any errors :<
Thanks Jamiie

 Respond  
Jamiie   -  Jun 14, 2008

It\'s working fine now. Nice work. 7/10

 Respond  
[-Srankie-]   -  Jun 13, 2008

hum, it works perfect at me, anyway, thanks for supplying the error Eugenio, I\'m going to fix the problem, sorry for any inconvenience.

And Jamiie, try too put it in a new file.

 Respond  
Jamiie   -  Jun 12, 2008

It\'s not downloading anything for me when I load it.

 Respond  
Eugenio   -  Jun 12, 2008
  • /bwrite: unable to open file \'C:\Users\Eugene\AppData\Roaming\mIRC\RuneScape\Attack.gif\' (line 701, RuneScape Dialog 0.47.mrc)
 Respond  
BlueThen   -  Jun 12, 2008

sees my Defender script :D

Looks pretty nice, although I don\'t really play Runescape.

By the way, that animation thingy seems to be a little too big.

 Respond  
Mpdreamz   -  Jun 12, 2008

Other then alignment/placement issues with the dialog well done srankie :)

 Respond  
Jonesy44   -  Jun 12, 2008

Very nice work!
Nice use of the DLL and updater. ;)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.