High Alching Ring of Wealth now adds permanent unlock.

This commit is contained in:
randy 2024-11-13 14:10:24 -07:00
parent 0b05424690
commit a6ad4f8f3b

View file

@ -230,6 +230,23 @@ class ModernListeners : SpellListener("modern"){
return false
}
var loop = true
val ringOfWealth = intArrayOf(14646,14644,14642,14640,14638)
if(high && ringOfWealth.contains(item.id)){
if (getAttribute(player, "ringofwealth:unlocked", false)) {
player.sendMessage("You have already unlocked the permanent Wealth effect and can no longer ")
player.sendMessage("alchemize this ring.")
return false
} else {
player.setAttribute("/save:ringofwealth:unlocked", true)
player.sendMessage("Combining the Alchemy spell with the Wealth enchantment causes a strange ")
player.sendMessage("interaction. You are now permanently enchanted with the Wealth effect and ")
player.sendMessage("no longer need to wear the ring to get the benefit of increased rare drops.")
loop = false
}
}
if (player.pulseManager.current !is MovementPulse) {
player.pulseManager.clear()
}
@ -265,8 +282,12 @@ class ModernListeners : SpellListener("modern"){
//showMagicTab(player)
setDelay(player, 5)
}
counter++
return false
if (loop) {
counter++
return false
} else {
return true
}
}
})
return true