Hello people. I would like to ask for some help to create a script. Actually it's more than just help. If anyone could create this socket script for me I would be much appreciated. Never played around with socket scripts and am really new to scripts in general.
When you search for someone on www.lolking.net this is what you get. Because of the different regions you don't get the profile page instantly. But this is enough info anyway.
I would like to get this info sent to the channel when triggered.
Like usage: !elo euw menterothh
and it would return like:
wow. thank you very much.
(mentbot) Level/League/Rating: 30/Silver I/1476 -- W/L: 186/ 180 -- KDA: 4.1/4.2/10.2
just changed a little of the output to shorten the text. wasn't hard to find.
I do get a space in the output after the "/" here:
W/L: 186/ 180
but it only shows up in the twitch chat. in the IRC-client it's fine with no space though.
no big deal. just a little annoying. but if it can't really be fixed it's okay.
and again. thank you very much.
this turned out like this for some reason
(11:28:21) (menteroth) !elo eune Menteroth
(11:28:26) (mentbot) East/1500/Menteroth -- W/L: Gold V/Wins -- KDA: Losses
but NA region worked fine
(11:31:26) (menteroth) !elo na Menteroth
(11:31:29) (mentbot) Level/League/Rating: 30/Silver I/1500 -- W/L: 39/33 -- KDA: 5.2/5.7/9.9
Try this. Let me know if there's any issues with it... The output's not EXACTLY as you've described, but if you want it to be, that can easily be fixed.
Examples of script in use (including errors):