requirements:
- Python v3.10+
pip install requests
pip install python-dateutil
pip install jwt
- license key (get it from https://disgaea.codedbots.com, once you have the license key either create a BOT_TOKEN environmental variable or put it into
codedbots.py
on line 15. )
features:
- use serial codes
- finish all quests
- farm single quests
- farm full EPs
- every quest is finished with 3*
- buy rare items from shop
- use free summons
- overlords tower supported
- farm item world for both weapons & armor
- catching innocents while farming item world
- multi region support gl & jp
- proxy support
- leech raid bosses
- run Axel contest
- automate fish fleet and item survey
-
go to https://p-public.service.boltrend.com/oauthOs?appid=287&lang=en
-
open developer tools -> network (ensure persist logs is on)
-
login via webpage
-
inspect the first requests payload, it should look something like:
{ "appId": "287", "account": "<string>", "password": "<string>", "channel": 3, "captchaId": "", "validate": "", "sourceId": "", "sign": "<string>" }
-
Using the variables above set the following environmental variables:
export STEAM_LOGIN='true' export DRPG_EMAIL="<account value>" export DRPG_PASS="<password value>" export DRPG_SIGN="<sign value>"
-
be sure to set your device to 3
a = API() a.o.wait = 0 a.o.set_region(2) a.o.set_device(3) a.quick_login()
If you dont know how to set envs or are on window or w/e use this at the start of your bot script:
import os
os.environ["STEAM_LOGIN"] = 'true'
os.environ["DRPG_EMAIL"] = "<account value>"
os.environ["DRPG_PASS"] = "<password value>"
os.environ["DRPG_SIGN"] = "<sign value>"
from main import API
a = API()
a.o.wait = 0
a.o.set_region(2)
a.o.set_device(3)
a.quick_login()
- Create an account for JP (preferrably on DMM)
- Get a transfer code
- Set region to 1
- Use jp_reroll_example.py Call the dologin method with the user id and one time code from the transfer. Paste the code in line 18.
code = 'TRANSFER CODE GOES HERE THE FIRST TIME YOU USE THE BOT'
-
The bot generates a new transfer code every time. It will be stored in transfercode.txt
-
After a few uses, you will run into the following error:
server returned error: undefined method `correct_signature?' for nil:NilClass for battle_status
When you do, open DRPG JP on a different device and use the transfer code there. You do not need to log in afterwards, once you've used the code you can use the bot once again.
- Once you've succesfulyl logged in, you can use loginfromcache() instead of dologin. Instead of logging in again, it will resume the previous session. It will reduce the number og logins, thus making it so that the transfer code will break less often.
- After logging in to the game (dmm/phone) or after a daily reset you will need to use a.dologin(user_id, one_time_code) before you can use loginfromcache() again.
- If you want to reroll, copy the new transfer code into transfercode.txt, and use the new player id