Newbie Spellweaver
- Joined
- Jul 11, 2021
- Messages
- 26
- Reaction score
- 9
I forgot to post this when I wrote it a few years ago. It is meant to be used with
The models were easily generated thanks to
By default, it's expected that your Refined server path is as follows
Endpoints are as follows
Admin panel (Django default)
Some endpoint examples
Python example of using the
to set all characters belonging to
to a
Note: This also sets bounty to be quite high for each character.
You must be registered to see links
.The models were easily generated thanks to
You must be registered to see links
You must be registered to see links
By default, it's expected that your Refined server path is as follows
Python:
'default': {
'ENGINE': 'django.db.backends.sqlite3',
# If username is 'Venister', server folder should be at
# `C:\Users\Venister\Documents\rfgunz\server`
'NAME': f'C:\\Users\\{os.getlogin()}\\Documents\\rfgunz\\server\\GunzDB.sq3'
}
Endpoints are as follows
Python:
# Admin
path('admin/', admin.site.urls),
# ListView
path("gunz/accounts/list/", AccountList.as_view(), name="list"),
path("gunz/characters/list/", CharacterList.as_view(), name="list"),
path("gunz/clans/list/", ClanList.as_view(), name="list"),
path("gunz/clans/list/totalpoints/", ClanListByTotalPoints.as_view(), name="list"),
path("gunz/clans/list/points/", ClanListByPoints.as_view(), name="list"),
path("gunz/clans/<int:clan_id>/members/", ClanMemberList.as_view(), name="list"),
path("gunz/stages/list", GameRoomList.as_view(), name="list"),
# Create
path("gunz/maxoutaccount/", MaxOutAccount.as_view(), name='create'),
path("gunz/clans/adminaboose/", AdminAbuse.as_view(), name='create'),
path("gunz/clans/reset/", ClanReset.as_view(), name='create'),
Admin panel (Django default)
Some endpoint examples
Character list
Python example of using the
Code:
gunz/maxoutaccount/
Code:
account_id
Code:
target_level
Note: This also sets bounty to be quite high for each character.
Python:
>>> import requests
>>> r = requests.post("http://localhost:6969/gunz/maxoutaccount/", data={"account_id": 2, "target_level": 99})
>>> r
<Response [200]>
>>>
Attachments
You must be registered for see attachments list
Last edited: