From 55c619bf87eda0edc137936fd1963848604741d5 Mon Sep 17 00:00:00 2001 From: Zerken Date: Wed, 8 Mar 2023 03:28:10 +0000 Subject: [PATCH] Significant Stronghold of Security immersion improvements Added the command ::jingle to play music jingles by id --- Server/data/configs/music_configs.json | 16 +++ Server/data/configs/npc_configs.json | 104 ++++++++++++------ Server/data/configs/npc_spawns.json | 24 ++-- .../stronghold/StrongHoldSecurityPlugin.java | 34 +++++- .../system/command/sets/MusicCommandSet.kt | 17 ++- 5 files changed, 142 insertions(+), 53 deletions(-) diff --git a/Server/data/configs/music_configs.json b/Server/data/configs/music_configs.json index 1fb75f150..8994bce1b 100644 --- a/Server/data/configs/music_configs.json +++ b/Server/data/configs/music_configs.json @@ -1437,6 +1437,10 @@ "id": "532", "borders": "{1984,4416,2047,4479}" }, + { + "id": "537", + "borders": "{1856,5185,1917,5246}" + }, { "id": "542", "borders": "{3072,9280,3135,9343}" @@ -1449,6 +1453,18 @@ "id": "555", "borders": "" }, + { + "id": "558", + "borders": "{1985,5185,2047,5247}" + }, + { + "id": "559", + "borders": "{2116,5247,2172,5308}" + }, + { + "id": "560", + "borders": "{2305,5186,2366,5247}" + }, { "id": "569", "borders": "{3200,9984,3263,10047}" diff --git a/Server/data/configs/npc_configs.json b/Server/data/configs/npc_configs.json index 1a8c1b4de..ad25e06db 100644 --- a/Server/data/configs/npc_configs.json +++ b/Server/data/configs/npc_configs.json @@ -5534,6 +5534,7 @@ "examine": "Dead but not gone.", "melee_animation": "390", "range_animation": "0", + "combat_audio": "511,439,438", "respawn_delay": "50", "defence_animation": "0", "weakness": "9", @@ -5552,6 +5553,7 @@ "examine": "Dead but not gone.", "melee_animation": "390", "range_animation": "0", + "combat_audio": "511,439,438", "respawn_delay": "50", "defence_animation": "0", "weakness": "9", @@ -5570,6 +5572,7 @@ "examine": "Dead but not gone.", "melee_animation": "390", "range_animation": "0", + "combat_audio": "511,439,438", "respawn_delay": "50", "defence_animation": "0", "weakness": "9", @@ -5589,6 +5592,7 @@ "slayer_task": "73", "melee_animation": "390", "range_animation": "0", + "combat_audio": "511,439,438", "respawn_delay": "50", "defence_animation": "0", "weakness": "9", @@ -5609,6 +5613,7 @@ "slayer_task": "73", "melee_animation": "390", "range_animation": "0", + "combat_audio": "511,439,438", "magic_level": "1", "respawn_delay": "50", "defence_animation": "0", @@ -36901,10 +36906,11 @@ "attack_level": "1" }, { - "examine": "A bony ghost.", + "examine": "A boney ghost.", "melee_animation": "422", "range_animation": "422", - "attack_speed": "6", + "combat_audio": "924,926,925", + "attack_speed": "4", "defence_animation": "404", "slayer_exp": "60", "magic_animation": "422", @@ -36921,10 +36927,11 @@ "attack_level": "50" }, { - "examine": "A bony ghost.", + "examine": "A boney ghost.", "melee_animation": "422", "range_animation": "422", - "attack_speed": "6", + "combat_audio": "924,926,925", + "attack_speed": "4", "defence_animation": "404", "slayer_exp": "60", "magic_animation": "422", @@ -36941,10 +36948,11 @@ "attack_level": "50" }, { - "examine": "A bony ghost.", + "examine": "A boney ghost.", "melee_animation": "422", "range_animation": "422", - "attack_speed": "6", + "combat_audio": "924,926,925", + "attack_speed": "4", "defence_animation": "404", "slayer_exp": "60", "magic_animation": "422", @@ -37006,6 +37014,7 @@ "slayer_task": "34", "melee_animation": "1184", "range_animation": "1184", + "combat_audio": "571,573,572", "attack_speed": "3", "respawn_delay": "30", "defence_animation": "1186", @@ -37028,6 +37037,7 @@ "examine": "I don't think insect repellent will work.", "melee_animation": "1184", "range_animation": "1184", + "combat_audio": "571,573,572", "attack_speed": "3", "respawn_delay": "30", "defence_animation": "1186", @@ -37049,6 +37059,7 @@ "examine": "I don't think insect repellent will work.", "melee_animation": "1184", "range_animation": "1184", + "combat_audio": "571,573,572", "attack_speed": "3", "respawn_delay": "30", "defence_animation": "1186", @@ -37067,10 +37078,10 @@ "attack_level": "100" }, { - "examine": "The walking dead.", + "examine": "Dead man walking.", "melee_animation": "5568", "range_animation": "5568", - "combat_audio": "931,923,922", + "combat_audio": "918,923,922", "attack_speed": "5", "respawn_delay": "30", "defence_animation": "5567", @@ -37083,15 +37094,16 @@ "lifepoints": "23", "strength_level": "1", "id": "4392", + "aggressive": "true", "bonuses": "15,25,25,25,25,25,25,15,15,25,25,25,25,25,25", "range_level": "1", "attack_level": "24" }, { - "examine": "Dead (wo)man walking.", + "examine": "Dead man walking.", "melee_animation": "5578", "range_animation": "5578", - "combat_audio": "931,923,922", + "combat_audio": "918,923,922", "attack_speed": "5", "respawn_delay": "30", "defence_animation": "5579", @@ -37110,10 +37122,10 @@ "attack_level": "35" }, { - "examine": "Could his name be \"Lurch\"?", + "examine": "Dead man walking.", "melee_animation": "5578", "range_animation": "5578", - "combat_audio": "931,923,922", + "combat_audio": "918,923,922", "attack_speed": "5", "respawn_delay": "30", "defence_animation": "5579", @@ -37126,6 +37138,7 @@ "lifepoints": "40", "strength_level": "1", "id": "4394", + "aggressive": "true", "bonuses": "35,45,45,45,45,45,45,35,35,45,45,45,45,45,45", "range_level": "1", "attack_level": "47" @@ -37134,8 +37147,11 @@ "examine": "Overgrown vermin.", "slayer_task": "67", "combat_audio": "703,705,704", + "melee_animation": "4933", "attack_speed": "5", + "defence_animation": "4934", "weakness": "9", + "death_animation": "4935", "name": "Giant rat", "defence_level": "23", "safespot": null, @@ -37151,7 +37167,7 @@ "examine": "A popular dwarven delicacy.", "melee_animation": "2705", "range_animation": "2705", - "combat_audio": "3102,3104,3103", + "combat_audio": "710,713,711", "attack_speed": "5", "defence_animation": "2706", "magic_animation": "2705", @@ -37168,6 +37184,7 @@ { "examine": "Big Cow-like... But cows don't have serpent tails!", "melee_animation": "4271", + "combat_audio": "511,330,329", "attack_speed": "5", "magic_level": "38", "spell_id": "7", @@ -37191,6 +37208,7 @@ { "examine": "Big Cow-like... But cows don't have serpent tails!", "melee_animation": "4271", + "combat_audio": "511,330,329", "attack_speed": "5", "magic_level": "38", "spell_id": "7", @@ -37214,6 +37232,7 @@ { "examine": "Big Cow-like... But cows don't have serpent tails!", "melee_animation": "4271", + "combat_audio": "511,330,329", "attack_speed": "5", "magic_level": "45", "spell_id": "7", @@ -37255,6 +37274,7 @@ }, { "melee_animation": "6249", + "combat_audio": "3604,3609,3608", "respawn_delay": "60", "defence_animation": "6250", "death_animation": "6251", @@ -37264,7 +37284,7 @@ "lifepoints": "22", "strength_level": "1", "id": "4401", - "aggressive": "true", + "aggressive": "false", "range_level": "1", "attack_level": "1" }, @@ -37387,7 +37407,7 @@ "examine": "An ugly green creature.", "melee_animation": "6185", "range_animation": "6185", - "combat_audio": "469,472,471", + "combat_audio": "3520,472,471", "attack_speed": "5", "defence_animation": "6183", "slayer_exp": "5", @@ -37408,7 +37428,7 @@ "examine": "An ugly green creature.", "melee_animation": "6185", "range_animation": "6185", - "combat_audio": "469,472,471", + "combat_audio": "3520,472,471", "attack_speed": "5", "defence_animation": "6183", "slayer_exp": "16", @@ -37429,7 +37449,7 @@ "examine": "An ugly green creature.", "melee_animation": "6185", "range_animation": "6185", - "combat_audio": "469,472,471", + "combat_audio": "3520,472,471", "attack_speed": "5", "defence_animation": "6183", "slayer_exp": "7", @@ -37450,7 +37470,7 @@ "examine": "An ugly green creature.", "melee_animation": "6185", "range_animation": "6185", - "combat_audio": "469,472,471", + "combat_audio": "3520,472,471", "attack_speed": "5", "defence_animation": "6183", "magic_animation": "6185", @@ -37470,7 +37490,7 @@ "examine": "An ugly green creature.", "melee_animation": "6185", "range_animation": "6185", - "combat_audio": "469,472,471", + "combat_audio": "3520,472,471", "attack_speed": "5", "defence_animation": "6183", "magic_animation": "6185", @@ -37490,7 +37510,7 @@ "examine": "An ugly green creature.", "melee_animation": "6185", "range_animation": "6185", - "combat_audio": "469,472,471", + "combat_audio": "3520,472,471", "attack_speed": "5", "defence_animation": "6183", "magic_animation": "6185", @@ -37553,7 +37573,7 @@ "slayer_task": "67", "melee_animation": "2705", "range_animation": "2705", - "combat_audio": "3102,3104,3103", + "combat_audio": "710,713,711", "attack_speed": "4", "magic_level": "1", "respawn_delay": "3", @@ -42781,7 +42801,10 @@ { "examine": "Overgrown vermin.", "combat_audio": "703,705,704", + "melee_animation": "4933", "attack_speed": "5", + "defence_animation": "4934", + "death_animation": "4935", "name": "Giant rat", "defence_level": "23", "safespot": null, @@ -42797,8 +42820,11 @@ "examine": "Overgrown vermin.", "slayer_task": "67", "combat_audio": "703,705,704", + "melee_animation": "4933", "attack_speed": "5", + "defence_animation": "4934", "weakness": "9", + "death_animation": "4935", "name": "Giant rat", "defence_level": "23", "safespot": null, @@ -45514,6 +45540,7 @@ "attack_level": "1" }, { + "examine": "", "melee_animation": "5568", "combat_audio": "931,923,922", "respawn_delay": "60", @@ -46133,10 +46160,10 @@ "attack_level": "80" }, { - "examine": "Examine not added", + "examine": "Dead man walking.", "melee_animation": "5568", "range_animation": "5568", - "combat_audio": "931,923,922", + "combat_audio": "918,923,922", "attack_speed": "5", "respawn_delay": "30", "defence_animation": "5567", @@ -46149,15 +46176,16 @@ "lifepoints": "23", "strength_level": "1", "id": "5375", + "aggressive": "true", "bonuses": "15,25,25,25,25,25,25,15,15,25,25,25,25,25,25", "range_level": "1", "attack_level": "25" }, { - "examine": "Examine not added", + "examine": "Dead man walking.", "melee_animation": "5568", "range_animation": "5568", - "combat_audio": "931,923,922", + "combat_audio": "918,923,922", "attack_speed": "5", "respawn_delay": "30", "defence_animation": "5567", @@ -46170,15 +46198,16 @@ "lifepoints": "23", "strength_level": "1", "id": "5376", + "aggressive": "true", "bonuses": "15,25,25,25,25,25,25,15,15,25,25,25,25,25,25", "range_level": "1", "attack_level": "25" }, { - "examine": "Examine not added", + "examine": "Dead man walking.", "melee_animation": "5578", "range_animation": "5578", - "combat_audio": "931,923,922", + "combat_audio": "918,923,922", "attack_speed": "5", "respawn_delay": "30", "defence_animation": "5579", @@ -46191,15 +46220,16 @@ "lifepoints": "30", "strength_level": "1", "id": "5377", + "aggressive": "true", "bonuses": "15,25,28,28,25,28,28,15,15,28,25,25,25,25,25", "range_level": "1", "attack_level": "38" }, { - "examine": "Examine not added", + "examine": "Dead man walking.", "melee_animation": "5578", "range_animation": "5578", - "combat_audio": "931,923,922", + "combat_audio": "918,923,922", "attack_speed": "5", "respawn_delay": "30", "defence_animation": "5579", @@ -46212,15 +46242,16 @@ "lifepoints": "30", "strength_level": "1", "id": "5378", + "aggressive": "true", "bonuses": "15,25,28,28,25,28,28,15,15,28,25,25,25,25,25", "range_level": "1", "attack_level": "38" }, { - "examine": "Examine not added", + "examine": "The walking dead.", "melee_animation": "5578", "range_animation": "5578", - "combat_audio": "931,923,922", + "combat_audio": "918,923,922", "attack_speed": "5", "respawn_delay": "30", "defence_animation": "5579", @@ -46233,15 +46264,16 @@ "lifepoints": "40", "strength_level": "1", "id": "5379", + "aggressive": "true", "bonuses": "35,45,45,45,45,45,45,35,35,45,45,45,45,45,45", "range_level": "1", "attack_level": "47" }, { - "examine": "Examine not added", + "examine": "The walking dead.", "melee_animation": "5578", "range_animation": "5578", - "combat_audio": "931,923,922", + "combat_audio": "918,923,922", "attack_speed": "5", "respawn_delay": "30", "defence_animation": "5579", @@ -46254,6 +46286,7 @@ "lifepoints": "40", "strength_level": "1", "id": "5380", + "aggressive": "true", "bonuses": "35,45,45,45,45,45,45,35,35,45,45,45,45,45,45", "range_level": "1", "attack_level": "47" @@ -69359,6 +69392,7 @@ "safespot": null, "lifepoints": "10", "combat_audio": "774,775,777", + "melee_animation": "5485", "strength_level": "1", "id": "3705", "range_level": "1", @@ -69366,6 +69400,7 @@ }, { "combat_audio": "774,775,777", + "melee_animation": "5485", "attack_speed": "5", "respawn_delay": "60", "defence_animation": "5513", @@ -69404,6 +69439,7 @@ }, { "combat_audio": "774,775,777", + "melee_animation": "5485", "attack_speed": "5", "respawn_delay": "60", "defence_animation": "5513", @@ -69669,6 +69705,7 @@ { "examine": "Could do with gaining a few pounds.", "combat_audio": "774,775,777", + "melee_animation": "5485", "attack_speed": "5", "respawn_delay": "60", "defence_animation": "5513", @@ -69686,6 +69723,7 @@ { "examine": "Could do with gaining a few pounds.", "combat_audio": "774,775,777", + "melee_animation": "5485", "attack_speed": "5", "respawn_delay": "60", "defence_animation": "5513", diff --git a/Server/data/configs/npc_spawns.json b/Server/data/configs/npc_spawns.json index bfcf214ef..f205023b3 100644 --- a/Server/data/configs/npc_spawns.json +++ b/Server/data/configs/npc_spawns.json @@ -6393,11 +6393,11 @@ }, { "npc_id": "4381", - "loc_data": "{2361,5241,0,0,1}-{2358,5240,0,0,1}-{2362,5239,0,0,1}-{2364,5240,0,0,1}-{2364,5242,0,0,1}" + "loc_data": "{2361,5241,0,1,1}-{2358,5240,0,1,1}-{2362,5239,0,1,1}-{2364,5240,0,1,1}-{2364,5242,0,1,1}-{2357,5242,0,1,1}-{2356,5240,0,1,1}-{2356,5242,0,1,1}-{2360,5243,0,1,1}" }, { "npc_id": "4382", - "loc_data": "{3162,3716,0,0,0}-{3175,3717,0,0,0}-{3161,3727,0,0,0}-{2304,5160,0,0,2}-{2324,5210,0,0,2}-{2322,5201,0,0,7}-{2324,5210,0,0,2}-{2322,5201,0,0,7}-{2327,5205,0,0,7}-{2328,5200,0,0,7}-{2326,5198,0,0,7}-{2331,5198,0,0,4}-{2333,5201,0,0,4}-{2333,5199,0,0,2}" + "loc_data": "{3162,3716,0,1,0}-{3175,3717,0,1,0}-{3161,3727,0,1,0}-{2304,5160,0,0,2}-{2324,5210,0,1,2}-{2322,5201,0,1,7}-{2324,5210,0,1,2}-{2322,5201,0,1,7}-{2327,5205,0,1,7}-{2328,5200,0,1,7}-{2326,5198,0,1,7}-{2331,5198,0,1,4}-{2333,5201,0,1,4}-{2333,5199,0,1,2}" }, { "npc_id": "4383", @@ -6421,19 +6421,19 @@ }, { "npc_id": "4388", - "loc_data": "{2305,5231,0,0,2}-{2312,5225,0,0,2}-{2314,5240,0,0,2}-{2310,5241,0,0,2}-{2308,5246,0,0,2}-{2309,5245,0,0,2}-{2315,5237,0,0,2}" + "loc_data": "{2305,5231,0,1,2}-{2312,5225,0,1,2}-{2314,5240,0,1,2}-{2310,5241,0,1,2}-{2308,5246,0,1,2}-{2309,5245,0,1,2}-{2315,5237,0,1,2}" }, { "npc_id": "4389", - "loc_data": "{2013,5238,0,1,0}" + "loc_data": "{2013,5238,0,1,0}-{2043,5233,0,1,0}-{2041,5231,0,1,0}--{2029,5233,0,1,0}-{2020,5238,0,1,0}" }, { "npc_id": "4390", - "loc_data": "{1984,5160,0,1,2}-{2040,5190,0,1,3}-{2044,5187,0,1,2}-{2042,5191,0,1,1}-{2045,5190,0,1,7}-{2041,5187,0,1,2}" + "loc_data": "{1984,5160,0,1,2}-{2040,5190,0,1,3}-{2044,5187,0,1,2}-{2042,5191,0,1,1}-{2045,5190,0,1,7}-{2041,5187,0,1,2}-{2045,5186,0,1,2}-{2044,5188,0,1,2}-{2042,5192,0,1,2}" }, { "npc_id": "4391", - "loc_data": "{1952,5192,0,1,2}-{1993,5240,0,1,4}-{1991,5235,0,1,4}-{1990,5240,0,1,3}-{1989,5237,0,1,6}-{2009,5202,0,1,1}-{2005,5199,0,1,3}" + "loc_data": "{1952,5192,0,1,2}-{1993,5240,0,1,4}-{1991,5235,0,1,4}-{1990,5240,0,1,3}-{1989,5237,0,1,6}-{2009,5202,0,1,1}-{2005,5199,0,1,3}-{1994,5236,0,1,6}-{1991,5242,0,1,6}-{2007,5201,0,1,6}-{2009,5201,0,1,6}-{2004,5197,0,1,6}-{2004,5207,0,1,6}-{2006,5205,0,1,6}" }, { "npc_id": "4392", @@ -6441,7 +6441,7 @@ }, { "npc_id": "4393", - "loc_data": "{2045,5222,0,1,4}-{1944,5152,0,1,2}-{1993,5190,0,1,6}-{1993,5190,0,1,4}-{2044,5216,0,1,4}-{2008,5203,0,1,1}-{2006,5208,0,1,1}-{2037,5214,0,1,3}-{2037,5210,0,1,1}" + "loc_data": "{2045,5222,0,1,4}-{1944,5152,0,1,2}-{1993,5190,0,1,6}-{1993,5190,0,1,4}-{2044,5216,0,1,4}-{2008,5203,0,1,1}-{2006,5208,0,1,1}-{2037,5214,0,1,3}-{2037,5210,0,1,1}-{2043,5217,0,1,1}-{2040,5214,0,1,1}-{2042,5217,0,1,1}-{2038,5214,0,1,1}-{2041,5218,0,1,1}" }, { "npc_id": "4394", @@ -6449,7 +6449,7 @@ }, { "npc_id": "4395", - "loc_data": "{2016,5237,0,1,7}-{1988,5190,0,1,2}-{2039,5216,0,1,6}" + "loc_data": "{2016,5237,0,1,7}-{1988,5190,0,1,2}-{2039,5216,0,1,6}-{2017,5238,0,1,6}" }, { "npc_id": "4396", @@ -6469,7 +6469,7 @@ }, { "npc_id": "4400", - "loc_data": "{3018,10313,0,1,4}-{3016,10315,0,1,4}-{3018,10322,0,1,4}-{3024,10326,0,1,3}-{3030,10332,0,1,4}-{3029,10337,0,1,6}-{3034,10342,0,1,3}-{2072,5200,0,1,7}-{2130,5267,0,1,7}-{2140,5252,0,1,5}-{2141,5252,0,1,1}-{2142,5252,0,1,0}-{2148,5255,0,1,3}-{2125,5270,0,1,1}-{2148,5257,0,1,1}-{2117,5274,0,1,4}-{2146,5307,0,1,2}-{2145,5305,0,1,5}-{2152,5307,0,1,4}-{2148,5252,0,1,0}-{2142,5262,0,1,3}-{2124,5275,0,1,4}-{2121,5276,0,1,3}-{2148,5304,0,1,0}-{2146,5305,0,1,5}-{2148,5304,0,1,1}-{2151,5304,0,1,6}-{2145,5306,0,1,3}-{2134,5272,0,1,6}" + "loc_data": "{3018,10313,0,1,4}-{3016,10315,0,1,4}-{3018,10322,0,1,4}-{3024,10326,0,1,3}-{3030,10332,0,1,4}-{3029,10337,0,1,6}-{3034,10342,0,1,3}-{2072,5200,0,1,7}-{2130,5267,0,1,7}-{2140,5252,0,1,5}-{2141,5252,0,1,1}-{2142,5252,0,1,0}-{2148,5255,0,1,3}-{2125,5270,0,1,1}-{2148,5257,0,1,1}-{2117,5274,0,1,4}-{2146,5307,0,1,2}-{2145,5305,0,1,5}-{2152,5307,0,1,4}-{2148,5252,0,1,0}-{2142,5262,0,1,3}-{2124,5275,0,1,4}-{2121,5276,0,1,3}-{2148,5304,0,1,0}-{2146,5305,0,1,5}-{2148,5304,0,1,1}-{2151,5304,0,1,6}-{2145,5306,0,1,3}-{2134,5272,0,1,6}-{2151,5307,0,1,6}-{2151,5308,0,1,6}-{2149,5307,0,1,6}-{2150,5308,0,1,6}-{2150,5305,0,1,6}-{2153,5307,0,1,6}-{2152,5305,0,1,6}-{2128,5272,0,1,6}-{2129,5272,0,1,6}-{2124,5271,0,1,6}-{2124,5272,0,1,6}-{2122,5272,0,1,6}-{2121,5275,0,1,6}" }, { "npc_id": "4401", @@ -7073,7 +7073,7 @@ }, { "npc_id": "4944", - "loc_data": "{2042,5213,0,1,5}-{2020,5236,0,1,2}-{1944,5152,0,1,2}-{2041,5216,0,1,0}" + "loc_data": "{2042,5213,0,1,5}-{2020,5236,0,1,2}-{1944,5152,0,1,2}-{1993,5188,0,1,2}-{1994,5191,0,1,2}" }, { "npc_id": "4945", @@ -7633,7 +7633,7 @@ }, { "npc_id": "5377", - "loc_data": "{2004,5189,0,1,3}-{2002,5207,0,1,3}-{2009,5199,0,1,5}-{2004,5203,0,1,6}" + "loc_data": "{2004,5189,0,1,3}-{2002,5207,0,1,3}-{2009,5199,0,1,5}-{2004,5203,0,1,6}-{1989,5192,0,1,6}-{1988,5187,0,1,6}" }, { "npc_id": "5378", @@ -7645,7 +7645,7 @@ }, { "npc_id": "5380", - "loc_data": "{1952,5192,0,1,2}-{2028,5192,0,1,0}" + "loc_data": "{1952,5192,0,1,2}-{2028,5192,0,1,0}-{2031,5186,0,1,0}-{2027,5194,0,1,0}--{2021,5188,0,1,0}" }, { "npc_id": "5383", diff --git a/Server/src/main/content/region/misthalin/barbvillage/stronghold/StrongHoldSecurityPlugin.java b/Server/src/main/content/region/misthalin/barbvillage/stronghold/StrongHoldSecurityPlugin.java index 86127ad17..d70e0e150 100644 --- a/Server/src/main/content/region/misthalin/barbvillage/stronghold/StrongHoldSecurityPlugin.java +++ b/Server/src/main/content/region/misthalin/barbvillage/stronghold/StrongHoldSecurityPlugin.java @@ -13,6 +13,7 @@ import core.game.interaction.OptionHandler; import core.game.node.Node; import core.game.node.entity.Entity; import core.game.node.entity.player.Player; +import core.game.node.entity.player.link.music.MusicPlayer; import core.game.node.item.Item; import core.game.node.scenery.Scenery; import core.game.system.task.Pulse; @@ -22,10 +23,14 @@ import core.game.world.map.zone.MapZone; import core.game.world.map.zone.ZoneBorders; import core.game.world.map.zone.ZoneBuilder; import core.game.world.update.flag.context.Animation; +import core.net.packet.PacketRepository; +import core.net.packet.context.MusicContext; +import core.net.packet.out.MusicPacket; import core.plugin.Plugin; import core.plugin.ClassScanner; import core.plugin.Initializable; import core.tools.RandomFunction; +import org.rs09.consts.Sounds; /** * Handles the strong hold of security. @@ -122,22 +127,38 @@ public final class StrongHoldSecurityPlugin extends MapZone implements Plugin + if(args.size < 2){ + reject(player,"Usage: ::playjingle jingleID") + } + val id = args[1].toIntOrNull() + if(id == null){ + reject(player,"Please use a valid integer for the jingle id.") + } + PacketRepository.send(MusicPacket::class.java, MusicContext(player, id!!, true)) + notify(player,"Now playing jingle $id") + } /** * Command that lets you play a song via the ID instead of the song name