Help Writing a scirpt

  • Ajhon
  • Born
  • Born
  • Ajhon
  • Posts: 3

Post 3+ Months Ago

I am Trying to Build an IRC bot.. i have made a few simple commands..but im trying to make it more advanced..can you help me?

The bot is based on a game called Erepublik...it should get information from the game.For example.if i say this on IRC

.link (player name)
It will link me the players profile. i am trying you make it do a simple command like this.

i want the bot to do now is:
if right this:
.link Economy (something)

i want the IRC bot to respond with this:
erepublik./en/country/economy/(the something i wrote)

so this means if i write: .link economy Poland

i get:

erepublik./en/country/economy/poland

and if i write .link economy USA -

i get

erepublik./en/country/economy/USA

If you can also help me write more advanced command script here is the api for the game :)I would Be grateful if you could help me :D

http://api.erepublik/eapi-docs.pdf There is a ".com" right after "erepublik"


Im using mIRC to host my "Bot"
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • WritingBadCode
  • Graduate
  • Graduate
  • User avatar
  • Posts: 214
  • Loc: Sweden

Post 3+ Months Ago

Just wondering what language are you using/want to use to to build this bot?
  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1244
  • Loc: Sydney

Post 3+ Months Ago

IRC has it's own language i think, some scripting lang
  • Ajhon
  • Born
  • Born
  • Ajhon
  • Posts: 3

Post 3+ Months Ago

im not sure.. I use MIRC

Here is an eg.

if ( $nick isop $chan || $me isop $chan ) {

if ( $1 == .kick ) { /kick $chan $2 $3- | /notice $nick $2 has been kicked! }

if ( $1 == .ban ) { //mode $chan +b $address($2,2) | /notice $nick $2 has been banned }

id ($1 == .kb ) { //mode $chan +b $address($2,2) | /kick $chan $2 $2- | /notice $nick $2 has been kicked }

if ( $1 == .moderate ) { /mode $chan +m | /msg $chan Channel under moderation, only voice + users can talk! }

if ( $1 == .unmod ) { /mode $chan -m | /msg $chan Ecreyone can talk again now }
}


Can you help me?
  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1244
  • Loc: Sydney

Post 3+ Months Ago

mIRC is the client program but your connecting to a IRC network running the universe software.

also from memory there was a lot more to it, i remember some great scripts back in the day.
  • Ajhon
  • Born
  • Born
  • Ajhon
  • Posts: 3

Post 3+ Months Ago

yea. mIRC is my client. im using it just cause of the scripting. Do you know any cool scripts?
  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1244
  • Loc: Sydney

Post 3+ Months Ago

Hello World
Code: [ Select ]
;Defines the alias 'hello' in the remote script

;Note: if this is placed in an alias script, the 'alias' part must be removed (result: hello {)
;Usage: /hello
alias hello {

 ;Displays(/echo) 'Hello World!' into the active window(-a)
 echo -a Hello World!

}
  1. ;Defines the alias 'hello' in the remote script
  2. ;Note: if this is placed in an alias script, the 'alias' part must be removed (result: hello {)
  3. ;Usage: /hello
  4. alias hello {
  5.  ;Displays(/echo) 'Hello World!' into the active window(-a)
  6.  echo -a Hello World!
  7. }


you can find some basic help on wiki
http://en.wikipedia.org/wiki/MIRC_scripting_language

Really a simple language just need to study the variables.

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 139 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.