Closed anhntsi closed 2 years ago
Based on my experience, you need to connect to both kingdoms
and fields
websockets to make it work.
{
"api": "https://api-lok-live.leagueofkingdoms.com/api",
"kingdoms": ["https://sock-lok-live.leagueofkingdoms.com/socket.io/"], // required
"fields": ["https://socf-lok-live.leagueofkingdoms.com/socket.io/"], // required
"chats": ["https://socc-lok-live.leagueofkingdoms.com/socket.io/"] // optional
}
Thank. I will try using kingdoms
websocket.
@hldh214 sorry to bother you, i've been investigating for a few days but it not work. I have emit /field/enter
and /kingdom/enter
when start bot but call API api/field/march/start
still error: not_online
.
If I open play.leagueofkingdoms.com
that api call ok. So I think I sent something missing. I also tried debugging networking and what I send and play.leagueofkingdoms.com
send are the same. I don't know where the problem? :(
Can you suggest me? Thanks.
Try to make these requests before your main logic start
Thank, i will try to call it.
@hldh214 Thanks, it work.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi,
The project is great. I referenced it a lot to write my own bot. I have problem about API:
api/field/march/start
alway response error:not_online
.Do you have suggestion about it? This is flow I use to farming:
api/kingdom/enter
api/chat/logs
andapi/auth/setDeviceInfo
api/field/march/info
api/field/march/start