Advertisement
Rochet2

GetItemLink

Nov 5th, 2012
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. /*
  2. Getting item link Trinitycore
  3.  
  4. Gems not coded
  5. */
  6.  
  7. std::string GetItemLink(Item* item)
  8. {
  9.     const ItemTemplate* temp = item->GetTemplate();
  10.     std::ostringstream ss;
  11.     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";
  12.     return ss.str();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement