Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- using std::string;
- using std::pair;
- using std::make_pair;
- using std::map;
- enum Type
- {
- CONTESTED = 0,
- ALLIANCE = 1,
- HORDE = 2,
- };
- struct SoulwellInfo
- {
- uint32 LastHeld;
- uint32 SoulwellCounter;
- };
- struct StoredSouls
- {
- uint32 Resilient;
- uint32 Resourceful;
- uint32 Zealous;
- };
- static map<uint32, SoulwellInfo> Soulwells;
- static map<pair<uint32, uint32>, StoredSouls> SoulStorage;
- class ExperienceSystem : public PlayerScript
- {
- public:
- ExperienceSystem() : PlayerScript("ExperienceSystem") {}
- void OnPvPKill(Player *pKiller, Player *pVictim)
- {
- uint32 faction = pKiller->getFaction();
- if (pKiller->GetAreaId() == 1)
- {
- }
- }
- };
- class Soulwell1 : public GameObjectScript
- {
- public:
- Soulwell1() : GameObjectScript("Soulwell_1") { }
- bool OnGossipHello(Player* player, GameObject* go)
- {
- uint32 faction = player->getFaction();
- if (!Soulwells[faction].SoulwellCounter >= 3)
- {
- Soulwells[faction].SoulwellCounter++;
- }
- }
- };
- class Soulwell2 : public GameObjectScript
- {
- public:
- Soulwell2() : GameObjectScript("Soulwell_2") { }
- bool OnGossipHello(Player* player, GameObject* go)
- {
- uint32 faction = player->getFaction();
- }
- };
- class Soulwell3 : public GameObjectScript
- {
- public:
- Soulwell3() : GameObjectScript("Soulwell_3") { }
- bool OnGossipHello(Player* player, GameObject* go)
- {
- uint32 faction = player->getFaction();
- }
- };
- void AddSC_System()
- {
- new ExperienceSystem;
- new Soulwell1;
- new Soulwell2;
- new Soulwell3;
- }
Advertisement
Add Comment
Please, Sign In to add comment