Paste this into remotes and it type !friendcodes to get started! You and your friends can keep all their friendcodes. Type !find NICK to locate a user's codes.
on *:TEXT:*:#: {
if ($1 == !friendcodes) && ($2 == $null) {
notice $nick Welcome to the friendcodes menu $nick $+ !
notice $nick If you want to add your friendcodes here, type: !add (game) (yourcode) To delete one of your codes type: !del (game)
notice $nick Games can be: Metroid Prime Hunters (MPH), Animal Crossing Wild Word (ACWW), Mario Kart DS (MKDS), Tony Hawk (TH) and Lost Magic (LM)
notice $nick Example: !add ACWW 23323322
notice $nick If you want to find your friend's friendcodes, type: !find (nick)
notice $nick Example: !find $nick
notice $nick Script is made by Justdabomb2
}
if ($1 == !add) {
if ($2 == $null) { notice $nick You did not enter any game and code number! Type: !add (game) (code) }
if ($3 == $null) { notice $nick You did not enter any code! Type: !add (game) (code) }
if ($2 == MPH) { write -s $nick mph.txt $nick MPH code: $3 | notice $nick Your MPH code is now: $3 }
if ($2 == ACWW) { write -s $nick acww.txt $nick ACWW code: $3 | notice $nick Your ACWW code is now: $3 }
if ($2 == MKDS) { write -s $nick mkds.txt $nick MKDS code: $3 | notice $nick Your MKDS code is now: $3 }
if ($2 == TH) { write -s $nick th.txt $nick TH code: $3 | notice $nick Your TH code is now: $3 }
if ($2 == LM) { write -s $nick lm.txt $nick LM code: $3 | notice $nick Your LM code is now: $3 }
}
if ($1 == !find) {
if ($2 == $null) { notice $nick You did not enter any name! Type: !find (name) }
elseif ($2 != $null) { Notice $nick You asked for the code numbers of $2 $+ ! Here they are:
if ($read(mph.txt,s, $2) == $null) && ($read(acww.txt,s, $2) == $null) && ($read(mkds.txt,s, $2) == $null) && ($read(th.txt,s, $2) == $null) && ($read(lm.txt,s, $2) == $null) { notice $nick Sorry $nick but $2 hasn't added any codes! }
else {
if ($read(mph.txt,s, $2) == $null) { notice $nick $2 has no MPH code added! }
else { notice $nick $2 $+ 's $read(mph.txt,s, $2) }
if ($read(acww.txt,s, $2) == $null) { notice $nick $2 has no ACWW code added! }
else { notice $nick $2 $+ 's $read(acww.txt,s, $2) }
if ($read(mkds.txt,s, $2) == $null) { notice $nick $2 has no mkds code added! }
else { notice $nick $2 $+ 's $read(mkds.txt,s, $2) }
if ($read(th.txt,s, $2) == $null) { notice $nick $2 has no TH code added! }
else { notice $nick $2 $+ 's $read(th.txt,s, $2) }
if ($read(lm.txt,s, $2) == $null) { notice $nick $2 has no LM code added! }
else { notice $nick $nick $+ 's $read(lm.txt,s, $2) }
}
}
}
if ($1 == !del) {
if ($2 == $null) { notice $nick You did not enter any game ! Type: !del (game) }
if ($2 == MPH) { write -ds $nick mph.txt | notice $nick Your MPH code is now deleted! }
if ($2 == ACWW) { write -ds $nick acww.txt | notice $nick Your ACWW code is now deleted! }
if ($2 == MKDS) { write -ds $nick mkds.txt | notice $nick Your MKDS code is now deleted! }
if ($2 == TH) { write -ds $nick th.txt | notice $nick Your TH code is now deleted! }
if ($2 == LM) { write -ds $nick lm.txt | notice $nick Your LM code is now deleted! }
}