Skip to content

Pickpocketing#1

Draft
ThePopple wants to merge 20 commits intomainfrom
eiken-thieving
Draft

Pickpocketing#1
ThePopple wants to merge 20 commits intomainfrom
eiken-thieving

Conversation

@ThePopple
Copy link
Copy Markdown
Owner

No description provided.

@advnau
Copy link
Copy Markdown

advnau commented Dec 21, 2025

@codex

val cache = Cache.load(File(getCacheLocation()).toPath())

GamevalDumper.dumpCols(cache,rev.first)
GamevalDumper.dumpCols(cache, rev.first)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please keep any formatting changes to a minimum. We have a bunch of formatting/whitespace changes in this file and then 1 substantial adding the pickpocket. Optimally i prefer any formatting changes to be isolated prs with no new/changed code.

val highChance: Int
)

val definitions: List<PickpocketNPCData> = table("tables.skill_thieving_pickpocketing").map { row ->
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since you made the table in dbtables, after generating it will autogenerate this glue for you under the content/generated/org/alter


allNpcs.forEach { (_, npcDef) ->
if (!npcDef.actions.contains("Pickpocket")) return@forEach
if (npcDef.category != -1) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe introduce 2 functions here, this code is fairly nested and with the else statement before that would add clarity.



private fun canPickpocket(player: Player, npc: Npc, data: Pickpocketing.PickpocketNPCData): String? {
if (player.getSkills().getCurrentLevel(Skills.THIEVING) < data.level) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the correct order of messages?

@advnau
Copy link
Copy Markdown

advnau commented Dec 21, 2025

@codex review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants