DarkflameServer/dScripts/NPCAddRemoveItem.h

21 lines
690 B
C
Raw Permalink Normal View History

#pragma once
#include "CppScripts.h"
struct ItemSetting {
2022-07-28 13:39:57 +00:00
std::vector<LOT> items; // The items to add/remove
bool add; // Add items on mission accept
bool remove; // Remove items on mission complete
};
/**
* Scripts that allows for the addition and removal of sets of items by an NPC
*/
class NPCAddRemoveItem : virtual public CppScripts::Script {
protected:
void OnMissionDialogueOK(Entity* self, Entity* target, int missionID, eMissionState missionState) override;
2022-07-28 13:39:57 +00:00
virtual std::map<uint32_t, std::vector<ItemSetting>> GetSettings();
private:
2022-07-28 13:39:57 +00:00
void OnStartup(Entity* self) override;
std::map<uint32_t, std::vector<ItemSetting>> m_MissionItemSettings;
};