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
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
}
}
}
}