I'm trying to sent a tell by using Speakstring /tell "playername" message
Thanks in advance
Modifié par BartjeD, 16 octobre 2011 - 10:46 .
Modifié par BartjeD, 16 octobre 2011 - 10:46 .
string CSL_QUOTE = "";
/**
* Returns a Quote Character. Note must have quote defined in the module or on custom waypoint blueprint to properly do quotes.
* @author Brian Meyer
* @return A Double Quote Character
*/
string CSLGetQuote()
{
//string sQuote = CSL_QUOTE;
if ( CSL_QUOTE == "" )
{
string sQuote;
sQuote = GetLocalString( GetModule(), "CSL_QUOTE" );
if ( sQuote == "" )
{
object oQuoteHolder = CreateObject(OBJECT_TYPE_WAYPOINT, "nw_waypointquote", GetStartingLocation(), FALSE, "nw_waypointquote");
sQuote = GetLocalString( oQuoteHolder, "QUOTE" );
DestroyObject(oQuoteHolder, 0.0f, FALSE);
SetLocalString(GetModule(), "CSL_QUOTE", sQuote );
}
CSL_QUOTE = sQuote; // cache this for later use in the same script
return sQuote;
}
return CSL_QUOTE;
}