Fixed drill sergeant completion reward drop bug
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package content.global.ame.events.drilldemon
|
||||
|
||||
import core.api.*
|
||||
import core.game.interaction.QueueStrength
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.world.map.Location
|
||||
import core.game.world.map.zone.ZoneBorders
|
||||
@@ -85,6 +86,7 @@ object DrillDemonUtils {
|
||||
}
|
||||
|
||||
fun reward(player: Player) {
|
||||
queueScript(player, 2, QueueStrength.SOFT) {
|
||||
val hasHat = hasAnItem(player, Items.CAMO_HELMET_6656).container != null
|
||||
val hasShirt = hasAnItem(player, Items.CAMO_TOP_6654).container != null
|
||||
val hasPants = hasAnItem(player, Items.CAMO_BOTTOMS_6655).container != null
|
||||
@@ -94,5 +96,8 @@ object DrillDemonUtils {
|
||||
!hasPants -> addItemOrDrop(player, Items.CAMO_BOTTOMS_6655)
|
||||
else -> addItemOrDrop(player, Items.COINS_995, 500)
|
||||
}
|
||||
return@queueScript stopExecuting(player)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
package content.global.ame.events.drilldemon
|
||||
|
||||
import core.api.*
|
||||
import core.api.getAttribute
|
||||
import core.api.sendItemDialogue
|
||||
import core.api.unlock
|
||||
import core.game.dialogue.DialogueFile
|
||||
import core.game.dialogue.FacialExpression
|
||||
import core.game.node.entity.npc.NPC
|
||||
|
||||
import core.tools.END_DIALOGUE
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
Reference in New Issue
Block a user