forked from 2009Scape/Server
revert 4912b39831
revert Added additional stats to Monster Examine and removed the coin cost from Plank Make.
This commit is contained in:
parent
4912b39831
commit
90c80fbd8e
1 changed files with 8 additions and 20 deletions
|
|
@ -372,26 +372,16 @@ class LunarListeners : SpellListener("lunar"), Commands {
|
|||
|
||||
setDelay(player, false)
|
||||
openSingleTab(player, Components.DREAM_MONSTER_STAT_522)
|
||||
var bonuses = npc.properties.bonuses
|
||||
setInterfaceText(player, "Monster name: ${npc.definition.name} (${npc.definition.combatLevel})", Components.DREAM_MONSTER_STAT_522, 0)
|
||||
setInterfaceText(player, """
|
||||
Att:${npc.definition.handlers[NPCConfigParser.ATTACK_LEVEL] ?: 0}
|
||||
Str:${npc.definition.handlers[NPCConfigParser.STRENGTH_LEVEL] ?: 0}
|
||||
Ranged:${npc.definition.handlers[NPCConfigParser.RANGE_LEVEL] ?: 0}
|
||||
Magic:${npc.definition.handlers[NPCConfigParser.MAGIC_LEVEL] ?: 0}""", Components.DREAM_MONSTER_STAT_522, 1)
|
||||
setInterfaceText(player, """
|
||||
Defence:${npc.definition.handlers[NPCConfigParser.DEFENCE_LEVEL] ?: 0}
|
||||
HP:${npc.definition.handlers[NPCConfigParser.LIFEPOINTS] ?: 0}
|
||||
Max hit:${npc.getSwingHandler(false).calculateHit(npc, player, 1.0)}""", Components.DREAM_MONSTER_STAT_522, 2)
|
||||
setInterfaceText(player, "${bonuses[0]},${bonuses[1]},${bonuses[2]},${bonuses[3]},${bonuses[4]}, ${bonuses[5]},${bonuses[6]},${bonuses[7]},${bonuses[8]},${bonuses[9]}", Components.DREAM_MONSTER_STAT_522, 3)
|
||||
setInterfaceText(player, "Monster name : ${npc.definition.name}", Components.DREAM_MONSTER_STAT_522, 0)
|
||||
setInterfaceText(player, "Combat Level : ${npc.definition.combatLevel}", Components.DREAM_MONSTER_STAT_522, 1)
|
||||
setInterfaceText(player, "Hitpoints : ${npc.definition.handlers[NPCConfigParser.LIFEPOINTS] ?: 0}", Components.DREAM_MONSTER_STAT_522, 2)
|
||||
setInterfaceText(player, "Max hit : ${npc.getSwingHandler(false).calculateHit(npc, player, 1.0)}", Components.DREAM_MONSTER_STAT_522, 3)
|
||||
|
||||
val poisonStatus = if(npc.definition.handlers.getOrDefault(NPCConfigParser.POISON_IMMUNE,false) == true){
|
||||
"Immune to poison. "
|
||||
} else ""
|
||||
val poisonStatus2 = if(npc.definition.handlers.getOrDefault(NPCConfigParser.POISONOUS,false) == true){
|
||||
"Poisonous."
|
||||
} else ""
|
||||
setInterfaceText(player, poisonStatus + poisonStatus2, Components.DREAM_MONSTER_STAT_522, 4)
|
||||
"This creature is immune to poison."
|
||||
} else "This creature is not immune to poison."
|
||||
|
||||
setInterfaceText(player, poisonStatus, Components.DREAM_MONSTER_STAT_522, 4)
|
||||
}
|
||||
|
||||
// Level 67
|
||||
|
|
@ -677,12 +667,10 @@ Max hit:${npc.getSwingHandler(false).calculateHit(npc, player, 1.0)}""", Compone
|
|||
sendMessage(player, "You need to use this spell on logs.")
|
||||
return
|
||||
}
|
||||
/*
|
||||
if (amountInInventory(player, Items.COINS_995) < plankType.price || !removeItem(player, Item(Items.COINS_995, plankType.price))) {
|
||||
sendMessage(player, "You need ${plankType.price} coins to convert that log into a plank.")
|
||||
return
|
||||
}
|
||||
*/
|
||||
lock(player, 3)
|
||||
setDelay(player, false)
|
||||
visualizeSpell(player, Animations.LUNAR_SPELLBOOK_PLANK_MAKE_6298, Graphics.LUNAR_SPELLBOOK_PLANK_MAKE_1063, 120, Sounds.LUNAR_MAKE_PLANK_3617)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue