More updates to scripts (still wont build)

This commit is contained in:
hondacrx
2023-10-13 16:11:34 -04:00
parent cda53c8e7f
commit 33091ed942
26 changed files with 4195 additions and 2894 deletions
+25
View File
@@ -0,0 +1,25 @@
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
using Game;
using Game.Entities;
using Game.Scripting;
namespace Scripts.World.Achievements
{
[Script]
class scene_deathwing_simulator : SceneScript
{
const uint SpellDeathwingSimulator = 201184;
public scene_deathwing_simulator() : base("scene_deathwing_simulator") { }
// Called when a player receive trigger from scene
public override void OnSceneTriggerEvent(Player player, uint sceneInstanceID, SceneTemplate sceneTemplate, string triggerName)
{
if (triggerName == "Burn Player")
player.CastSpell(player, SpellDeathwingSimulator, true); // Deathwing Simulator Burn player
}
}
}