【问题标题】:What language is this? (for an IRC Bot)这是什么语言? (对于 IRC 机器人)
【发布时间】:2011-08-07 02:51:08
【问题描述】:

终于找到了我大约 10 年前为 IRC Bot 编写的一些非常古老的脚本。我不知道自己在做什么,想知道是否有人知道这是什么内容以及任何信息?

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

【问题讨论】:

  • 它可能是特定 IRC 客户端的自定义脚本语言。
  • 这个问题证明了code cmets的重要性。

标签: irc bots


【解决方案1】:

这是 mIRC 客户端的 mIRC scripting language


哦,这似乎与(我 12 岁时的知识)通过服务 rscript.org 在游戏 runescape 中训练盗贼盗贼有关。

【讨论】:

  • 是的,它绝对是 RS 的统计数据检索器。感谢您提供 mIRC 提示。
【解决方案2】:

【讨论】:

    【解决方案3】:

    我确定您使用 mIRC 脚本语言(非官方 mSL)编写程序。您可以在其官方website 上找到更多相关信息。目前我试图弄清楚你在做什么;)我会继续关注。

    【讨论】:

    • 哦,我知道我在做什么,它是一个更大的代码块的一部分,用于查找某人在某些聊天事件中的 Runescape 统计信息。感谢您的帮助
    猜你喜欢
    • 1970-01-01
    • 2019-03-20
    • 1970-01-01
    • 1970-01-01
    • 2013-11-30
    • 2011-01-21
    • 2018-12-31
    • 2017-05-13
    • 1970-01-01
    相关资源
    最近更新 更多