mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2014
Posts: 8
R
RyuFive Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Nov 2014
Posts: 8
Im making a bot for this online game i'm playing. Torn City Online Game . Heres the link if you want to see, youll need to if you want to help me.

Now on the page there are dialogues popping up one after another and i want my Bot to be able to pull these and paste them in my channel. Any idea how they can be pulled.

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
To pull data from websites you need to use sockets.
/help sockets
http://en.wikichip.org/wiki/mirc/sockets


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Nov 2014
Posts: 8
R
RyuFive Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Nov 2014
Posts: 8
alias pull {
bset &null 1 0
sockudp -k pull 83.223.121.93 37 &null
}

on *:udpread:pull:{
sockread -f &data
echo -a : &data
sockclose $sockname
}

So i mostly copied that from the wiki, but here's what ive understood (Correct me if im wrong).
I need to find the "socket" which has the data i need first and then send it to my bot.
I cant find any sockets by using Page Source or F12.


Link Copied to Clipboard