mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed possible softlock at Evil Bob event
This commit is contained in:
parent
cde2dcc93f
commit
2948d58934
2 changed files with 2 additions and 4 deletions
|
|
@ -22,10 +22,8 @@ class EvilBobDialogue(val rewardDialogue: Boolean = false, val rewardXpSkill: In
|
|||
} else if (getAttribute(player!!, EvilBobUtils.eventComplete, false)) {
|
||||
sendDialogue(player!!, "Evil Bob appears to be sleeping, best not to wake him up.").also { stage = END_DIALOGUE }
|
||||
} else if (removeItem(player!!, Items.RAW_FISHLIKE_THING_6200)) {
|
||||
setAttribute(player!!, EvilBobUtils.fishCaught, false)
|
||||
playerl(FacialExpression.NEUTRAL, "Here, I've brought you some fish.").also { stage = 500 }
|
||||
} else if (removeItem(player!!, Items.RAW_FISHLIKE_THING_6204)) {
|
||||
setAttribute(player!!, EvilBobUtils.fishCaught, false)
|
||||
setAttribute(player!!, EvilBobUtils.attentive, true)
|
||||
setAttribute(player!!, EvilBobUtils.attentiveNewSpot, true)
|
||||
playerl(FacialExpression.NEUTRAL, "Here, I've brought you some fish.").also { stage = 600 }
|
||||
|
|
|
|||
|
|
@ -37,7 +37,8 @@ class EvilBobListeners : InteractionListener, MapArea {
|
|||
sendNPCDialogue(player, NPCs.SERVANT_2481, "You'll need a fishing net. There are plenty scattered around the beach.", FacialExpression.SAD)
|
||||
} else if (freeSlots(player) == 0) {
|
||||
sendDialogue(player, "You don't have enough space in your inventory.")
|
||||
} else if (getAttribute(player, EvilBobUtils.fishCaught, false)) {
|
||||
} else if (inInventory(player, Items.FISHLIKE_THING_6202) || inInventory(player, Items.FISHLIKE_THING_6206) ||
|
||||
inInventory(player, Items.RAW_FISHLIKE_THING_6200) || inInventory(player, Items.RAW_FISHLIKE_THING_6204)) {
|
||||
sendNPCDialogue(player, NPCs.SERVANT_2481, "You've already got a fish. Come over here to uncook it, then serve it to Evil Bob.", FacialExpression.SAD)
|
||||
} else {
|
||||
lock(player, 6)
|
||||
|
|
@ -68,7 +69,6 @@ class EvilBobListeners : InteractionListener, MapArea {
|
|||
}
|
||||
sendItemDialogue(player, Items.FISHLIKE_THING_6202, "You catch a... what is this?? Is this a fish?? And it's cooked already??")
|
||||
resetAnimator(player)
|
||||
setAttribute(player, EvilBobUtils.fishCaught, true)
|
||||
}
|
||||
}
|
||||
return@on true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue