Skip to content

Commit

Permalink
Fix level up dialogues closing automatically for non-bot players
Browse files Browse the repository at this point in the history
  • Loading branch information
GregHib committed Dec 3, 2024
1 parent 3667e1c commit 6629f5a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package world.gregs.voidps.bot.skill

import world.gregs.voidps.bot.isBot
import world.gregs.voidps.engine.client.ui.event.interfaceOpen
import world.gregs.voidps.network.client.instruction.InteractDialogue

interfaceOpen("dialogue_level_up") { bot ->
bot.instructions.trySend(InteractDialogue(interfaceId = 740, componentId = 3, option = -1))
if (bot.isBot) {
bot.instructions.trySend(InteractDialogue(interfaceId = 740, componentId = 3, option = -1))
}
}

0 comments on commit 6629f5a

Please sign in to comment.