forked from 2009Scape/Server
High Alching Ring of Wealth now adds permanent unlock.
This commit is contained in:
parent
0b05424690
commit
a6ad4f8f3b
1 changed files with 23 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue