Nintendo Wi-Fi Friendcode Script

By Chainchomp on Sep 17, 2006

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

Comments

Sign in to comment.
RussellReal   -  Jan 13, 2007

Was kind of expecting a socket of some sort >.< Oh well ;)

 Respond  
Superior   -  Oct 11, 2006

I made this script, only ChainChomp has made some changes, but the script isn\'t working anymore! The codes of games are messed up!
sfc isn\'t TDS etc.!
And Justdabomb2, I am not familiar with Nintendo, I just made this script for fun :)

 Respond  
Chainchomp   -  Sep 18, 2006

1) I\'ve edited the title.
2) I don\'t know, but at least it works.
3) :S
4) Yeah, I fixed the info.
5) Fixed.

 Respond  
sean   -  Sep 17, 2006

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\"

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.