This is the current broken code.
Code: Select all
BOOL GetItemLink(PCONTENTS Item, PCHAR Buffer, BOOL Clickable)
{
CHAR szCmd[MAX_STRING] = { 0 };
strcpy_s(szCmd, Buffer);
char hash[MAX_STRING] = { 0 };
bool retVal = FALSE;
((EQ_Item*)Item)->CreateItemTagString(hash, sizeof(hash));
if (hash[0]) {
if (Clickable)
sprintf_s(szCmd, "%c0%s%s%c", 0x12, hash, GetItemFromContents(Item)->Name, 0x12);
else
sprintf_s(szCmd, "0%s%s", hash, GetItemFromContents(Item)->Name);
retVal = TRUE;
}
DebugSpew("GetItemLink() returns '%s'", &szCmd[0]);
return retVal;

donations for this month's patches.