mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 21:40:27 -07:00
Vinesweeper hotfix
This commit is contained in:
parent
de98152b4d
commit
c712cd50d7
1 changed files with 3 additions and 0 deletions
|
|
@ -123,6 +123,9 @@ class BlinkinDialogue : FarmerDialogue() {
|
||||||
42 -> {
|
42 -> {
|
||||||
player!!.setAttribute("runscript") { amount: Int ->
|
player!!.setAttribute("runscript") { amount: Int ->
|
||||||
val price = Item(Items.COINS_995, 10 * amount)
|
val price = Item(Items.COINS_995, 10 * amount)
|
||||||
|
if(price.amount <= 0){
|
||||||
|
return@setAttribute
|
||||||
|
}
|
||||||
if(player!!.inventory.containsItem(price) && player!!.inventory.remove(price)) {
|
if(player!!.inventory.containsItem(price) && player!!.inventory.remove(price)) {
|
||||||
if(player!!.inventory.add(Item(Items.OGLEROOT_12624, amount))) {
|
if(player!!.inventory.add(Item(Items.OGLEROOT_12624, amount))) {
|
||||||
npcl("There ya go! Good luck!")
|
npcl("There ya go! Good luck!")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue