This is a script for the ever popular Nintendo service, called Wi-Fi, which enables you to play online with friends if you have their friendcode, or FC.
To access the menu, please type @friendcodes, and all the information is displayed there.
This script basically serves as a storage database for a person's FC, To add your FC, type @addfc .
Each game is recognised by an acronymn:
TDS: Tetris DS
ACWW: Animal Crossing: Wild World
MKDS: Mario Kart DS
LM: Lost Magic
MPH: Metroid Prime Hunters
SFC: Starfox Command
Once added, type @findfc , to look up their codes. To delete your code, type @del .
Edit: The script cannot be used by yourself.
This script was made by one of my friends, Superior, who is a brilliant scripter.
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: @addfc (game) (yourcode) To delete one of your codes type: @del (game)
notice $nick Games can be: Metroid Prime Hunters (MPH), Animal Crosiing Wild Word (ACWW), Mario Kart DS (MKDS), Star Fox Command (SFC) Tetris DS (TDS) Lost Magic (LM)
notice $nick Example: @addfc ACWW 23323322
notice $nick If you want to find your friend's friendcodes, type: @findfc (nick)
notice $nick Example: @findfc $nick
}
if ($1 == @addfc) {
if ($2 == $null) { notice $nick You did not enter any game and code number! Type: @addfc (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 == SFC) { write -s $nick sfc.txt $nick SFC code: $3 | notice $nick Your SFC code is now: $3 }
if ($2 == TDS) { write -s $nick tds.txt $nick TDS code: $3 | notice $nick Your TDS 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 == @findfc) {
if ($2 == $null) { notice $nick You did not enter any name! Type: @findfc (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(sfc.txt,s, $2) == $null) && ($read(tds.txt,s, $2) && ($read(lm.txt,s, $2) == $null) == $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(sfc.txt,s, $2) == $null) { notice $nick $2 has no SFC code added! }
else { notice $nick $2 $+ 's $read(sfc.txt,s, $2) }
if ($read(tds.txt,s, $2) == $null) { notice $nick $2 has no TDS code added! }
else { notice $nick $nick $+ 's $read(tds.txt,s, $2) }
if ($read(lm.txt,s, $2) == $null) { notice $nick $2 has no LM code added! }
else { notice $nick $2 $+ '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 $nick MPH code: $3 | notice $nick Your MPH code is now deleted! }
if ($2 == ACWW) { write -ds $nick acww.txt $nick ACWW code: $3 | notice $nick Your ACWW code is now deleted! }
if ($2 == MKDS) { write -ds $nick mkds.txt $nick MKDS code: $3 | notice $nick Your MKDS code is now deleted! }
if ($2 == SFC) { write -ds $nick sfc.txt $nick SFC code: $3 | notice $nick Your SFC code is now deleted! }
if ($2 == TDS) { write -ds $nick tds.txt $nick TDS code: $3 | notice $nick Your TDS code is now deleted! }
if ($2 == LM) { write -ds $nick lm.txt $nick LM code: $3 |
}
}
1) Wi-Fi is not just for Nintendo nor was it created by them
2) Why not use .ini\'s for something like this?
3) It\'s to my knowledge that: \"write -s $nick\" != \"write -s$nick\"
4) This snippet uses and on text event and your directions clearly state that typing \"@friendcodes\" will result in information being displayed. Your instructions are incorrect, this snippet can only be triggered by someone else.
5) \"if ($2 == $null) { notice $nick You did not enter any game and code number! Type: @add (game) (code) }\" the command to add is \"@addfc\"