Just a simple script to search for a summoner's name in a specific region and gives you the URL for it.
A script for the lazy one.
Thanks for the help.
on *:TEXT:!scout*:#: {
if ($2 == $null) { msg $chan syntax: !scout region nickname. }
elseif ($2 == euw || $2 == eune || $2 == na) {
if ($3 == $null) { msg $chan enter nickname. }
else {
if ($2 == euw) { msg $chan http://www.lolnexus.com/scouter/search?name= $+ $replace($3-, $chr(32), +) $+ &server=EUW }
elseif ($2 == eune) { msg $chan http://www.lolnexus.com/EUNE/search?name= $+ $replace($3-, $chr(32), +) $+ &server=EUNE }
elseif ($2 == na) { msg $chan http://www.lolnexus.com/NA/search?name= $+ $replace($3-, $chr(32), +) $+ &server=NA }
}
}
else { msg $chan only euw/eune/na are available. }
}
Not sure if this will work, didn't tested it..
on *:TEXT:!scout*:#:{
if ($2 == $null) { msg $chan syntax: !scout region nickname. }
if ($2 == euw || $2 == eune || $2 == na) {
if ($3 == $null) { msg $chan enter nickname. }
else {
if ($2 == euw) { msg $chan http://www.lolnexus.com/scouter/search?name= $+ $3 $+ &server=EUW }
elseif ($2 == eune) { msg $chan http://www.lolnexus.com/EUNE/search?name= $+ $3 $+ &server=EUNE }
elseif ($2 == na) { msg $chan http://www.lolnexus.com/NA/search?name= $+ $3 $+ &server=NA }
}
}
else { msg $chan only EUW/EUNE/NA are available. }
}
Yea, make elseif of the second if should fix this problem :)
on *:TEXT:!scout*:#:{
if ($2 == $null) { msg $chan syntax: !scout region nickname. }
elseif ($2 == euw || $2 == eune || $2 == na) {
if ($3 == $null) { msg $chan enter nickname. }
else {
if ($2 == euw) { msg $chan http://www.lolnexus.com/scouter/search?name= $+ $3 $+ &server=EUW }
elseif ($2 == eune) { msg $chan http://www.lolnexus.com/EUNE/search?name= $+ $3 $+ &server=EUNE }
elseif ($2 == na) { msg $chan http://www.lolnexus.com/NA/search?name= $+ $3 $+ &server=NA }
}
}
else { msg $chan only EUW/EUNE/NA are available. }
}
thanks. that works fine.