MTA fixes:
- It is now possible to talk to the telekinetic guardian through the maze wall. - Asking for the price of an MTA reward no longer attempts to purchase said reward. - Graveyard bones now give the correct amount of bananas/peaches. - Number of telekinetic mazes solved now persist when exiting.
This commit is contained in:
@@ -2,6 +2,7 @@ package rs09.game.content.activity.mta
|
||||
|
||||
import core.game.content.activity.mta.impl.AlchemistZone
|
||||
import core.game.node.item.Item
|
||||
import core.game.world.map.Direction
|
||||
import core.game.world.update.flag.context.Animation
|
||||
import core.game.world.update.flag.context.Graphics
|
||||
import org.rs09.consts.Items
|
||||
@@ -16,6 +17,9 @@ class MTAListeners : InteractionListener() {
|
||||
player.dialogueInterpreter.open(node.id, node)
|
||||
return@on true
|
||||
}
|
||||
setDest(NPC, intArrayOf(NPCs.MAZE_GUARDIAN_3102), "talk-to") { player, node ->
|
||||
return@setDest node.location.transform(Direction.getDirection(player.location, node.location), -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,4 +103,4 @@ class MTASpellListeners : SpellListener("modern"){
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ class ModernListeners : SpellListener("modern"){
|
||||
if(isInMTA){
|
||||
if(bones.contains(item.id)){
|
||||
val inInventory = player.inventory.getAmount(item.id)
|
||||
val amount = inInventory * GraveyardZone.BoneType.forItem(Item(item.id)).ordinal + 1
|
||||
val amount = inInventory * (GraveyardZone.BoneType.forItem(Item(item.id)).ordinal + 1)
|
||||
if(amount > 0){
|
||||
player.inventory.remove(Item(item.id,inInventory))
|
||||
player.inventory.add(Item(if(bananas) Items.BANANA_1963 else Items.PEACH_6883,amount))
|
||||
@@ -272,4 +272,4 @@ class ModernListeners : SpellListener("modern"){
|
||||
addXP(player,30.0)
|
||||
setDelay(player,true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user