Exemplo n.º 1
0
	public static bool Execute(ChangeUserSpDataUserCmd_S cmd)
	{
		if (MainRole.ServerInfo != null && cmd.charid == MainRole.ServerInfo.userdata.charid)
		{
			MainRole.Instance.SetSp(cmd.cursp);
			return true;
		}
		return false;
	}
Exemplo n.º 2
0
	public static void Execute(ChangeUserSpDataUserCmd_S cmd)
	{
		if (MainRole.Execute(cmd))
			return;

		var target = All[cmd.charid];
		if (target == null) 
			return;
		
		//target.SetSp(cmd.cursp);
	}