Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat language is this? (for an IRC Bot)
    primarykey
    data
    text
    <p>Finally found some of my really old scripts I had written for an IRC Bot about 10 years ago. I had no idea what I was doing, and was wondering if anyone knew what this was written in and any information?</p> <pre><code>on *:sockread:$1:{ var %stattype $1 if ($sockerr) { .notice [ %nickname [ $+ [ %stattype ] ] ] Error. halt } else { var %statread sockread %statread if (Stat:* * * * iswm %statread) { .tokenize 32 %statread .notice [ %nickname [ $+ [ %stattype ] ] ] 1[ Username:7 $upper( [ %username [ $+ [ %stattype ] ] ] ) 1] [ Skill: 7 $upper(%stattype) 1] .notice [ %nickname [ $+ [ %stattype ] ] ] 1[ Level:7 $3 1 $chr(124) Exp:7 $4 1 $chr(124) Rank:7 $2 1] .notice [ %nickname [ $+ [ %stattype ] ] ] 1[ Next lvl:7 $calc($3 + 1) 1 $chr(124) Exp to:7 $bytes($calc( [ %lvl [ $+ [ $calc($3 + 1) ] ] ] - $remove($4,$chr(44))),b) 1] .notice [ %nickname [ $+ [ %stattype ] ] ] 1[ Bandits:7 $bytes($calc($calc( [ %lvl [ $+ [ $calc($3 + 1) ] ] ] - $remove($4,$chr(44)))/(51*1.33)),b) 1 $chr(124) S.Warriors:7 $bytes($calc($calc( [ %lvl [ $+ [ $calc($3 + 1) ] ] ] - $remove($4,$chr(44)))/(67*1.33)),b) 1 $chr(124) Dagg(74):7 $bytes($calc($calc( [ %lvl [ $+ [ $calc($3 + 1) ] ] ] - $remove($4,$chr(44)))/(70*1.33)),b) 1 $chr(124) Ogre(53)/Ice Warrior:7 $bytes($calc($calc( [ %lvl [ $+ [ $calc($3 + 1) ] ] ] - $remove($4,$chr(44)))/(60*1.33)),b) 1] .sockclose %stattype } } } on $*:TEXT:$(/@(hp|att|str|ran|mag|pra|def|coo|woo|fir|fle|run|sla|min|smi|cra)/):#: { var %stattype $left($remove($1,!,@),3) .tokenize %stattype 32 if ($2 != $null) { sockopen %stattype rscript.org 80 set [ %username [ $+ [ %stattype ] ] ] $2 set [ %nickname [ $+ [ %stattype ] ] ] $nick } elseif ($2 == $null) { sockopen hp rscript.org 80 set [ %username [ $+ [ %stattype ] ] ] $nick set [ %nickname [ $+ [ %stattype ] ] ] $nick } else { .notice $nick Error. Sorry. } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload