New AddDefinedText

11/30/2014 14:07 raventh1984#1
Hi elitepvpers,

I am working on Sedrika's Webshop and i am in the process of changing the CDPSrvr::OnBuyingInfo

the pUser->AddDefinedText is atm

pUser->AddDefinedText( TID_EVE_REAPITEM, "\"%s\"", itemElem.GetName() );

So i changed it to

pUser->AddDefinedText( TID_EVE_GIFT, "\"%s\"","\"%s\"", itemElem.GetName(), pUser->GetName() );

TID_EVE_GIFT is added to definetext.h textclient.inc and textclient.txt.txt

The line in textclient.txt.txt = Your recieved %s from %s!

Now when i use the gift option to send the item to an other player. That player is only seeing (Your recieved from %s)

What do i need to change so that both the item and the character name is beeing displayed.

With kind regards.


EDIT:
Solved i needed to change it to "\"%s\" \"%s\""
11/30/2014 15:38 Terrat#2
Bit of source would help
11/30/2014 15:57 alfredico#3
pUser->AddDefinedText( TID_EVE_GIFT, itemElem.GetName(), pUser->GetName() );

The variables to edit are already on text.