EOSERV Forum > EO Server Building > How do I add player name to quest?
Page: << 1 >>
How do I add player name to quest?
Author Message
Post #204193 How do I add player name to quest?

I want it so it says "Welcome to the server, "Player Name". " in a quest on the server. How do I make this to work using the EO+ system?

5 years, 44 weeks ago
Post #204194 Re: How do I add player name to quest?

Make a character function that replaces certain key words with the characters value when a string is passed through it.

Then just make it find and replace:

std::replace(msg.begin(), msg.end(), '[name]',  util:ucfirst(this->real_name));


then in quest.cpp before the text is added to the dialog packet run the code through the character function so it replaces dynamic values



5 years, 43 weeks ago
Page: << 1 >>

EOSERV Forum > EO Server Building > How do I add player name to quest?