Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Getting item link Trinitycore
- Gems not coded
- */
- std::string GetItemLink(Item* item)
- {
- const ItemTemplate* temp = item->GetTemplate();
- std::ostringstream ss;
- ss << "|c" << std::hex << ItemQualityColors[temp->Quality] << "|Hitem:"<< std::dec << item->GetEntry() << ":" << item->GetEnchantmentId(PERM_ENCHANTMENT_SLOT) << ":0:0:0:0:0:0:" << (uint32)item->GetOwner()->getLevel() << ":0|h[" << temp->Name1 << "]|h|r";
- return ss.str();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement