Did proper item configs for ring and deleted old super egg event
This commit is contained in:
@@ -139147,35 +139147,25 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "14651",
|
"id": "14651",
|
||||||
"examine": "Passed down from the super egg defending bunny knights.",
|
"examine": "Mysterious blueprints written in an alien language.",
|
||||||
"destroy": "true",
|
"destroy": "true",
|
||||||
"destroy_message": "<col=ef0000I> WARNING: </col> This item CAN NOT be re-obtained.",
|
"destroy_message": "<col=ef0000I> WARNING: </col> You will have to reobtain this item the hard way.",
|
||||||
"requirements": "{0,40}",
|
"requirements": "",
|
||||||
"durability": null,
|
"durability": null,
|
||||||
"weight": "0.4",
|
"weight": "0.1",
|
||||||
"attack_speed": "4",
|
"name": "Ancient Blueprints",
|
||||||
"weapon_interface": "12",
|
"archery_ticket_price": "0"
|
||||||
"render_anim": "326",
|
|
||||||
"equipment_slot": "3",
|
|
||||||
"fun_weapon": "true",
|
|
||||||
"name": "Eggscalibur",
|
|
||||||
"archery_ticket_price": "0",
|
|
||||||
"bonuses": "-100,-100,-50,0,0,0,0,0,0,0,0,-10,0,0,0"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "<col=00e4ef>Super Egg</col>",
|
"name": "Ring of the Star Sprite",
|
||||||
"id": "14652",
|
"id": "14652",
|
||||||
"examine": "<col=00e4ef>SUPER.</col> <col=00ef45>EGG.</col> <col=e1ef00>SUPER.</col> <col=ef0078>EGG.</col>",
|
"examine": "A stardust-infused dragonstone ring.",
|
||||||
"destroy": "true",
|
"destroy": "true",
|
||||||
"destroy_message": "You dare destroy I?! THE ALL MIGHTY AND POWERFUL SUPER EGG?!",
|
"destroy_message": "You can get another by bringing the materials along with the blueprint to a Star Sprite.",
|
||||||
"durability": null,
|
"durability": null,
|
||||||
"weight": "0.4",
|
"weight": "0.1",
|
||||||
"attack_speed": "4",
|
"equipment_slot": "12",
|
||||||
"weapon_interface": "12",
|
|
||||||
"render_anim": "182",
|
|
||||||
"equipment_slot": "3",
|
|
||||||
"fun_weapon": "true",
|
|
||||||
"archery_ticket_price": "0",
|
"archery_ticket_price": "0",
|
||||||
"bonuses": "-100,-100,-50,0,0,0,0,0,0,0,0,-10,0,0,0"
|
"bonuses": "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
-52
@@ -1,52 +0,0 @@
|
|||||||
package rs09.game.content.activity.communityevents
|
|
||||||
|
|
||||||
import core.game.node.item.Item
|
|
||||||
import core.game.world.map.Location
|
|
||||||
import org.rs09.consts.Items
|
|
||||||
import rs09.game.interaction.InteractionListener
|
|
||||||
import rs09.game.system.config.GroundSpawnLoader
|
|
||||||
|
|
||||||
class SuperEggEaster2020 : InteractionListener() {
|
|
||||||
override fun defineListeners() {
|
|
||||||
val egg = GroundSpawnLoader.GroundSpawn(-1,Item(14652,1),Location.create(2926, 3480, 0)).init()
|
|
||||||
|
|
||||||
onDig(Location.create(2188, 3281, 0)){player ->
|
|
||||||
val hasKey = player.getAttribute("easter2020:key",false)
|
|
||||||
if(!hasKey){
|
|
||||||
player.inventory.add(Item(Items.KEY_11039))
|
|
||||||
player.dialogueInterpreter.sendDialogue("You dig and find an ancient key!")
|
|
||||||
player.setAttribute("/save:easter2020:key",true)
|
|
||||||
} else {
|
|
||||||
player.sendMessage("You dig and find nothing.")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
on(14652, ITEM,"unlock"){player, node ->
|
|
||||||
val item = node.asItem()
|
|
||||||
|
|
||||||
if(player.inventory.contains(Items.KEY_11039,1)){
|
|
||||||
player.dialogueInterpreter.sendDialogue("As you approach the egg you feel a great sense of unease.","You feel as though some ancient force lurks within the egg.","The key in your pocket begins to pull towards the egg...")
|
|
||||||
player.dialogueInterpreter.addAction { pl, _ ->
|
|
||||||
if(!pl.getAttribute("2020superegg",false)){
|
|
||||||
pl.dialogueInterpreter.sendDialogue("However...","The egg does not recognize your essence.","You have been rejected.")
|
|
||||||
} else {
|
|
||||||
pl.dialogueInterpreter.sendDialogue("The egg recognizes your essence.","Visions of ancient Easterian knowledge fill your mind.","An ancient Easterian relic lurks within the egg.")
|
|
||||||
pl.dialogueInterpreter.addAction { p, _ ->
|
|
||||||
player.inventory.remove(Item(Items.KEY_11039))
|
|
||||||
player.dialogueInterpreter.sendItemMessage(14651,"You pull from within the egg an ancient weapon.")
|
|
||||||
player.inventory.add(Item(14651))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
player.dialogueInterpreter.sendDialogue("You approach the egg but you sense that it rejects you.")
|
|
||||||
}
|
|
||||||
|
|
||||||
return@on true
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user