Quelques corrections de merge

This commit is contained in:
Erwan GEORGET 2016-08-09 22:32:01 +02:00
parent edf0b19c75
commit 11ca113401
3 changed files with 13 additions and 10 deletions

View file

@ -4,7 +4,6 @@
////////////////////////// //////////////////////////
////////////////////////// //////////////////////////
//////////////////////////
// If you set this variable to 1, your client.cfg will be overwritten when you quit the client. // If you set this variable to 1, your client.cfg will be overwritten when you quit the client.
// You will loose all the comments and identation in this file. // You will loose all the comments and identation in this file.

View file

@ -2440,7 +2440,7 @@ NLMISC_COMMAND(mode, "Change the mode for an entity in a slot", "<Slot> <Mode> [
return true; return true;
} }
NLMISC_COMMAND(behaviour, "Change the behaviour for an entity in a slot", "<Slot> <Behaviour> [<Attack Intensity>] [<Impact Intensity>] [<delta HP>] [dt(tick)]") NLMISC_COMMAND(behaviour, "Change the behaviour for an entity in a slot", "<Slot> <Behaviour> [<Attack Intensity>] [<Impact Intensity>] [<delta ChaScore1>] [dt(tick)]")
{ {
// Check parameters. // Check parameters.
if(args.size() < 2 || args.size() > 6) if(args.size() < 2 || args.size() > 6)
@ -2505,7 +2505,7 @@ NLMISC_COMMAND(behaviour, "Change the behaviour for an entity in a slot", "<Slot
behaviour.Combat.ImpactIntensity = impactIntensity; behaviour.Combat.ImpactIntensity = impactIntensity;
} }
if(args.size() > 4) if(args.size() > 4)
fromString(args[4], behaviour.DeltaHP); fromString(args[4], behaviour.DeltaChaScore1);
} }
// get the dt // get the dt
sint32 dt= 10; sint32 dt= 10;

View file

@ -2812,6 +2812,8 @@ string checkLogin(const string &login, const string &password, const string &cli
// R2 login sequence // R2 login sequence
std::string cryptedPassword = CCrypt::crypt(password, Salt); std::string cryptedPassword = CCrypt::crypt(password, Salt);
std::string url = ClientCfg.ConfigFile.getVar("StartupHost").asString() + ClientCfg.ConfigFile.getVar("StartupPage").asString();
if(!HttpClient.sendGet(url + "?cmd=login&login=" + login + "&password=" + cryptedPassword + "&clientApplication=" + clientApp + "&cp=2" + "&lg=" + ClientCfg.LanguageCode)) if(!HttpClient.sendGet(url + "?cmd=login&login=" + login + "&password=" + cryptedPassword + "&clientApplication=" + clientApp + "&cp=2" + "&lg=" + ClientCfg.LanguageCode))
return "Can't send (error code 2)"; return "Can't send (error code 2)";
@ -2892,6 +2894,8 @@ string checkLogin(const string &login, const string &password, const string &cli
// standard ryzom login sequence // standard ryzom login sequence
std::string cryptedPassword = CCrypt::crypt(password, Salt); std::string cryptedPassword = CCrypt::crypt(password, Salt);
std::string url = ClientCfg.ConfigFile.getVar("StartupHost").asString() + ClientCfg.ConfigFile.getVar("StartupPage").asString();
if(!HttpClient.sendGet(url + "?login=" + login + "&password=" + cryptedPassword + "&clientApplication=" + clientApp + "&cp=2")) if(!HttpClient.sendGet(url + "?login=" + login + "&password=" + cryptedPassword + "&clientApplication=" + clientApp + "&cp=2"))
return "Can't send (error code 2)"; return "Can't send (error code 2)";
/* /*