osrs-tools
Version:
A comprehensive TypeScript library for Old School RuneScape (OSRS) data and utilities, including quest data, skill requirements, and game item information
99 lines (98 loc) • 3.19 kB
JavaScript
import { Npc } from "../Npc";
import { NpcDrop } from "../NpcDrop";
/**
* King Black Dragon (KBD)
* Wiki reference: https://oldschool.runescape.wiki/w/King_Black_Dragon
*
* The original mega-boss of OSRS, featuring melee and magic attacks.
* Located in the Wilderness (resource area).
*/
export const kingBlackDragon = new Npc({
// Basic Identification
id: 50,
name: "King Black Dragon",
examine: "The mightiest of dragons.",
members: true,
officialWikiUrl: "https://oldschool.runescape.wiki/w/King_Black_Dragon",
// Combat Level & Slayer
combatLevel: 276,
// Combat Stats from wiki
// https://oldschool.runescape.wiki/w/King_Black_Dragon
stats: {
hitpoints: 260,
attack: 95,
strength: 97,
defence: 100,
magic: 45,
ranged: 95,
},
// Aggressive Stats (Offensive Bonuses)
// https://oldschool.runescape.wiki/w/King_Black_Dragon#Combat_info
aggressiveStats: {
attackBonus: 0,
strengthBonus: 0,
magicStrengthBonus: 20,
rangedStrengthBonus: 0,
},
// Defensive Stats
// https://oldschool.runescape.wiki/w/King_Black_Dragon#Defence
defences: {
melee: {
stab: -20,
slash: -10,
crush: 0,
},
magic: {
bonus: 30,
elementalWeakness: undefined,
},
ranged: {
light: -20,
standard: -20,
heavy: -20,
},
},
// Combat Mechanics
// https://oldschool.runescape.wiki/w/King_Black_Dragon#Combat
combat: {
maxHit: 50, // Approximate max hit with melee attacks
attackSpeed: 4, // 4 ticks = 2.4 seconds per attack
respawnTime: 60, // Respawns after ~60 seconds
isAggressive: true,
isAttackable: true,
attackStyles: ["Melee", "Magic"], // Uses both melee and magic attacks
isPoisonous: false,
hasWeaponVenom: false,
weaknesses: ["Water spells", "Ranged"],
},
// Immunities
// https://oldschool.runescape.wiki/w/King_Black_Dragon#Immunities
immunities: {
canBePoison: true,
isPoisonous: false,
canBeVenom: true,
canBeCannoned: true,
canBeThralled: true,
},
// Location & Drops
locations: ["Wilderness (resource area)"],
drops: [
// 100% drops
new NpcDrop("Dragon bones", 1, "Always"),
// Common drops
new NpcDrop("Coins", [1000, 3000], "Always"),
new NpcDrop("Mithril bar", [3, 5], "1/64"),
new NpcDrop("Runite bar", 1, "1/128"),
// Unique drops
new NpcDrop("Dragon med helm", 1, "1/64"),
new NpcDrop("Dragon light crossbow", 1, "1/128"),
new NpcDrop("D-hide body", 1, "1/200"),
],
trivia: [
"King Black Dragon was the first ever boss in OSRS when the game launched",
"KBD can freeze players with ice attacks if they lack proper protection",
"Located in the Wilderness, so players are at risk of being PKed while fighting",
"Requires 40+ Defence and 40+ Magic to effectively defeat solo",
],
});
export default kingBlackDragon;