Core/Scripts: Added and fixed some scripts
This commit is contained in:
@@ -19,10 +19,11 @@ using Framework.Constants;
|
||||
using Game.Entities;
|
||||
using Game.Maps;
|
||||
using Game.Network.Packets;
|
||||
using Game.Scripting;
|
||||
|
||||
namespace Game.PvP
|
||||
{
|
||||
public class HellfirePeninsulaPvP : OutdoorPvP
|
||||
class HellfirePeninsulaPvP : OutdoorPvP
|
||||
{
|
||||
public HellfirePeninsulaPvP()
|
||||
{
|
||||
@@ -309,6 +310,17 @@ namespace Game.PvP
|
||||
uint m_TowerType;
|
||||
}
|
||||
|
||||
[Script]
|
||||
class OutdoorPvP_hellfire_peninsula : OutdoorPvPScript
|
||||
{
|
||||
public OutdoorPvP_hellfire_peninsula() : base("outdoorpvp_hp") { }
|
||||
|
||||
public override OutdoorPvP GetOutdoorPvP()
|
||||
{
|
||||
return new HellfirePeninsulaPvP();
|
||||
}
|
||||
}
|
||||
|
||||
struct HPConst
|
||||
{
|
||||
public static uint[] LangCapture_A = { DefenseMessages.BrokenHillTakenAlliance, DefenseMessages.OverlookTakenAlliance, DefenseMessages.StadiumTakenAlliance };
|
||||
|
||||
@@ -64,6 +64,26 @@ namespace Game.Scripting
|
||||
return null;
|
||||
}
|
||||
|
||||
public void ClearGossipMenuFor(Player player) { player.PlayerTalkClass.ClearMenus(); }
|
||||
// Using provided text, not from DB
|
||||
public void AddGossipItemFor(Player player, GossipOptionIcon icon, string text, uint sender, uint action)
|
||||
{
|
||||
player.PlayerTalkClass.GetGossipMenu().AddMenuItem(-1, icon, text, sender, action, "", 0);
|
||||
}
|
||||
// Using provided texts, not from DB
|
||||
public void AddGossipItemFor(Player player, GossipOptionIcon icon, string text, uint sender, uint action, string popupText, uint popupMoney, bool coded)
|
||||
{
|
||||
player.PlayerTalkClass.GetGossipMenu().AddMenuItem(-1, icon, text, sender, action, popupText, popupMoney, coded);
|
||||
}
|
||||
// Uses gossip item info from DB
|
||||
public void AddGossipItemFor(Player player, uint gossipMenuID, uint gossipMenuItemID, uint sender, uint action)
|
||||
{
|
||||
player.PlayerTalkClass.GetGossipMenu().AddMenuItem(gossipMenuID, gossipMenuItemID, sender, action);
|
||||
}
|
||||
public void SendGossipMenuFor(Player player, uint npcTextID, ObjectGuid guid) { player.PlayerTalkClass.SendGossipMenu(npcTextID, guid); }
|
||||
public void SendGossipMenuFor(Player player, uint npcTextID, Creature creature) { if (creature) SendGossipMenuFor(player, npcTextID, creature.GetGUID()); }
|
||||
public void CloseGossipMenuFor(Player player) { player.PlayerTalkClass.SendCloseGossip(); }
|
||||
|
||||
string _name;
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -298,16 +298,5 @@ namespace Scripts.Outlands
|
||||
const uint SPELL_SUMMON_POO = 37688;
|
||||
const uint NPC_DERANGED_HELBOAR = 16863;
|
||||
}
|
||||
|
||||
[Script]
|
||||
class HellfirePeninsulaPvPScript : OutdoorPvPScript
|
||||
{
|
||||
public HellfirePeninsulaPvPScript() : base("outdoorpvp_hp") { }
|
||||
|
||||
public override OutdoorPvP GetOutdoorPvP()
|
||||
{
|
||||
return new HellfirePeninsulaPvP();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user