I am creating a bot for an IRC chat room.

It will be an rpg (role playing game) room.

I need help creating a dice script. It can be written in Perl.

For example this is how it would work:

Chatter: d10
Bot: Chatter (d10) Result i.e 8

Can anyone offer any assistance?

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Related Posts:

Comments

Jacob M on 6 July, 2010 at 5:43 pm #

Many bots (n3rd and I BELIEVE DreamBot as well) have built in dice scripts already. However, if you want to add one to your own bot, try taking one from an already-made bot script and copy it, or if that doesn’t work, just open it up and figure it out. Most run either C++ or Visual-BASIC, so be prepared to cross-language code.

addict3d.org has a lot of IRC bots and scripts, so I’d definitely recommend looking them up.

Hope I was of some help!