Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import world.gregs.voidps.engine.entity.character.player.skill.Skill
import world.gregs.voidps.engine.entity.character.player.skill.exp.exp
import world.gregs.voidps.engine.entity.character.sound
import world.gregs.voidps.engine.entity.obj.GameObject
import world.gregs.voidps.network.login.protocol.encode.playSoundEffect
import world.gregs.voidps.engine.event.*
import world.gregs.voidps.engine.map.collision.random
import world.gregs.voidps.engine.queue.ActionPriority
Expand Down Expand Up @@ -116,6 +117,11 @@ interface Teleport {
player.exp(Skill.Magic, xp)
if (sound) {
player.sound("teleport_${type}")
if (type == "tablet") {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

If you add the ids as teleport_tablet and teleport_jewellery to .sounds.toml that should work

player.client?.playSoundEffect(965)
} else if (type != "jewellery") {
player.client?.playSoundEffect(200)
}
}
player.gfx("teleport_$type")
player.animDelay("teleport_$type")
Expand Down