mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Add an easy way to pull item saylinks
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "base_data.h"
|
||||
#include "fixed_memory_hash_set.h"
|
||||
#include "fixed_memory_variable_hash_set.h"
|
||||
#include "say_link.h"
|
||||
|
||||
#include <list>
|
||||
#include <map>
|
||||
@@ -189,6 +190,14 @@ public:
|
||||
void LoadBaseData(void *data, int max_level);
|
||||
const BaseDataStruct *GetBaseData(int lvl, int cl);
|
||||
|
||||
std::string CreateItemLink(uint32 item_id) {
|
||||
EQ::SayLinkEngine linker;
|
||||
linker.SetLinkType(EQ::saylink::SayLinkItemData);
|
||||
const EQ::ItemData *item = GetItem(item_id);
|
||||
linker.SetItemData(item);
|
||||
return linker.GenerateLink();
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
std::unique_ptr<EQ::MemoryMappedFile> skill_caps_mmf;
|
||||
|
||||
Reference in New Issue
Block a user