Add handling for wizard's guild portals

This commit is contained in:
ceikry
2021-07-01 20:02:37 -05:00
parent 2cc0e713f9
commit 2545f1acdc
@@ -0,0 +1,29 @@
package rs09.game.interaction.`object`
import api.ContentAPI
import core.game.world.map.Location
import rs09.game.interaction.InteractionListener
class WizardGuildPortals : InteractionListener() {
val WTOWER_PORTAL = 2156
val DWTOWER_PORTAL = 2157
val SORC_TOWER_PORTAL = 2158
override fun defineListeners() {
on(WTOWER_PORTAL, SCENERY, "enter"){player, _ ->
ContentAPI.teleport(player, Location.create(3114, 3171, 0))
return@on true
}
on(DWTOWER_PORTAL, SCENERY, "enter"){player, _ ->
ContentAPI.teleport(player, Location.create(2916, 3335, 0))
return@on true
}
on(SORC_TOWER_PORTAL, SCENERY, "enter"){player, _ ->
ContentAPI.teleport(player, Location.create(2701, 3395, 0))
return@on true
}
}
}