World of Warcraft Armory Search

By icedtaa on Dec 26, 2009

This script looks up people on the World of Warcraft armory, on ONLY US servers.
usage:/armory Character @realm
Sorry for the messiness, I am still learning mSL lol
Feel free to change, edit, and remake this small script

alias armory {
  if ($1- == $null) { echo -a Nothing entered. } { halt }
  if (@ isin $1-) {
    if ($1 != $null) {
      set %name $1
    }
    if ($left($2,1) == @) {
      set %realm $replace($2-,@,$null) 
    }
    echo -a Armorying $replace(%name,$left(%name,1),$upper($left(%name,1))) of $replace(%realm,$left(%realm,1),$upper($left(%realm,1))) $+ .
    run http://www.wowarmory.com/character-sheet.xml?r= $+ %realm $+ &n= $+ %name
    unset %realm
    unset %name
  }
  else echo -a Correct format: /armory <name> @<realm>.
}

Comments

Sign in to comment.
sunslayer   -  Dec 27, 2009
    unset %realm
    unset %name

can be

unset %realm %name

but its best to use /var when your staying within one alias or event

 Respond  
icedtaa   -  Dec 26, 2009

yar, i am still learning msl lol

 Respond  
DarkCoder   -  Dec 26, 2009

Shorter version?

alias armory {
  if (@ isin $1) && ($left($2,1) == @) {
     var %realm $remove($2-,@) 
    echo -a Armorying $replace($1,$left($1,1),$upper($left($1,1))) of $replace(%realm,$left(%realm,1),$upper($left(%realm,1))) $+ .
    run http://www.wowarmory.com/character-sheet.xml?r= $+ %realm $+ &n= $+ %name
  }
  else echo -a Insufficent parems Correct format: /armory <name> @<realm>.
}
 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.