|
|
|
@ -1198,77 +1198,6 @@ NLMISC_COMMAND(db, "Modify Database","<Property> <Value>")
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static bool talkInChan(uint32 nb,std::vector<std::string>args)
|
|
|
|
|
{
|
|
|
|
|
uint32 maxChans = CChatGroup::MaxDynChanPerPlayer;
|
|
|
|
|
if (nb>=maxChans)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if(!args.empty())
|
|
|
|
|
{
|
|
|
|
|
std::string tmp;
|
|
|
|
|
std::vector<std::string>::const_iterator first(args.begin()),last(args.end());
|
|
|
|
|
|
|
|
|
|
for(;first!=last;++first)
|
|
|
|
|
{
|
|
|
|
|
tmp = tmp + (*first);
|
|
|
|
|
tmp = tmp+" ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ucstring uctmp;
|
|
|
|
|
uctmp.fromUtf8(tmp);
|
|
|
|
|
PeopleInterraction.talkInDynamicChannel(nb, uctmp);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
ChatMngr.updateChatModeAndButton(CChatGroup::dyn_chat, nb);
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NLMISC_COMMAND(0,"talk in 0th dynamic chat channel","<channel_nb> <sentence>")
|
|
|
|
|
{
|
|
|
|
|
return talkInChan(0,args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NLMISC_COMMAND(1,"talk in first dynamic chat channel","<channel_nb> <sentence>")
|
|
|
|
|
{
|
|
|
|
|
return talkInChan(1,args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NLMISC_COMMAND(2,"talk in 2nd dynamic chat channel","<channel_nb> <sentence>")
|
|
|
|
|
{
|
|
|
|
|
return talkInChan(2,args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NLMISC_COMMAND(3,"talk in 3rd dynamic chat channel","<channel_nb> <sentence>")
|
|
|
|
|
{
|
|
|
|
|
return talkInChan(3,args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NLMISC_COMMAND(4,"talk in 4th dynamic chat channel","<channel_nb> <sentence>")
|
|
|
|
|
{
|
|
|
|
|
return talkInChan(4,args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NLMISC_COMMAND(5,"talk in 5th dynamic chat channel","<channel_nb> <sentence>")
|
|
|
|
|
{
|
|
|
|
|
return talkInChan(5,args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NLMISC_COMMAND(6,"talk in 6th dynamic chat channel","<channel_nb> <sentence>")
|
|
|
|
|
{
|
|
|
|
|
return talkInChan(6,args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NLMISC_COMMAND(7,"talk in 7th dynamic chat channel","<channel_nb> <sentence>")
|
|
|
|
|
{
|
|
|
|
|
return talkInChan(7,args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NLMISC_COMMAND(setItemName, "set name of items, sbrick, etc..","<sheet_id> <name> <desc> <desc2>")
|
|
|
|
|
{
|
|
|
|
|
if (args.size() < 2) return false;
|
|
|
|
|